:root {
    --costo-red: #cf171b;
    --costo-red-dark: #a90f14;
    --costo-blue: #11109b;
    --costo-blue-dark: #0b0a63;
    --costo-ink: #171827;
    --costo-muted: #666978;
    --costo-pale: #f5f5f8;
    --costo-bg: #f7f7f7;
    --costo-white: #f7f7f7;
    --costo-shadow: 0 18px 55px rgba(21, 22, 44, .13);
    --costo-radius: 24px;
    --costo-container: 1240px;
}

html { scroll-behavior: smooth; }
html, body { background: var(--costo-bg) !important; }
body { margin: 0; }
body.costo-front-page {
    color: var(--costo-ink);
    font-family: Arial, Helvetica, sans-serif;
}
body.costo-front-page *,
.costo-site-header *,
.costo-site-footer * { box-sizing: border-box; }
body.costo-front-page img,
.costo-site-header img,
.costo-site-footer img { max-width: 100%; height: auto; }

.costo-container {
    width: min(calc(100% - 44px), var(--costo-container));
    margin-inline: auto;
}

.screen-reader-text,
.costo-skip-link {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.costo-skip-link:focus {
    position: fixed !important;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 18px;
    background: #fff;
    color: var(--costo-blue);
    z-index: 99999;
}

/* HEADER — même géométrie que le site Destiné & Fils */
.costo-site-header {
    position: relative;
    z-index: 20;
    height: 255px;
    background: var(--costo-bg) !important;
    overflow: hidden;
    color: var(--costo-white);
    font-family: inherit;
}
.costo-header-wave {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.costo-header-wave svg { width: 100%; height: 100%; display: block; }
.costo-header-fill { fill: var(--costo-red); }
.costo-header-line {
    fill: none;
    stroke: var(--costo-blue);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.costo-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    height: 255px;
    margin: 0 auto;
    padding: 42px 28px 0;
}
.costo-header-brand {
    display: block;
    width: 560px;
    color: var(--costo-white) !important;
    text-decoration: none !important;
    line-height: 1.05;
}
.costo-header-brand span {
    display: block;
    font-size: clamp(25px, 2.8vw, 38px);
    font-weight: 950;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: var(--costo-white) !important;
}
.costo-header-brand em {
    display: block;
    margin-top: 15px;
    color: var(--costo-blue) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.costo-header-actions {
    position: absolute;
    left: 28px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.costo-shell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 950;
    line-height: 1.05;
    white-space: nowrap;
}
.costo-shell-btn-blue {
    background: var(--costo-blue);
    color: var(--costo-white) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}
.costo-shell-btn-white {
    background: var(--costo-white);
    color: var(--costo-red) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,.10);
}
.costo-shell-btn-outline {
    color: var(--costo-white) !important;
    border: 2px solid var(--costo-white);
    background: rgba(255,255,255,.02);
}
.costo-header-nav {
    position: absolute;
    right: 28px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 950;
    font-size: 15px;
}
.costo-header-nav > a {
    color: var(--costo-white) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.costo-header-nav > a:hover { opacity: .82; }
.costo-cart-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.costo-cart-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.costo-header-logo,
.costo-footer-logo {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.costo-header-logo {
    top: 8px;
    right: max(28px, calc((100vw - 1220px) / 2 + 28px));
}
.costo-header-logo img {
    display: block;
    width: auto;
    height: clamp(92px, 10vw, 138px);
    max-width: min(180px, 16vw);
    object-fit: contain;
}

/* Home hero */
.costo-home {
    overflow: hidden;
}

.costo-hero {
    min-height: 610px;
    position: relative;
    background: linear-gradient(120deg, var(--costo-red) 0%, var(--costo-red) 58%, var(--costo-red-dark) 100%);
    color: #fff;
    padding: 118px 0 150px;
    isolation: isolate;
}

.costo-hero::after {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -92px;
    height: 180px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: -1;
}

.costo-hero__accent {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.costo-hero__accent--one {
    width: 520px;
    height: 520px;
    right: -150px;
    top: -90px;
    border: 44px solid rgba(17, 16, 155, .74);
}

.costo-hero__accent--two {
    width: 280px;
    height: 280px;
    left: 43%;
    bottom: -150px;
    border: 32px solid rgba(255, 255, 255, .08);
}

.costo-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: clamp(44px, 7vw, 100px);
}

.costo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.costo-eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    background: currentColor;
}

.costo-eyebrow--dark {
    color: var(--costo-red);
}

.costo-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(48px, 6.5vw, 82px);
    line-height: .98;
    letter-spacing: -.045em;
    color: #fff;
}

.costo-hero__content > p {
    max-width: 680px;
    margin: 28px 0 34px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .91);
}

.costo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.costo-button:hover,
.costo-button:focus-visible {
    transform: translateY(-2px);
}

.costo-button--light {
    color: var(--costo-red);
    background: #fff;
    box-shadow: 0 12px 28px rgba(38, 5, 8, .18);
}

.costo-button--primary {
    color: #fff;
    background: var(--costo-red);
    box-shadow: 0 12px 28px rgba(207, 23, 27, .23);
}

.costo-button--outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.72);
    background: transparent;
}

.costo-hero__visual {
    position: relative;
}

.costo-hero__visual::before {
    content: '';
    position: absolute;
    inset: 9% 2% 4% 4%;
    border-radius: 44% 56% 50% 50% / 56% 46% 54% 44%;
    background: rgba(255, 255, 255, .12);
    transform: rotate(-4deg);
}

.costo-hero__visual svg {
    position: relative;
    display: block;
    width: 100%;
    filter: drop-shadow(0 22px 20px rgba(65, 0, 0, .22));
}

.costo-hero__visual .trailer-body {
    fill: rgba(255,255,255,.96);
    stroke: var(--costo-blue);
    stroke-width: 11;
    stroke-linejoin: round;
}

.costo-hero__visual .trailer-detail,
.costo-hero__visual .trailer-hitch {
    fill: none;
    stroke: var(--costo-red);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.costo-hero__visual .trailer-wheel {
    fill: var(--costo-blue-dark);
    stroke: #fff;
    stroke-width: 10;
}

.costo-hero__visual .trailer-hub {
    fill: var(--costo-red);
}

/* Three zones */
.costo-universes {
    position: relative;
    z-index: 2;
    padding: 48px 0 110px;
    background: #fff;
}

.costo-section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.costo-section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.costo-section-heading--center .costo-eyebrow {
    justify-content: center;
}

.costo-section-heading h2,
.costo-about h2,
.costo-contact-cta h2 {
    margin: 0;
    color: var(--costo-ink);
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.costo-section-heading > p {
    margin: 18px 0 0;
    color: var(--costo-muted);
    font-size: 18px;
    line-height: 1.65;
}

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

.costo-universe-card {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    border: 1px solid #e3e3ea;
    border-radius: var(--costo-radius);
    overflow: hidden;
    background: #fff;
    color: var(--costo-ink);
    text-decoration: none;
    box-shadow: 0 10px 34px rgba(29, 30, 54, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.costo-universe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: var(--costo-red);
}

.costo-universe-card--ramps::before {
    background: var(--costo-blue);
}

.costo-universe-card--trailers::before {
    background: linear-gradient(90deg, var(--costo-red) 0 50%, var(--costo-blue) 50% 100%);
}

.costo-universe-card:hover,
.costo-universe-card:focus-visible {
    transform: translateY(-9px);
    border-color: transparent;
    box-shadow: var(--costo-shadow);
}

.costo-universe-card__number {
    position: absolute;
    right: 26px;
    top: 20px;
    color: #eeeeF4;
    font-size: 62px;
    line-height: 1;
    font-weight: 900;
}

.costo-universe-card__icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    border-radius: 20px;
    background: rgba(207, 23, 27, .08);
    color: var(--costo-red);
}

.costo-universe-card--ramps .costo-universe-card__icon {
    background: rgba(17, 16, 155, .08);
    color: var(--costo-blue);
}

.costo-universe-card--trailers .costo-universe-card__icon {
    background: linear-gradient(135deg, rgba(207,23,27,.09), rgba(17,16,155,.10));
    color: var(--costo-blue);
}

.costo-universe-card__icon svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.costo-universe-card__title {
    margin-bottom: 16px;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.025em;
}

.costo-universe-card__text {
    flex: 1;
    color: var(--costo-muted);
    font-size: 16px;
    line-height: 1.65;
}

.costo-universe-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--costo-red);
    font-weight: 900;
}

.costo-universe-card--ramps .costo-universe-card__link {
    color: var(--costo-blue);
}

.costo-universe-card__link span {
    transition: transform .18s ease;
}

.costo-universe-card:hover .costo-universe-card__link span,
.costo-universe-card:focus-visible .costo-universe-card__link span {
    transform: translateX(5px);
}

/* Company */
.costo-about {
    position: relative;
    padding: 112px 0;
    background: var(--costo-pale);
}

.costo-about::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 17%;
    background: linear-gradient(180deg, var(--costo-blue), var(--costo-blue-dark));
    clip-path: polygon(0 0, 100% 0, 63% 100%, 0 100%);
}

.costo-about__grid {
    display: grid;
    grid-template-columns: minmax(360px, .83fr) minmax(0, 1.17fr);
    align-items: center;
    gap: clamp(54px, 7vw, 100px);
}

.costo-about__visual {
    position: relative;
    min-height: 520px;
}

.costo-about__logo-panel {
    position: absolute;
    inset: 0 34px 34px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px;
    border-radius: 34px;
    background: #fff;
    box-shadow: var(--costo-shadow);
}

.costo-about__logo-panel::before {
    content: '';
    position: absolute;
    inset: 22px;
    border: 3px solid rgba(17,16,155,.12);
    border-radius: 24px;
    pointer-events: none;
}

.costo-about__logo-panel img {
    width: min(100%, 340px);
    max-height: 310px;
    object-fit: contain;
}

.costo-about__logo-panel > span {
    margin-top: 18px;
    color: var(--costo-blue);
    font-weight: 800;
    font-style: italic;
}

.costo-about__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 152px;
    height: 152px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 8px solid var(--costo-pale);
    border-radius: 50%;
    background: var(--costo-red);
    color: #fff;
    box-shadow: 0 14px 28px rgba(207,23,27,.22);
}

.costo-about__badge strong,
.costo-about__badge span {
    display: block;
}

.costo-about__badge strong {
    font-size: 22px;
}

.costo-about__badge span {
    margin-top: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.costo-about__content > p {
    margin: 26px 0 34px;
    color: var(--costo-muted);
    font-size: 18px;
    line-height: 1.75;
}

.costo-benefits {
    display: grid;
    gap: 16px;
    margin-bottom: 34px;
}

.costo-benefits > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(24, 25, 47, .05);
}

.costo-benefits span {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--costo-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.costo-benefits strong {
    font-size: 17px;
}

.costo-benefits small {
    margin-top: 3px;
    color: var(--costo-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Services and contact */
.costo-service-band {
    background: var(--costo-blue-dark);
    color: #fff;
    padding: 42px 0;
}

.costo-service-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.costo-service-band__grid > div {
    padding: 6px 28px;
    border-right: 1px solid rgba(255,255,255,.2);
}

.costo-service-band__grid > div:first-child { padding-left: 0; }
.costo-service-band__grid > div:last-child { border-right: 0; }

.costo-service-band strong,
.costo-service-band span {
    display: block;
}

.costo-service-band strong {
    font-size: 18px;
}

.costo-service-band span {
    margin-top: 8px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.45;
}

.costo-contact-cta {
    position: relative;
    padding: 92px 0 120px;
    background: var(--costo-red);
    color: #fff;
    overflow: hidden;
}

.costo-contact-cta::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -250px;
    border: 55px solid rgba(17,16,155,.52);
    border-radius: 50%;
}

.costo-contact-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.costo-contact-cta h2 {
    color: #fff;
}

.costo-contact-cta p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.85);
    font-size: 18px;
    line-height: 1.6;
}

.costo-contact-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 250px;
}


/* FOOTER — même géométrie que le site Destiné & Fils */
.costo-site-footer {
    position: relative;
    z-index: 5;
    margin-top: 96px;
    min-height: 520px;
    background: var(--costo-bg) !important;
    color: var(--costo-white);
    overflow: hidden;
    font-family: inherit;
}
.costo-footer-wave {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.costo-footer-wave svg { width: 100%; height: 100%; display: block; }
.costo-footer-fill { fill: var(--costo-red); }
.costo-footer-line {
    fill: none;
    stroke: var(--costo-blue);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.costo-footer-logo {
    top: 22px;
    right: max(26px, calc((100vw - 1220px) / 2 + 26px));
}
.costo-footer-logo img {
    display: block;
    width: auto;
    height: clamp(118px, 13vw, 176px);
    max-width: min(230px, 22vw);
    object-fit: contain;
}
.costo-footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 520px;
    margin: 0 auto;
    padding: 96px 28px 0;
}
.costo-footer-left {
    width: 520px;
    padding-bottom: 42px;
}
.costo-footer-left strong {
    display: block;
    color: var(--costo-white) !important;
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.07;
    font-weight: 950;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.costo-footer-left em {
    display: block;
    margin-top: 11px;
    color: var(--costo-blue) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}
.costo-footer-left p {
    margin: 18px 0 0;
    color: var(--costo-white) !important;
    font-size: 18px;
    line-height: 1.42;
}
.costo-footer-contact { margin-top: 18px; }
.costo-footer-contact a {
    display: block;
    color: var(--costo-white) !important;
    text-decoration: none !important;
    font-size: clamp(22px, 2.15vw, 32px);
    line-height: 1.18;
    font-weight: 950;
}
.costo-footer-actions {
    position: absolute;
    left: 360px;
    bottom: 116px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.costo-footer-services {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 68px;
    color: var(--costo-blue);
    font-size: clamp(14px, 1.22vw, 18px);
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
}
.costo-footer-bottom {
    position: relative;
    z-index: 3;
    max-width: 1220px;
    margin: 10px auto 0;
    padding: 0 28px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(247,247,247,.84);
    font-size: 13px;
}
.costo-footer-bottom a {
    color: var(--costo-white) !important;
    text-decoration: none !important;
    font-weight: 800;
}
.costo-footer-bottom span:nth-child(2) {
    max-width: 760px;
    text-align: right;
}

/* Masque le header/footer du thème sur les pages habillées par le plugin. */
body.costo-shell-active:not(.costo-front-page) > #page > header.site-header,
body.costo-shell-active:not(.costo-front-page) > #page > footer.site-footer,
body.costo-shell-active:not(.costo-front-page) #masthead:not(.costo-site-header),
body.costo-shell-active:not(.costo-front-page) #colophon:not(.costo-site-footer),
body.costo-shell-active:not(.costo-front-page) .elementor-location-header,
body.costo-shell-active:not(.costo-front-page) .elementor-location-footer,
body.costo-shell-active:not(.costo-front-page) .wp-site-blocks > header,
body.costo-shell-active:not(.costo-front-page) .wp-site-blocks > footer {
    display: none !important;
}
body.costo-shell-active:not(.costo-front-page) .costo-site-header,
body.costo-shell-active:not(.costo-front-page) .costo-site-footer { display: block !important; }
body.costo-shell-active:not(.costo-front-page) .site-content,
body.costo-shell-active:not(.costo-front-page) main.site-main,
body.costo-shell-active:not(.costo-front-page) #primary { scroll-margin-top: 30px; }

@media (max-width: 1100px) {
    .costo-header-nav { right: 24px; bottom: 30px; gap: 15px; font-size: 13px; }
    .costo-header-brand { width: 430px; }
    .costo-header-logo { top: 10px; right: 20px; }
    .costo-header-logo img { height: 105px; max-width: 145px; }
    .costo-footer-logo { top: 22px; right: 18px; }
    .costo-footer-logo img { height: 136px; max-width: 180px; }
    .costo-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); }
    .costo-footer-services { font-size: 12px; }
}

@media (max-width: 980px) {
    .costo-hero { min-height: auto; padding: 106px 0 128px; }
    .costo-hero__inner { grid-template-columns: 1fr; }
    .costo-hero__visual { max-width: 650px; margin-inline: auto; }
    .costo-hero__content { text-align: center; }
    .costo-hero__content .costo-eyebrow { justify-content: center; }
    .costo-hero__content > p { margin-inline: auto; }
    .costo-universe-grid { grid-template-columns: 1fr; }
    .costo-universe-card { min-height: 0; }
    .costo-about__grid { grid-template-columns: 1fr; }
    .costo-about::before { width: 28%; opacity: .18; }
    .costo-about__visual { max-width: 620px; width: 100%; margin-inline: auto; }
    .costo-service-band__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
    .costo-service-band__grid > div:nth-child(2) { border-right: 0; }
    .costo-service-band__grid > div:nth-child(3) { padding-left: 0; }
    .costo-contact-cta__inner { flex-direction: column; align-items: flex-start; }
    .costo-contact-cta__actions { flex-direction: row; min-width: 0; flex-wrap: wrap; }
}

@media (max-width: 860px) {
    .costo-site-header { height: 320px; }
    .costo-header-inner { height: 320px; padding-top: 38px; }
    .costo-header-brand { width: 100%; }
    .costo-header-brand span { font-size: clamp(22px, 5vw, 31px); }
    .costo-header-brand em { font-size: 18px; margin-top: 12px; }
    .costo-header-actions { left: 20px; bottom: 88px; }
    .costo-header-nav { left: 20px; right: 20px; bottom: 32px; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
    .costo-header-logo { top: 8px; right: 12px; opacity: .96; }
    .costo-header-logo img { height: 88px; max-width: 122px; }
    .costo-site-footer { min-height: 560px; }
    .costo-footer-inner { min-height: 560px; padding-top: 92px; }
    .costo-footer-left { width: 100%; max-width: 430px; }
    .costo-footer-actions { left: 28px; bottom: 104px; }
    .costo-footer-services { bottom: 76px; font-size: 11px; }
    .costo-footer-logo { top: 16px; right: 10px; opacity: .96; }
    .costo-footer-logo img { height: 104px; max-width: 138px; }
    .costo-footer-bottom span:nth-child(2) { max-width: none; text-align: left; }
}

@media (max-width: 700px) {
    .costo-container { width: min(calc(100% - 30px), var(--costo-container)); }
    .costo-hero { padding: 88px 0 112px; }
    .costo-hero h1 { font-size: clamp(41px, 14vw, 58px); }
    .costo-hero__content > p { font-size: 17px; }
    .costo-hero__visual { margin-top: -10px; }
    .costo-universes { padding: 32px 0 80px; }
    .costo-universe-card { padding: 28px; }
    .costo-universe-card__title { font-size: 26px; }
    .costo-about { padding: 82px 0; }
    .costo-about__visual { min-height: 420px; }
    .costo-about__logo-panel { inset: 0 16px 28px 0; padding: 24px; }
    .costo-about__badge { width: 125px; height: 125px; }
    .costo-service-band__grid { grid-template-columns: 1fr; }
    .costo-service-band__grid > div,
    .costo-service-band__grid > div:nth-child(3) { padding: 4px 0 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .costo-service-band__grid > div:last-child { border-bottom: 0; padding-bottom: 0; }
    .costo-contact-cta { padding: 78px 0 102px; }
    .costo-contact-cta__actions { width: 100%; flex-direction: column; }
    .costo-contact-cta__actions .costo-button { width: 100%; }
}

@media (max-width: 620px) {
    .costo-site-header {
        height: auto;
        min-height: 350px;
        background: var(--costo-red) !important;
        border-top: 10px solid var(--costo-blue);
    }
    .costo-header-wave { display: none; }
    .costo-header-logo, .costo-footer-logo { display: none; }
    .costo-header-inner { height: auto; min-height: 340px; padding: 24px 18px 22px; }
    .costo-header-brand { width: 100%; }
    .costo-header-brand span { font-size: 23px; }
    .costo-header-brand em { color: var(--costo-white) !important; font-size: 16px; }
    .costo-header-actions { position: static; margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 10px; }
    .costo-header-nav { position: static; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; font-size: 14px; }
    .costo-cart-link svg { display: none; }
    .costo-shell-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
    .costo-site-footer {
        margin-top: 56px;
        min-height: auto;
        background: var(--costo-red) !important;
        border-top: 10px solid var(--costo-blue);
    }
    .costo-footer-wave { display: none; }
    .costo-footer-inner { min-height: auto; padding: 28px 18px 0; }
    .costo-footer-left { width: 100%; }
    .costo-footer-left strong { font-size: 24px; }
    .costo-footer-left em { color: var(--costo-white) !important; font-size: 17px; }
    .costo-footer-left p { font-size: 16px; margin-top: 16px; }
    .costo-footer-contact a { font-size: 24px; }
    .costo-footer-actions { position: static; margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
    .costo-footer-services { position: static; white-space: normal; font-size: 14px; line-height: 1.35; margin-top: 20px; color: var(--costo-white); }
    .costo-footer-bottom { margin: 0; padding: 20px 18px 22px; display: block; }
    .costo-footer-bottom span { display: block; margin-top: 8px; }
}

@media (max-width: 420px) {
    .costo-hero__visual { display: none; }
    .costo-hero { padding-bottom: 116px; }
    .costo-about__visual { min-height: 340px; }
    .costo-about__badge { width: 110px; height: 110px; border-width: 6px; }
}

/* ========================================================================== */
/* v1.2.0 — disposition validée : logos compacts, vague plus haute et contenu */
/* parfaitement séparé sur ordinateur. Ces règles sont volontairement très   */
/* spécifiques pour ne pas être écrasées par le thème WooCommerce.            */
/* ========================================================================== */

@media (min-width: 1111px) {
    .costo-site-header {
        height: 340px !important;
        min-height: 340px !important;
    }

    .costo-site-header .costo-header-wave,
    .costo-site-header .costo-header-wave svg {
        height: 340px !important;
    }

    .costo-site-header .costo-header-inner {
        width: min(100%, 1500px) !important;
        max-width: 1500px !important;
        height: 340px !important;
        padding: 150px 64px 0 !important;
    }

    .costo-site-header .costo-header-brand {
        width: 620px !important;
        max-width: calc(100% - 360px) !important;
    }

    .costo-site-header .costo-header-brand span {
        font-size: clamp(34px, 2.75vw, 46px) !important;
        line-height: 1 !important;
    }

    .costo-site-header .costo-header-brand em {
        margin-top: 14px !important;
        font-size: clamp(21px, 1.65vw, 27px) !important;
    }

    .costo-site-header .costo-header-actions {
        left: 64px !important;
        bottom: 38px !important;
        gap: 18px !important;
    }

    .costo-site-header .costo-shell-btn {
        min-height: 56px !important;
        padding: 13px 28px !important;
        gap: 12px !important;
        font-size: 19px !important;
    }

    .costo-site-header .costo-shell-btn-blue {
        min-width: 300px !important;
    }

    .costo-site-header .costo-shell-btn-white {
        min-width: 245px !important;
    }

    .costo-site-header .costo-btn-icon {
        width: 25px !important;
        height: 25px !important;
        flex: 0 0 25px !important;
        display: block !important;
        fill: currentColor !important;
    }

    .costo-site-header .costo-header-nav {
        left: 685px !important;
        right: 64px !important;
        bottom: 55px !important;
        justify-content: flex-end !important;
        gap: clamp(18px, 1.65vw, 30px) !important;
        font-size: clamp(14px, 1.05vw, 17px) !important;
    }

    .costo-site-header .costo-header-logo {
        position: absolute !important;
        top: 92px !important;
        right: max(64px, calc((100vw - 1500px) / 2 + 64px)) !important;
        width: 132px !important;
        height: 122px !important;
        max-width: 132px !important;
        max-height: 122px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        z-index: 3 !important;
    }

    .costo-site-header .costo-header-logo img {
        display: block !important;
        width: 132px !important;
        height: auto !important;
        max-width: 132px !important;
        max-height: 122px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }
}

/* Footer : le logo reste entièrement dans le blanc, sans toucher la vague. */
@media (min-width: 861px) {
    .costo-site-footer {
        min-height: 610px !important;
    }

    .costo-site-footer .costo-footer-wave,
    .costo-site-footer .costo-footer-wave svg {
        height: 560px !important;
    }

    .costo-site-footer .costo-footer-inner {
        width: min(100%, 1500px) !important;
        max-width: 1500px !important;
        min-height: 560px !important;
        padding: 180px 64px 0 !important;
    }

    .costo-site-footer .costo-footer-left {
        width: 560px !important;
    }

    .costo-site-footer .costo-footer-left strong {
        font-size: clamp(31px, 2.55vw, 43px) !important;
    }

    .costo-site-footer .costo-footer-left em {
        font-size: clamp(21px, 1.65vw, 27px) !important;
    }

    .costo-site-footer .costo-footer-logo {
        position: absolute !important;
        top: 178px !important;
        right: max(88px, calc((100vw - 1500px) / 2 + 88px)) !important;
        width: 170px !important;
        height: 154px !important;
        max-width: 170px !important;
        max-height: 154px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        z-index: 3 !important;
    }

    .costo-site-footer .costo-footer-logo img {
        display: block !important;
        width: 170px !important;
        height: auto !important;
        max-width: 170px !important;
        max-height: 154px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .costo-site-footer .costo-footer-actions {
        left: 475px !important;
        bottom: 119px !important;
    }

    .costo-site-footer .costo-footer-services {
        left: 64px !important;
        right: 64px !important;
        bottom: 70px !important;
    }

    .costo-site-footer .costo-footer-bottom {
        width: min(100%, 1500px) !important;
        max-width: 1500px !important;
        padding-inline: 64px !important;
    }
}

/* Écrans intermédiaires : aucune collision entre logo, marque et navigation. */
@media (min-width: 861px) and (max-width: 1110px) {
    .costo-site-header {
        height: 325px !important;
    }

    .costo-site-header .costo-header-inner {
        height: 325px !important;
        padding: 128px 28px 0 !important;
    }

    .costo-site-header .costo-header-brand {
        width: 520px !important;
        max-width: calc(100% - 180px) !important;
    }

    .costo-site-header .costo-header-actions {
        left: 28px !important;
        bottom: 82px !important;
    }

    .costo-site-header .costo-header-nav {
        left: 28px !important;
        right: 28px !important;
        bottom: 29px !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        font-size: 14px !important;
    }

    .costo-site-header .costo-header-logo {
        top: 72px !important;
        right: 28px !important;
        width: 110px !important;
        height: 102px !important;
        max-width: 110px !important;
        max-height: 102px !important;
    }

    .costo-site-header .costo-header-logo img {
        width: 110px !important;
        max-width: 110px !important;
        max-height: 102px !important;
    }

    .costo-site-footer .costo-footer-logo {
        top: 150px !important;
        right: 34px !important;
        width: 140px !important;
        height: 127px !important;
        max-width: 140px !important;
        max-height: 127px !important;
    }

    .costo-site-footer .costo-footer-logo img {
        width: 140px !important;
        max-width: 140px !important;
        max-height: 127px !important;
    }
}

/* Le SVG de l'icône ne doit jamais hériter d'une taille géante du thème. */
.costo-shell-btn .costo-btn-icon {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: currentColor;
}

@media (max-width: 620px) {
    .costo-shell-btn .costo-btn-icon {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }
}

/* Accueil v1.4 — accès immédiat aux trois univers */
.costo-welcome {
    position: relative;
    padding: clamp(52px, 6vw, 82px) 0 clamp(78px, 8vw, 112px);
    background: #fff;
}

.costo-welcome__heading {
    max-width: 980px;
    margin: 0 auto clamp(38px, 5vw, 58px);
    text-align: center;
}

.costo-welcome__heading h1 {
    margin: 0;
    color: var(--costo-ink);
    font-size: clamp(38px, 5.2vw, 66px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.costo-welcome__heading h1::after {
    content: '';
    display: block;
    width: 92px;
    height: 6px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--costo-red) 0 62%, var(--costo-blue) 62% 100%);
}

.costo-welcome__heading p {
    max-width: 930px;
    margin: 24px auto 0;
    color: var(--costo-muted);
    font-size: clamp(19px, 2.1vw, 25px);
    line-height: 1.52;
}

/* L'ancien bloc univers reste disponible ailleurs, mais l'accueil utilise .costo-welcome. */
.costo-welcome .costo-universe-card {
    min-height: 390px;
}

/* Histoire */
.costo-history {
    position: relative;
    padding: clamp(82px, 9vw, 124px) 0;
    overflow: hidden;
    background: var(--costo-pale);
}

.costo-history::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: min(18vw, 260px);
    background: linear-gradient(180deg, var(--costo-blue), var(--costo-blue-dark));
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
}

.costo-history__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(52px, 7vw, 100px);
}

.costo-history__timeline {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--costo-shadow);
}

.costo-history__timeline::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 3px solid rgba(17, 16, 155, .11);
    border-radius: 22px;
    pointer-events: none;
}

.costo-history__milestone {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
    gap: 24px;
}

.costo-history__milestone strong {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--costo-blue);
    color: #fff;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(17, 16, 155, .22);
}

.costo-history__milestone--current strong {
    background: var(--costo-red);
    box-shadow: 0 14px 26px rgba(207, 23, 27, .22);
}

.costo-history__milestone span {
    color: var(--costo-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
}

.costo-history__line {
    position: absolute;
    z-index: 0;
    left: 104px;
    top: 145px;
    bottom: 145px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(var(--costo-blue), var(--costo-red));
}

.costo-history__content h2 {
    margin: 0;
    color: var(--costo-ink);
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.costo-history__text {
    margin-top: 28px;
}

.costo-history__text p {
    margin: 0 0 20px;
    color: var(--costo-muted);
    font-size: 18px;
    line-height: 1.76;
}

.costo-history__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .costo-history::before { width: 95px; }
    .costo-history__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .costo-history__timeline {
        min-height: 0;
        flex-direction: row;
        gap: 34px;
    }
    .costo-history__milestone {
        flex: 1;
        grid-template-columns: 88px 1fr;
    }
    .costo-history__milestone strong {
        width: 88px;
        height: 88px;
        font-size: 23px;
    }
    .costo-history__line {
        left: calc(25% + 44px);
        right: calc(25% + 44px);
        top: 50%;
        bottom: auto;
        width: auto;
        height: 4px;
        transform: translateY(-50%);
    }
}

@media (max-width: 680px) {
    .costo-welcome { padding-top: 42px; }
    .costo-welcome__heading { text-align: left; }
    .costo-welcome__heading h1::after { margin-left: 0; }
    .costo-history::before { display: none; }
    .costo-history__timeline {
        flex-direction: column;
        padding: 34px 28px;
    }
    .costo-history__milestone {
        grid-template-columns: 78px 1fr;
    }
    .costo-history__milestone strong {
        width: 78px;
        height: 78px;
        font-size: 21px;
    }
    .costo-history__line {
        left: 66px;
        right: auto;
        top: 110px;
        bottom: 110px;
        width: 4px;
        height: auto;
        transform: none;
    }
}
