/*
Theme Name: Les Impressions Reflet
Description: Vitrine et boutique WooCommerce pour une imprimerie à Saint-Anselme.
Version: 1.0.13
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: reflet
*/
:root {
    --ink: #101a32;
    --muted: #48556c;
    --blue: #1644cc;
    --deep: #092071;
    --paper: #f7f7f0;
    --line: #dce2ec;
    --radius: 1.2rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.55 system-ui, sans-serif; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.65rem); }
h3 { font-size: 1.55rem; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #a15300; outline-offset: 4px; }
.shell { width: min(1280px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6.8rem); }
.skip { position: absolute; z-index: 10; left: 1rem; top: 1rem; background: #fff; padding: .75rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem 1.55rem; min-height: 4.35rem; }
.brand { grid-area: 1 / 1; }
.brand img { display: block; width: clamp(8.4rem, 14vw, 11rem); max-height: 3.3rem; object-fit: contain; }
.header-inner nav { grid-area: 1 / 2; display: flex; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 931px) {
    .header-inner nav { justify-content: flex-end; }
}
.header-inner nav ul, .header-actions { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.55rem); }
.header-inner nav ul { list-style: none; margin: 0; padding: 0; }
.header-actions { grid-area: 1 / 3; justify-self: end; }
.header-inner a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 650; }
.header-inner a:not(.button):hover { color: var(--blue); }
.header-inner nav a:not(.button) { position: relative; display: inline-block; padding-block: .5rem; }
.header-link-active::after { content: ""; position: absolute; inset: auto 0 .22rem; height: 2px; background: #0025f7; transform: skewX(-25deg); }
.header-inner .header-quote { background: #0025f7; border-color: #0025f7; white-space: nowrap; }
.header-inner .header-quote-mobile { display: none; }
.header-inner .header-quote:hover { background: var(--deep); border-color: var(--deep); }
.header-menu-toggle { min-height: 2.65rem; padding: .4rem .7rem; border: 1px solid #c6d2f7; border-radius: .45rem; background: #f2f5ff; color: #1025bb; font: inherit; font-weight: 700; cursor: pointer; }
.header-menu-toggle[hidden] { display: none; }
@media (max-width: 930px) {
    .header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: .4rem; column-gap: .5rem; }
    .header-actions { grid-area: 1 / 2; }
    .header-inner .header-quote-desktop { display: none; }
    .header-inner .header-quote-mobile { display: inline-flex; justify-content: center; }
    .header-inner nav { grid-area: 2 / 1 / 3 / -1; align-items: stretch; flex-direction: column; gap: .65rem; padding-block: .5rem; border-top: 1px solid var(--line); }
    .header-inner nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
    .header-inner nav li a:not(.button) { display: flex; align-items: center; min-height: 2.75rem; }
    .header-inner .header-quote { white-space: normal; width: 100%; }
    .header-inner[data-menu-ready]:not([data-menu-open]) nav { display: none; }
}
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .65rem; padding: .75rem 1.2rem; border: 1px solid var(--blue); border-radius: .55rem; background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.button.small { min-height: 2.65rem; padding: .5rem .85rem; }
.button.outline { background: transparent; color: var(--ink); border-color: #8491ac; }
.button.outline:hover { background: #fff; border-color: var(--blue); }
.hero { background: var(--paper); padding-block: clamp(2.5rem, 6vw, 6.3rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.8rem, 4.4vw, 5rem); }
.hero h1 { font-size: clamp(3.4rem, 7.25vw, 7.2rem); line-height: .94; letter-spacing: -.073em; }
.hero h1 span { color: var(--blue); }
.eyebrow { color: var(--deep); font-size: .85rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.intro { color: var(--muted); max-width: 34rem; font-size: clamp(1.06rem, 1.45vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.hero-image { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--deep); }
.section-head { margin-bottom: 2rem; }
.products, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.product-card:hover { border-color: var(--blue); box-shadow: 0 8px 22px #101a321f; }
.card-copy { padding: 1.2rem; }
.card-copy strong { display: flex; justify-content: space-between; gap: .5rem; font-size: 1.23rem; line-height: 1.2; }
.card-copy strong span { color: var(--blue); }
.card-copy small { display: block; margin-top: .45rem; color: var(--muted); font-size: .96rem; }
.swatch { display: grid; position: relative; place-items: center; aspect-ratio: 2.35; isolation: isolate; overflow: hidden; background: var(--fill, #ccdbff); }
.swatch::before, .swatch span { content: ""; position: absolute; width: var(--width, 37%); aspect-ratio: var(--ratio, 1.65); background: #fffdf7; border-radius: .15rem; box-shadow: 9px 13px 22px #101a3255; transform: rotate(-13deg) translate(-12%, -12%); }
.swatch span { background: var(--sheet, #204dd3); transform: rotate(10deg) translate(20%, 16%); }
.swatch span::after { content: ""; position: absolute; inset: 22% 18%; background: repeating-linear-gradient(0deg, transparent 0 11px, #ffffff84 11px 13px); }
.swatch-1 { --fill: #eedbc3; --sheet: #805226; --width: 44%; }
.swatch-2 { --fill: #d9e7dd; --sheet: #20604e; --width: 18%; --ratio: .58; }
.swatch-2 span { border-radius: 25% 25% .1rem .1rem; }
.swatch-3 { --fill: #e5def9; --sheet: #6140a1; --width: 34%; --ratio: 1.15; }
.swatch-4 { --fill: #fee9a4; --sheet: #95411c; --width: 29%; --ratio: .8; }
.swatch-5 { --fill: #d2e6ed; --sheet: #176276; --width: 29%; --ratio: .8; }
.service-band {
    --fold-depth: clamp(.55rem, 2.2vw, 2rem);
    position: relative;
    isolation: isolate;
    padding-block: var(--fold-depth);
    color: white;
}
.service-band::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #0025f7 0 33.333%, #0929ed 33.333% 66.667%, #0025f7 66.667% 100%);
    clip-path: polygon(
        0 var(--fold-depth), 33.333% 0, 66.667% var(--fold-depth), 100% 0,
        100% calc(100% - var(--fold-depth)), 66.667% 100%,
        33.333% calc(100% - var(--fold-depth)), 0 100%
    );
}
.service-grid { gap: 2rem; margin-top: 2rem; }
.service-grid > div { border-top: 1px solid #ffffff65; padding-top: 1rem; }
.service-grid p { color: #e1e8ff; margin-bottom: 0; }
.reading { max-width: 850px; }
.reading article h2 { margin-top: 1.6rem; }
.quote-section { max-width: 970px; }
.quote-box { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.quote-box p:last-child { margin-bottom: 0; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form label { display: grid; align-content: start; gap: .3rem; font-weight: 650; min-width: 0; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea, .woocommerce input.input-text, .woocommerce textarea { width: 100%; padding: .65rem; color: var(--ink); background: #fff; border: 1px solid #8491ac; border-radius: .4rem; font: inherit; }
.quote-status { background: #fff; padding: .65rem; border-left: 3px solid var(--blue); }
.site-footer { padding-top: clamp(1.4rem, 5vw, 3.5rem); background: var(--ink); color: #fff; }
.site-footer a { color: inherit; text-underline-offset: .2em; }
.site-footer a:focus-visible { outline: 2px solid #a6baff; outline-offset: 4px; }
.footer-project {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: clamp(1.2rem, 4vw, 2.75rem);
    border-radius: 1.15rem;
    background: #0025f7;
}
.footer-project::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 45%;
    background: linear-gradient(90deg, #ffffff14 0 33%, #ffffff24 33% 66%, #ffffff14 66%);
    clip-path: polygon(0 33%, 33% 7%, 66% 30%, 100% 4%, 100% 74%, 66% 100%, 33% 77%, 0 100%);
}
.footer-project h2 { margin: 0; font-size: clamp(1.9rem, 4.3vw, 3.4rem); }
.footer-project h2 span { color: #bccbff; }
.site-footer .footer-quote { background: #fff; border-color: #fff; color: #1025bb; }
.site-footer .footer-quote:hover { background: #e8edff; color: #101a32; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, .7fr);
    gap: clamp(1.6rem, 4vw, 3rem);
    padding-block: clamp(2rem, 5vw, 4rem);
}
.footer-brand .footer-logo-link { display: inline-block; max-width: 100%; }
.footer-brand img { display: block; width: clamp(10rem, 19vw, 14rem); max-width: 100%; height: auto; }
.footer-brand p, .footer-contact address { margin: .75rem 0 0; color: #dbe4fb; }
.footer-grid h2 { margin: 0 0 .85rem; color: #fff; font-size: 1.05rem; letter-spacing: 0; }
.footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #e0e8fc; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-contact address { font-style: normal; }
.footer-phone { display: inline-block; margin-top: .6rem; font-weight: 750; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-block: 1rem; border-top: 1px solid #ffffff35; color: #ced9f5; font-size: .88rem; }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-project::after { width: 58%; opacity: .65; }
}

.woocommerce :is(a.button, button.button, input.button),
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt),
.wc-block-components-button:not(.is-link) { background: var(--blue); color: #fff; border-radius: .55rem; }
.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce :is(a.button.alt, button.button.alt, input.button.alt):hover { background: var(--deep); color: #fff; }
.woocommerce ul.products li.product img { border-radius: var(--radius); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--deep); font-weight: 700; }
@media (max-width: 850px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .shell { width: calc(100% - 2rem); }
    .hero-grid, .service-grid, .quote-form { grid-template-columns: 1fr; }
    .hero-image { aspect-ratio: 1.5; }
    .card-copy { padding: .8rem; }
    .card-copy strong { font-size: 1.02rem; }
    .card-copy small { font-size: .86rem; }
}
@media (max-width: 355px) {
    .products { grid-template-columns: 1fr; }
}
.arrow { display: inline-block; flex: none; position: relative; width: .65em; height: .65em; border-top: 2px solid; border-right: 2px solid; color: inherit; }
.arrow::after { content: ""; position: absolute; width: .82em; height: 2px; right: -1px; top: -1px; background: currentColor; transform: rotate(-45deg); transform-origin: right; }
.card-copy .arrow { margin-top: .18em; color: var(--blue); }

.service-grid .service-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border: 1px solid #ffffff65;
    border-radius: .65rem;
    background-color: #ffffff18;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.65rem;
}
.service-icon--numerique { background-image: url("assets/service-numerique.svg"); }
.service-icon--offset { background-image: url("assets/service-offset.svg"); }
.service-icon--infographie { background-image: url("assets/service-infographie.svg"); }

@media (max-width: 650px) {
    .service-band { --fold-depth: clamp(.4rem, 1.6vw, .65rem); }
}

.reflet-home-hero .hero-image {
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
    object-position: 50% 53%;
}
#boutique .swatch-0 span {
    box-shadow: 0 2px #cdd8fb, 0 4px #6b86cf, 0 6px #cdd8fb, 7px 12px 18px #101a3245;
}
#boutique .swatch-1 span {
    background: #fff8e9;
    border: 1px solid #d3b993;
}
#boutique .swatch-1 span::after {
    inset: 0;
    background: #bf9c72;
    clip-path: polygon(0 0, 100% 0, 50% 66%);
}
#boutique .swatch-2 span {
    background: radial-gradient(circle at 50% 22%, var(--fill) 0 10%, transparent 11%), var(--sheet);
}
#boutique .swatch-2 span::after { inset: 43% 18% 20%; }
#boutique .swatch-3 span {
    --width: 53%;
    --ratio: 1.85;
    background: linear-gradient(90deg, #7054a5 0 33%, #58368e 33% 66%, #8667bd 66%);
    clip-path: polygon(0 18%, 33% 0, 66% 18%, 100% 0, 100% 82%, 66% 100%, 33% 82%, 0 100%);
    transform: rotate(-8deg);
}
#boutique .swatch-3 span::after { display: none; }
#boutique .swatch-4 span::after {
    inset: 13%;
    background: linear-gradient(137deg, #f7d596 43%, #fff7e3 43% 53%, #b85c2e 53%);
}
#boutique .swatch-5 span {
    background: linear-gradient(#176276 0 21%, #fffdf7 21% 87%, #176276 87%);
}
#boutique .swatch-5 span::after { inset: 34% 18% 20%; background: repeating-linear-gradient(0deg, transparent 0 6px, #17627638 6px 7px); }
.home-project { padding-bottom: clamp(2rem, 5vw, 4rem); }
.home-project h2 span { color: #0025f7; }
.home-project-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.75rem, 2vw, 1.3rem);
    list-style: none;
    counter-reset: home-project;
    padding: 0;
    margin: 1.6rem 0;
}
.home-project-steps li {
    counter-increment: home-project;
    padding: clamp(1rem, 2.6vw, 1.6rem);
    border: 1px solid #dce3f6;
    border-radius: var(--radius);
    background: #f5f7ff;
}
.home-project-steps li::before {
    content: counter(home-project, decimal-leading-zero);
    display: block;
    margin-bottom: .8rem;
    color: #0025f7;
    font-weight: 750;
}
.home-project-steps h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.home-project-steps p { margin: 0; }
@media (max-width: 700px) {
    .home-project-steps { grid-template-columns: minmax(0, 1fr); }
}

.home-custom-quote {
    background: #edf1ff;
    border-block: 1px solid #dce3f6;
}
.home-custom-quote-inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.35rem, 5vw, 4rem);
}
.home-custom-quote-intro { border-left: .28rem solid #0025f7; padding-left: clamp(.85rem, 2vw, 1.5rem); }
.home-custom-quote-intro h2 span { color: #0025f7; }
.home-custom-quote-intro p { margin-bottom: 0; color: var(--muted); }
.home-custom-quote .quote-box { background: #fff; border-color: #d2dcf9; }
@media (max-width: 700px) {
    .home-custom-quote-inner { grid-template-columns: minmax(0, 1fr); }
}
