:root {
    --rp-bg: #07111b;
    --rp-green: #287cff;
    --rp-mint-bright: #b7a8ff;
    --rp-coral: #ff795d;
    --rp-muted: #657168;
    --rp-text: #f7faf8;
    --rp-page-width: 1240px;
}

body {
    background: var(--rp-bg);
    color: var(--rp-text);
}

/* Keep inner service pages aligned with the refreshed light home page. */
body { background: #f7f9fc; color: #12213d; }
.public-page .hero { background: #edf3fb; color: #12213d; }
.public-page .hero::before { opacity: .28; }
.public-page .hero::after { background: linear-gradient(90deg, #edf3fb 0%, rgb(237 243 251 / 88%) 42%, rgb(237 243 251 / 18%) 100%); }
.public-page .hero h1 { color: #12213d; }
.public-page .hero h1,
.public-page .hero .lead { color: #12213d !important; text-shadow: none; }
.content { color: #12213d; }
.standard-card, .repair-card { background: #fff; border-color: #dce4f0; box-shadow: 0 14px 34px rgb(35 57 92 / 7%); }
.standard-card p, .repair-card p, .standard-lead { color: #65738c; }
.contact-form { background: #fff; border-color: #dce4f0; box-shadow: 0 18px 48px rgb(35 57 92 / 9%); }
.contact-form input, .contact-form textarea { background: #f7f9fc; border-color: #cbd6e5; color: #12213d; }

.public-page { width: 100%; }

.public-page .hero {
    position: relative;
    isolation: isolate;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 68px 0 86px;
    background: var(--rp-bg);
}

.public-page .hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(90deg, #07111b 0%, rgb(7 17 27 / 95%) 18%, rgb(7 17 27 / 72%) 43%, rgb(7 17 27 / 25%) 76%, rgb(7 17 27 / 18%) 100%),
        var(--page-hero-image, url("/images/repapop-atelier-hero.png"));
    background-position: center, center 46%;
    background-size: cover;
    animation: page-photo-arrive .9s ease-out both;
}

.public-page .hero--repairs { --page-hero-image: url("/images/repapop-repair-lab-hero-v1.png"); }
.public-page .hero--pricing { --page-hero-image: url("/images/repapop-fond-panoramique-3d.png"); }
.public-page .hero--how_it_works { --page-hero-image: url("/images/atelier.jpg"); }
.public-page .hero--workshop,
.public-page .hero--about { --page-hero-image: url("/images/repapop-atelier-hero.png"); }
.public-page .hero--contact { --page-hero-image: url("/images/atelier.jpg"); }
.public-page .hero--it_support { --page-hero-image: url("/images/repapop-repair-lab-hero-v1.png"); }
.public-page .hero--web_creation { --page-hero-image: url("/images/repapop-digital-studio-v1.png"); }
.public-page .hero--cybersecurity { --page-hero-image: url("/images/repapop-cybersecurity-hero-v1.png"); }
.public-page .hero--it_support { --service-accent: #5c8fff; }
.public-page .hero--web_creation { --service-accent: #8ec5ff; }
.public-page .hero--cybersecurity { --service-accent: #a48dff; }

.page-hero-inner {
    position: relative;
    z-index: 1;
    animation: page-copy-arrive .65s .08s ease-out both;
}

/* Keep the secondary-page hero typography aligned with the home-page hero. */
.public-page .hero .eyebrow {
    margin: 0 0 18px;
    color: var(--rp-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.public-page .hero h1 {
    max-width: 800px;
    margin: 0;
    color: var(--rp-text);
    font-size: clamp(48px, 6.6vw, 82px);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.public-page .hero .lead {
    max-width: 620px;
    margin: 18px 0 0;
    color: #d5e0dc;
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.75;
}

.content.repair-content,
.content.standard-content {
    position: relative;
    z-index: 1;
    margin: -34px auto 88px;
    padding: clamp(30px, 5vw, 64px);
    border: 0;
    border-radius: 28px;
    background: #f4f7f4;
    box-shadow: 0 28px 90px rgb(0 0 0 / 20%);
    color: #111912;
}

.standard-content > h2 {
    max-width: 820px;
    margin: 8px 0 12px;
    color: #101912;
    font-size: clamp(27px, 3.5vw, 42px);
    line-height: 1.14;
    letter-spacing: -1.5px;
}

.standard-content .standard-lead {
    max-width: 850px;
    margin: 0;
    color: #647168;
    font-size: 16px;
    line-height: 1.75;
}

.public-page:has(.hero--it_support) .standard-content,
.public-page:has(.hero--web_creation) .standard-content,
.public-page:has(.hero--cybersecurity) .standard-content {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--service-accent) 18%, transparent), transparent 27%),
        #f4f7f4;
}

.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
}

.standard-card,
.repair-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e1e8e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgb(20 45 25 / 5%);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
    animation: page-card-arrive .48s both;
}

.standard-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--service-accent, var(--rp-green)), transparent 78%);
}

.standard-card:nth-child(2), .repair-card:nth-child(2) { animation-delay: .07s; }
.standard-card:nth-child(3), .repair-card:nth-child(3) { animation-delay: .14s; }
.standard-card:nth-child(4), .repair-card:nth-child(4) { animation-delay: .21s; }
.standard-card:hover, .repair-card:hover { border-color: #a6dec0; box-shadow: 0 17px 36px rgb(20 45 25 / 10%); transform: translateY(-5px); }

.standard-card { padding: 30px; }

.standard-index {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--service-accent, var(--rp-green)) 35%, transparent);
    border-radius: 12px;
    background: rgb(101 242 184 / 9%);
    color: color-mix(in srgb, var(--service-accent, #14895a) 68%, #0d4c35);
    font-size: 12px;
    font-weight: 850;
}

.standard-card h3,
.repair-card h3 {
    margin: 0 0 9px;
    color: #101912;
    font-size: 18px;
    letter-spacing: -.35px;
}

.standard-card p,
.repair-card p {
    margin: 0;
    color: #657168;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.standard-card p a { color: #168659; font-weight: 750; }

.repair-kicker {
    margin: 0;
    color: #14895a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.repair-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.repair-intro h2,
.repair-steps h2 {
    margin: 7px 0 0;
    color: #101912;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.16;
    letter-spacing: -1.2px;
}

.repair-intro > p {
    max-width: 420px;
    margin: 0 0 2px;
    color: #647168;
    line-height: 1.7;
}

.repair-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.repair-card { padding: 28px 25px; }

.repair-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 21px;
    place-items: center;
    border: 1px solid rgb(101 242 184 / 28%);
    border-radius: 13px;
    background: rgb(101 242 184 / 9%);
    color: #14895a;
}
.repair-icon svg { width: 23px; height: 23px; }

.repair-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 28px;
    margin-top: 42px;
}

.repair-steps,
.repair-contact {
    min-width: 0;
    padding: 32px;
    border: 1px solid #e1e8e2;
    border-radius: 19px;
}

.repair-steps { background: #0b1924; }
.repair-steps h2,
.repair-steps .step-item h3 { color: #f4f8f5; }
.repair-steps .repair-kicker { color: var(--rp-green); }
.repair-steps h2 { margin-bottom: 20px; font-size: 23px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: start;
    gap: 10px;
}

.step-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-green);
    color: #07120e;
    font-size: 12px;
    font-weight: 900;
}

.step-item h3 { margin: 2px 0 5px; font-size: 14px; }
.step-item p { margin: 0; color: #aab9b7; font-size: 12px; line-height: 1.55; }

.repair-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #e5f6ef;
}

.repair-contact h2 { margin: 10px 0 8px; color: #0f1a12; font-size: 23px; }
.repair-contact > p:not(.repair-kicker) { margin: 0 0 18px; color: #5b6b5e; font-size: 13px; line-height: 1.65; }
.repair-contact .button,
.standard-action .button,
.contact-form .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(115deg, var(--rp-mint-bright), var(--rp-green) 58%, #43dcc2);
    box-shadow: 0 8px 24px rgb(101 242 184 / 18%);
    color: #07120e;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}
.repair-contact .button:hover,
.standard-action .button:hover,
.contact-form .button:hover { box-shadow: 0 13px 30px rgb(101 242 184 / 27%); transform: translateY(-3px); }
.repair-contact .button:focus-visible,
.standard-action .button:focus-visible,
.contact-form .button:focus-visible { outline: 3px solid var(--rp-coral); outline-offset: 4px; }

.standard-action {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #cce8dc;
    border-radius: 17px;
    background: #e5f6ef;
}

.standard-action .standard-spark { color: #14895a; font-size: 24px; }
.standard-action p { flex: 1; margin: 0; color: #263b2b; font-weight: 700; }
.standard-action .button { flex: 0 0 auto; }

footer { background: #050d14; }

/* Page interiors: clearer blocks, dividers and content hierarchy. */
.public-page .hero { border-bottom: 1px solid #cdd9e8; }
.content.repair-content,
.content.standard-content {
    border: 1px solid #d7e1ee;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    box-shadow: 0 28px 80px rgb(35 57 92 / 14%);
}
.content.repair-content::before,
.content.standard-content::before {
    position: absolute;
    top: 0;
    left: clamp(30px, 5vw, 64px);
    width: 150px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #5ca9ff, #a996ff 55%, var(--rp-coral));
    content: "";
}
.repair-intro,
.standard-content > .standard-lead {
    padding-bottom: 28px;
    border-bottom: 1px solid #dce4f0;
}
.standard-grid { margin-top: 32px; }
.standard-card,
.repair-card { border-color: #d6e0ed; }
.standard-card:hover,
.repair-card:hover { border-color: #a996ff; box-shadow: 0 18px 38px rgb(35 57 92 / 13%); }
.repair-bottom,
.standard-action,
.contact-form {
    position: relative;
    margin-top: 36px;
}
.repair-bottom::before,
.standard-action::before,
.contact-form::before {
    position: absolute;
    top: -19px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd7e7 15%, #cbd7e7 85%, transparent);
    content: "";
}
.repair-contact,
.standard-action { border-color: #d4dcf4; background: #f0f2ff; }
.repair-kicker,
.standard-spark,
.standard-card p a { color: #286fc9 !important; }

@media (max-width: 620px) {
    .content.repair-content::before,
    .content.standard-content::before { left: 24px; width: 100px; }
}

@keyframes page-photo-arrive { from { opacity: .4; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@keyframes page-copy-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-card-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
    .repair-grid,
    .standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .repair-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .public-page .hero { min-height: 460px; padding: 52px 0 78px; }
    .public-page .hero::before {
        background-image:
            linear-gradient(180deg, rgb(7 17 27 / 76%) 0%, rgb(7 17 27 / 51%) 48%, #07111b 100%),
            var(--page-hero-image, url("/images/repapop-atelier-hero.png"));
        background-position: center, 58% center;
    }
    .public-page .hero h1 { font-size: clamp(48px, 12vw, 72px); letter-spacing: -.065em; }
    .content.repair-content,
    .content.standard-content { margin-bottom: 64px; padding: 24px; border-radius: 22px; }
    .repair-grid,
    .standard-grid,
    .steps-grid { grid-template-columns: 1fr; }
    .repair-intro { display: block; }
    .repair-intro > p { margin-top: 12px; }
    .repair-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; column-gap: 13px; }
    .repair-icon { grid-row: span 2; margin: 0; }
    .repair-card h3 { margin-bottom: 3px; }
    .repair-steps,
    .repair-contact { padding: 24px; }
    .standard-action { align-items: flex-start; flex-wrap: wrap; }
    .standard-action p { flex-basis: calc(100% - 46px); }
}

/* Page-specific imagery for the Air & cartes direction. */
.standard-card-visual, .repair-card-visual {
    display: block;
    height: 112px;
    margin: -30px -30px 22px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #eaf2fc;
}
.repair-card-visual { margin: -28px -25px 21px; }
.standard-card-visual img, .repair-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
    mix-blend-mode: multiply;
}
.standard-card:nth-child(2) .standard-card-visual,
.repair-card:nth-child(2) .repair-card-visual { background: #fff0ed; }
.standard-card:nth-child(3) .standard-card-visual,
.repair-card:nth-child(3) .repair-card-visual { background: #eeeaff; }
.standard-card:nth-child(4) .standard-card-visual,
.repair-card:nth-child(4) .repair-card-visual { background: #e5faf2; }
.standard-card .standard-index { margin-bottom: 16px; }

@media (max-width: 680px) {
    .standard-card-visual, .repair-card-visual { height: 86px; }
    .repair-card-visual { margin: -24px -24px 16px; }
}

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

/* Direction A — Air & cartes, shared by every inner page. */
body { background: #f7f9fc; color: #12213d; }
.public-page .hero {
    min-height: 390px;
    padding: 76px 0 112px;
    background: #eef5ff;
}
.public-page .hero::before {
    background-image:
        linear-gradient(90deg, #f7fbff 0%, rgb(247 251 255 / 96%) 38%, rgb(247 251 255 / 76%) 66%, rgb(247 251 255 / 20%) 100%),
        var(--page-hero-image, url("/images/repapop-atelier-hero.png"));
    background-position: center, center 46%;
    filter: saturate(.72);
}
.public-page .hero::after { background: linear-gradient(180deg, transparent 72%, #f7f9fc 100%); }
.public-page .hero .eyebrow { color: #2879df; }
.public-page .hero h1 { color: #12213d !important; font-size: clamp(48px, 6vw, 80px); }
.public-page .hero .lead { max-width: 650px; color: #30496f !important; font-weight: 560; }
.content.repair-content, .content.standard-content {
    margin-top: -42px;
    border: 1px solid #dce7f4;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 55px rgb(35 57 92 / 10%);
}
.repair-kicker { color: #2879df; }
.repair-intro h2, .standard-content > h2 { color: #12213d; }
.repair-intro > p, .standard-lead { color: #526785; }
.standard-grid { gap: 18px; }
.standard-card, .repair-card {
    border: 0;
    border-radius: 20px;
    background: #f7faff;
    box-shadow: 0 12px 28px rgb(39 77 126 / 8%);
}
.standard-card:nth-child(1), .repair-card:nth-child(1) { background: linear-gradient(145deg, #eaf6ff, #f9fcff); }
.standard-card:nth-child(2), .repair-card:nth-child(2) { background: linear-gradient(145deg, #fff0ed, #fffafa); }
.standard-card:nth-child(3), .repair-card:nth-child(3) { background: linear-gradient(145deg, #f0edff, #fcfbff); }
.standard-card:nth-child(4), .repair-card:nth-child(4) { background: linear-gradient(145deg, #eafff7, #fbfffd); }
.standard-card::before { background: linear-gradient(90deg, #2879df, transparent 80%); }
.standard-card h3, .repair-card h3 { color: #12213d; }
.standard-card p, .repair-card p { color: #526785; }
.standard-index, .repair-icon { border: 0; background: #e7f1ff; color: #2879df; }
.repair-card:nth-child(2) .repair-icon { background: #ffe5df; color: #ff7867; }
.repair-card:nth-child(3) .repair-icon { background: #e9e4ff; color: #7563eb; }
.repair-card:nth-child(4) .repair-icon { background: #dff9ee; color: #18a875; }
.repair-steps { border: 0; border-radius: 22px; background: #102947; }
.repair-contact { border: 0; border-radius: 22px; background: #eef5ff; }
.repair-contact h2 { color: #12213d; }
.repair-contact > p:not(.repair-kicker) { color: #526785; }
.repair-contact .button, .standard-action .button, .contact-form .button {
    background: #ff7867;
    color: #fff;
    box-shadow: 0 10px 24px rgb(255 120 103 / 22%);
}
.standard-action { border: 0; background: #eef5ff; }
.standard-action p { color: #244269; }
.contact-form { border: 1px solid #dce7f4; border-radius: 20px; background: #f7faff; }
.contact-form label { color: #244269; }
.contact-form input, .contact-form textarea { border-color: #cbd8e8; background: #fff; color: #12213d; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #2879df; box-shadow: 0 0 0 3px rgb(40 121 223 / 14%); }

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: clamp(24px, 4vw, 38px);
}
.contact-field {
    display: grid;
    min-width: 0;
    gap: 8px;
}
.contact-field--full { grid-column: 1 / -1; }
.contact-form label { font-size: 13px; font-weight: 800; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #cbd8e8;
    border-radius: 12px;
    font: inherit;
    line-height: 1.45;
}
.contact-form input { min-height: 48px; }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .button { justify-self: start; }
.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* Contact is an action page, not a catalogue: details left, form right. */
.public-page:has(.hero--contact) .standard-content {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 8px 42px;
    align-items: start;
}
.public-page:has(.hero--contact) .standard-content > .repair-kicker { grid-column: 1; grid-row: 1; }
.public-page:has(.hero--contact) .standard-content > h2 { grid-column: 1; grid-row: 2; margin-top: 3px; }
.public-page:has(.hero--contact) .standard-content > .standard-lead {
    grid-column: 1;
    grid-row: 3;
    padding-bottom: 22px;
}
.public-page:has(.hero--contact) .standard-grid {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}
.public-page:has(.hero--contact) .standard-card {
    min-height: 0;
    padding: 18px 20px 18px 68px;
    overflow: visible;
}
.public-page:has(.hero--contact) .standard-card-visual { display: none; }
.public-page:has(.hero--contact) .standard-index {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    margin: 0;
}
.public-page:has(.hero--contact) .standard-card h3 { margin-bottom: 4px; font-size: 16px; }
.public-page:has(.hero--contact) .contact-form {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
    margin-top: 0;
    border-color: #d5dfed;
    background: #f4f7fc;
    box-shadow: 0 18px 42px rgb(35 57 92 / 9%);
}
.public-page:has(.hero--contact) .contact-form::before { display: none; }

@media (max-width: 680px) {
    .public-page .hero { min-height: 390px; padding: 54px 0 92px; }
    .public-page .hero::before { background-image: linear-gradient(180deg, #f7fbff 0%, rgb(247 251 255 / 90%) 58%, rgb(247 251 255 / 66%) 100%), var(--page-hero-image, url("/images/repapop-atelier-hero.png")); }
    .content.repair-content, .content.standard-content { margin-top: -28px; }
    .contact-form { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
    .contact-field--full { grid-column: auto; }
    .contact-form .button { width: 100%; }
    .public-page:has(.hero--contact) .standard-content {
        display: block;
    }
    .public-page:has(.hero--contact) .standard-grid { margin-top: 20px; }
    .public-page:has(.hero--contact) .contact-form { margin-top: 34px; }
}

@media (min-width: 681px) and (max-width: 960px) {
    .public-page:has(.hero--contact) .standard-content {
        grid-template-columns: minmax(230px, .7fr) minmax(390px, 1.3fr);
        column-gap: 26px;
    }
    .public-page:has(.hero--contact) .contact-form { grid-template-columns: 1fr; }
    .public-page:has(.hero--contact) .contact-field--full { grid-column: auto; }
}
