/*
 * DOLI — thème de prévisualisation « Apple mix »
 * Principes : hiérarchie nette, matières légères, mouvement retenu et retour tactile.
 * Le contenu et la logique restent ceux du site officiel.
 */

.theme--apple-mix {
    --canvas: #f5f8fc;
    --surface: #ffffff;
    --surface-strong: #edf4ff;
    --surface-mint: #ecf8f6;
    --surface-sky: #edf6ff;
    --surface-sand: #fff8e9;
    --surface-coral: #fff1ec;
    --ink: #263348;
    --ink-strong: #0b1426;
    --ink-soft: #607086;
    --line: rgb(112 135 165 / 0.2);
    --line-strong: rgb(75 98 128 / 0.32);
    --accent: #2475ed;
    --accent-strong: #1459c7;
    --accent-blue: #00a9ce;
    --accent-violet: #7555e9;
    --accent-warm: #d88422;
    --accent-rose: #d55387;
    --accent-soft: #e9f1ff;
    --on-accent: #ffffff;
    --shadow: 0 1.5rem 4rem rgb(23 50 88 / 0.13);
    --shadow-soft: 0 0.75rem 2.4rem rgb(31 72 126 / 0.09);
    --radius: 1rem;
    --header: 5rem;
    --shell: 92rem;
    --section: clamp(5rem, 9vw, 9rem);
    --apple-material: rgb(255 255 255 / 0.72);
    --apple-material-strong: rgb(255 255 255 / 0.9);
    --apple-spring: cubic-bezier(0.2, 0.82, 0.24, 1);
    background:
        radial-gradient(circle at 7% 8%, rgb(36 117 237 / 0.11), transparent 27rem),
        radial-gradient(circle at 91% 20%, rgb(0 169 206 / 0.09), transparent 30rem),
        linear-gradient(180deg, #f7faff 0%, #f5f8fc 58%, #f9fafc 100%);
    color: var(--ink);
    font-feature-settings: "kern" 1, "liga" 1;
    font-optical-sizing: auto;
}

.theme--apple-mix main {
    min-height: calc(100dvh - var(--header));
}

.theme--apple-mix h1,
.theme--apple-mix h2,
.theme--apple-mix h3 {
    color: var(--ink-strong);
    font-weight: 735;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
}

.theme--apple-mix h1 {
    font-size: clamp(3rem, 5.5vw, 5.75rem);
    line-height: 0.96;
}

.theme--apple-mix h2 {
    font-size: clamp(2.25rem, 4.1vw, 4.35rem);
    line-height: 1;
}

.theme--apple-mix h3 {
    line-height: 1.08;
}

.theme--apple-mix p {
    text-wrap: pretty;
}

.theme--apple-mix :focus-visible {
    outline: 3px solid rgb(36 117 237 / 0.66);
    outline-offset: 4px;
}

.theme--apple-mix .eyebrow {
    margin-bottom: 1rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

/* En-tête : une barre familière, calme et lisible. */
.theme--apple-mix .site-header {
    min-height: var(--header);
    border-bottom: 1px solid rgb(124 148 181 / 0.16);
    background: rgb(247 250 255 / 0.72);
    box-shadow: 0 0.35rem 1.5rem rgb(15 35 65 / 0.025);
    transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    -webkit-backdrop-filter: saturate(150%) blur(24px);
    backdrop-filter: saturate(150%) blur(24px);
}

.theme--apple-mix .site-header.is-scrolled {
    border-bottom-color: rgb(124 148 181 / 0.24);
    background: rgb(250 252 255 / 0.88);
    box-shadow: 0 0.6rem 2rem rgb(15 35 65 / 0.07);
}

.theme--apple-mix .site-header .site-header__inner {
    min-height: var(--header);
    margin-inline: clamp(1rem, 3.5vw, 4rem);
}

.theme--apple-mix .brand {
    padding: 0.25rem 0;
}

.theme--apple-mix .brand__name {
    color: var(--ink-strong);
    font-size: clamp(1.72rem, 2vw, 2.08rem);
    font-weight: 850;
    letter-spacing: -0.045em;
}

.theme--apple-mix .brand__tagline {
    color: #344155;
    font-weight: 735;
}

.theme--apple-mix .primary-nav__links {
    gap: 0.35rem;
}

.theme--apple-mix .primary-nav__links a {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    color: #596a81;
    font-size: 0.88rem;
    font-weight: 650;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--apple-spring);
}

.theme--apple-mix .primary-nav__links a::after {
    display: none;
}

.theme--apple-mix .primary-nav__links a:hover,
.theme--apple-mix .primary-nav__links a[aria-current="page"] {
    background: rgb(255 255 255 / 0.78);
    color: var(--ink-strong);
}

.theme--apple-mix .primary-nav__links a:active,
.theme--apple-mix .header-portal-link:active,
.theme--apple-mix .button:active {
    transform: scale(0.97);
}

.theme--apple-mix .header-portal-link {
    right: 0;
    min-height: 2.6rem;
    border: 1px solid rgb(11 20 38 / 0.13);
    background: rgb(255 255 255 / 0.72);
    box-shadow: 0 0.35rem 1.25rem rgb(15 35 65 / 0.07);
    font-weight: 680;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.theme--apple-mix .header-portal-link:hover,
.theme--apple-mix .header-portal-link:focus-visible {
    border-color: rgb(11 20 38 / 0.18);
    background: var(--ink-strong);
    color: #fff;
}

/* Commandes : visuelles, immédiates et jamais décoratives. */
.theme--apple-mix .button {
    min-height: 3.25rem;
    border-radius: 999px;
    padding-inline: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    transition: color 170ms ease, background-color 170ms ease, border-color 170ms ease,
        box-shadow 220ms ease, transform 220ms var(--apple-spring);
}

.theme--apple-mix .button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #287cf2, #05a9c9);
    box-shadow: 0 0.75rem 1.9rem rgb(31 111 224 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.24);
}

.theme--apple-mix .button--primary:hover,
.theme--apple-mix .button--primary:focus-visible {
    background: linear-gradient(135deg, #1767d6, #008eae);
    box-shadow: 0 0.9rem 2.2rem rgb(31 111 224 / 0.29), inset 0 1px 0 rgb(255 255 255 / 0.2);
    transform: translateY(-1px);
}

.theme--apple-mix .button--text {
    min-height: 2.8rem;
    border: 0;
    border-radius: 999px;
    padding-inline: 1rem;
    background: rgb(255 255 255 / 0.64);
    color: var(--ink-strong);
}

.theme--apple-mix .button--text:hover,
.theme--apple-mix .button--text:focus-visible {
    background: #fff;
    color: var(--accent-strong);
}

/* Accueil */
.theme--apple-mix .refonte4-hero {
    position: relative;
    border-bottom: 0;
    background:
        radial-gradient(circle at 13% 26%, rgb(35 126 244 / 0.2), transparent 31rem),
        radial-gradient(circle at 85% 70%, rgb(0 174 198 / 0.15), transparent 28rem),
        radial-gradient(circle at 80% 13%, rgb(121 82 231 / 0.12), transparent 23rem),
        linear-gradient(135deg, #f7faff 0%, #eef6ff 53%, #fffaf0 100%);
}

.theme--apple-mix .refonte4-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8rem;
    background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.3));
    content: "";
    pointer-events: none;
}

.theme--apple-mix .refonte3-slide__pattern {
    background-image:
        linear-gradient(rgb(36 117 237 / 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgb(36 117 237 / 0.055) 1px, transparent 1px);
    background-size: 5.5rem 5.5rem;
    mask-image: radial-gradient(circle at 72% 45%, #000 0%, rgb(0 0 0 / 0.85) 30%, transparent 72%);
}

.theme--apple-mix .refonte3-slide__pattern span {
    border-color: rgb(113 145 190 / 0.2);
    border-radius: clamp(1.5rem, 3vw, 2.4rem);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.36));
    box-shadow: 0 2rem 5rem rgb(43 82 132 / 0.13), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .refonte3-slide__content {
    width: min(calc(100% - (2 * var(--gutter))), var(--shell));
}

.theme--apple-mix .refonte3-slide__content h1 {
    max-width: 15ch;
    font-size: clamp(3.8rem, 7vw, 7.35rem);
    font-weight: 760;
    letter-spacing: -0.075em;
    line-height: 0.91;
}

.theme--apple-mix .refonte3-hero__lead {
    max-width: 44rem;
    color: #34445a;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.theme--apple-mix .trust-carousel {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    border-color: var(--line);
    background:
        radial-gradient(circle at 10% 20%, rgb(37 117 237 / 0.08), transparent 22rem),
        radial-gradient(circle at 89% 72%, rgb(0 169 206 / 0.07), transparent 23rem),
        rgb(251 253 255 / 0.9);
}

.theme--apple-mix .trust-carousel__heading {
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.theme--apple-mix .trust-carousel__heading h2 {
    max-width: 17ch;
    font-size: clamp(2.25rem, 4.2vw, 4.25rem);
    font-weight: 735;
    letter-spacing: -0.055em;
}

.theme--apple-mix .trust-carousel__viewport {
    width: min(calc(100% - (2 * var(--gutter))), 80rem);
    padding-block: 0.35rem;
}

.theme--apple-mix .trust-logo-card {
    min-height: 8.25rem;
    border-color: rgb(94 121 156 / 0.17);
    border-radius: 1.35rem;
    background: rgb(255 255 255 / 0.7);
    box-shadow: 0 0.75rem 2.4rem rgb(34 68 109 / 0.055), inset 0 1px 0 rgb(255 255 255 / 0.9);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease,
        transform 240ms var(--apple-spring);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .trust-logo-card[href]:hover,
.theme--apple-mix .trust-logo-card[href]:focus-visible {
    border-color: rgb(36 117 237 / 0.3);
    background: rgb(255 255 255 / 0.94);
    box-shadow: 0 1rem 2.8rem rgb(34 68 109 / 0.11);
    transform: translateY(-0.18rem) scale(1.01);
}

/* Catalogue vitrine */
.theme--apple-mix .catalogue-shop {
    background:
        radial-gradient(circle at 8% 4%, rgb(36 117 237 / 0.13), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgb(117 85 233 / 0.08), transparent 25rem),
        linear-gradient(180deg, #f7faff 0%, #f3f7fc 45%, #f8fafc 100%);
}

.theme--apple-mix .catalogue-shop__intro {
    min-height: min(38rem, calc(68dvh - var(--header)));
    justify-items: center;
    text-align: center;
}

.theme--apple-mix .catalogue-shop__intro h1 {
    max-width: 20ch !important;
    font-size: clamp(2.5rem, 4.25vw, 4.5rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.052em !important;
}

.theme--apple-mix .catalogue-shop__lead {
    max-width: 54rem;
    color: #52647a;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.theme--apple-mix .catalogue-domains {
    width: 100%;
    max-width: none;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.25rem;
}

.theme--apple-mix .catalogue-domains li {
    display: grid;
    min-height: 3rem;
    place-items: center;
    border-color: rgb(88 116 151 / 0.18);
    padding: 0.55rem 0.9rem;
    background: rgb(255 255 255 / 0.64);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.88);
    text-align: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

@media (min-width: 62rem) {
    .theme--apple-mix .catalogue-domains {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    }
}

.theme--apple-mix .catalogue-products {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.theme--apple-mix .catalogue-products__heading {
    text-align: center;
}

.theme--apple-mix .catalogue-products__heading h2 {
    max-width: none;
}

.theme--apple-mix .product-grid {
    gap: clamp(1.1rem, 2vw, 1.65rem);
}

.theme--apple-mix .product-card__link {
    overflow: hidden;
    border-color: rgb(93 120 154 / 0.16);
    border-radius: 1.75rem;
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 1rem 3rem rgb(35 67 108 / 0.075), inset 0 1px 0 rgb(255 255 255 / 0.92);
    transition: border-color 180ms ease, box-shadow 260ms ease, transform 280ms var(--apple-spring);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.theme--apple-mix .product-card__link:hover,
.theme--apple-mix .product-card__link:focus-visible {
    border-color: rgb(36 117 237 / 0.28);
    box-shadow: 0 1.5rem 4rem rgb(35 67 108 / 0.14), inset 0 1px 0 #fff;
    transform: translateY(-0.35rem) scale(1.008);
}

.theme--apple-mix .product-card__link:active {
    transform: scale(0.985);
}

.theme--apple-mix .product-card__visual {
    min-height: clamp(10rem, 15vw, 13.5rem);
    border-bottom-color: rgb(93 120 154 / 0.13);
    background:
        radial-gradient(circle at 74% 18%, rgb(255 255 255 / 0.82), transparent 8rem),
        linear-gradient(145deg, #dbeaff, #eef6ff 55%, #f7fbff);
}

.theme--apple-mix .product-card--outils-metier .product-card__visual,
.theme--apple-mix .product-card--automatisations .product-card__visual {
    background: linear-gradient(145deg, #dff7f8, #edf9ff 56%, #f8fcff);
}

.theme--apple-mix .product-card--dolibarr .product-card__visual,
.theme--apple-mix .product-card--mise-en-production .product-card__visual {
    background: linear-gradient(145deg, #e8e4ff, #f0efff 55%, #f8f9ff);
}

.theme--apple-mix .product-card--reprise-maintenance .product-card__visual {
    background: linear-gradient(145deg, #fff0e1, #fff6ea 55%, #fffaf4);
}

.theme--apple-mix .product-card__visual > span {
    color: rgb(15 38 70 / 0.8);
    font-weight: 780;
}

.theme--apple-mix .product-card__body {
    min-height: 21rem;
    padding: clamp(1.4rem, 2.5vw, 2rem);
}

.theme--apple-mix .product-card__category {
    font-size: 0.75rem;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.theme--apple-mix .product-card h3 {
    margin-top: 0.7rem;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1.02;
}

.theme--apple-mix .product-card p {
    color: #5e6f84;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.theme--apple-mix .product-card__footer {
    border-top-color: var(--line);
}

.theme--apple-mix .product-card__footer > span {
    color: var(--ink-strong);
}

/* Fiche produit */
.theme--apple-mix .product-page {
    background:
        radial-gradient(circle at 84% 4%, rgb(36 117 237 / 0.1), transparent 28rem),
        linear-gradient(180deg, #f7faff, #f4f8fc 48rem, #f8fafc);
}

.theme--apple-mix .product-hero {
    min-height: min(40rem, calc(72dvh - var(--header)));
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.52fr);
}

.theme--apple-mix .product-hero h1 {
    max-width: 18ch !important;
    font-size: clamp(3rem, 5vw, 5.4rem) !important;
    letter-spacing: -0.065em !important;
}

.theme--apple-mix .product-hero__lead {
    color: #53667e;
}

.theme--apple-mix .product-hero__action {
    gap: 0.8rem;
    border: 1px solid rgb(93 120 154 / 0.17);
    border-radius: 1.6rem;
    padding: 1.35rem;
    background: rgb(255 255 255 / 0.7);
    box-shadow: 0 1rem 3rem rgb(35 67 108 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .product-hero__action > strong {
    color: var(--ink-strong);
}

.theme--apple-mix .product-overview {
    border-block-color: var(--line);
    background: rgb(255 255 255 / 0.78);
}

.theme--apple-mix .product-overview__content h2 {
    max-width: 17ch;
}

.theme--apple-mix .product-feature-list {
    border-top-color: var(--line);
}

.theme--apple-mix .product-feature-list li {
    border-color: var(--line);
    padding-block: 1.1rem;
}

.theme--apple-mix .product-feature-list li::before {
    display: inline-block;
    width: 0.48rem;
    height: 0.48rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    content: "";
    vertical-align: 0.08em;
}

.theme--apple-mix .product-preview__button {
    border-color: rgb(93 120 154 / 0.18);
    border-radius: 1.45rem;
    box-shadow: 0 1.3rem 3.4rem rgb(35 67 108 / 0.13);
}

.theme--apple-mix .product-preview__button span {
    border: 1px solid rgb(255 255 255 / 0.18);
    background: rgb(11 20 38 / 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .product-contact {
    background:
        radial-gradient(circle at 90% 25%, rgb(0 169 206 / 0.1), transparent 22rem),
        radial-gradient(circle at 10% 85%, rgb(117 85 233 / 0.08), transparent 25rem);
}

.theme--apple-mix .product-gallery-dialog {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 1.5rem;
    background: rgb(8 15 27 / 0.93);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
}

.theme--apple-mix .product-gallery-dialog::backdrop {
    background: rgb(4 9 18 / 0.64);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* Pages éditoriales et pages historiques */
.theme--apple-mix .page-hero {
    min-height: min(42rem, 68dvh);
}

.theme--apple-mix .page-hero > div:first-child {
    max-width: 70rem;
}

.theme--apple-mix .page-hero h1 {
    max-width: 16ch;
}

.theme--apple-mix .page-hero__lead {
    color: #566980;
}

.theme--apple-mix .story-page {
    display: grid;
    min-height: calc(100dvh - var(--header));
    align-items: center;
    background:
        radial-gradient(circle at 9% 16%, rgb(36 117 237 / 0.16), transparent 29rem),
        radial-gradient(circle at 88% 82%, rgb(0 169 206 / 0.11), transparent 26rem),
        linear-gradient(135deg, #f6f9ff 0%, #eef5ff 52%, #fffaf2 100%);
}

.theme--apple-mix .story-page__layout {
    align-items: center;
}

.theme--apple-mix .story-page h1 {
    max-width: 13ch;
}

.theme--apple-mix .story-page__copy {
    gap: 1rem;
    border: 1px solid rgb(93 120 154 / 0.17);
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgb(255 255 255 / 0.7);
    box-shadow: 0 1.25rem 3.5rem rgb(35 67 108 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .decision-scene,
.theme--apple-mix .demo-stage,
.theme--apple-mix .contact-page-scene,
.theme--apple-mix .proof-link-scene,
.theme--apple-mix .closing-scene {
    border-color: var(--line);
}

.theme--apple-mix .decision-scene {
    background: linear-gradient(180deg, rgb(235 247 247 / 0.78), rgb(246 250 252 / 0.92));
}

.theme--apple-mix .decision-list {
    gap: 0.8rem;
}

.theme--apple-mix .decision-list > div {
    min-height: 13.5rem;
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 1.25rem;
    padding: 1.35rem;
    background: rgb(255 255 255 / 0.64);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
}

.theme--apple-mix .decision-list dt {
    margin-bottom: 2.5rem;
}

.theme--apple-mix .solution-catalog {
    border-color: var(--line);
}

.theme--apple-mix .catalog-entry {
    margin-block: 1.1rem;
    border: 1px solid rgb(93 120 154 / 0.15);
    border-radius: 1.75rem;
    padding: clamp(2rem, 5vw, 4.25rem);
    background: rgb(255 255 255 / 0.62);
    box-shadow: 0 1rem 3rem rgb(35 67 108 / 0.055), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.theme--apple-mix .catalog-entry__body dl > div {
    border-color: var(--line);
}

.theme--apple-mix .closing-scene {
    background:
        radial-gradient(circle at 88% 15%, rgb(36 117 237 / 0.1), transparent 24rem),
        linear-gradient(135deg, #f4f8ff, #fffaf0);
}

.theme--apple-mix .closing-scene__inner {
    min-height: 30rem;
}

/* Références et démonstration */
.theme--apple-mix .reference-index {
    border-color: var(--line);
}

.theme--apple-mix .reference-index__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    border: 0;
}

.theme--apple-mix .reference-index__list article {
    min-height: 10rem;
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 1.35rem;
    padding: 1.4rem;
    background: rgb(255 255 255 / 0.68);
    box-shadow: 0 0.8rem 2.4rem rgb(35 67 108 / 0.06), inset 0 1px 0 rgb(255 255 255 / 0.9);
}

.theme--apple-mix .reference-index__list h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.theme--apple-mix .reference-index__media .image-slot__frame,
.theme--apple-mix .demo-stage .image-slot__frame {
    overflow: hidden;
    border-radius: 1.75rem;
    box-shadow: 0 1.5rem 4rem rgb(35 67 108 / 0.14);
}

.theme--apple-mix .transparency-note {
    border-left: 0;
    border-radius: 1.2rem;
    padding: 1.25rem;
    background: rgb(36 117 237 / 0.075);
}

.theme--apple-mix .proof-link-scene {
    background: linear-gradient(135deg, #eef5ff, #f6f9ff);
}

.theme--apple-mix .demo-stage {
    background: linear-gradient(135deg, #edf7ff 0%, #f1f7fc 55%, #f8fbfd 100%);
}

.theme--apple-mix .demo-stage__meta span {
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
    background: rgb(255 255 255 / 0.65);
}

/* Contact */
.theme--apple-mix .contact-direct {
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: rgb(255 255 255 / 0.65);
    box-shadow: 0 1rem 2.8rem rgb(35 67 108 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.theme--apple-mix .contact-page-scene {
    background:
        radial-gradient(circle at 8% 5%, rgb(213 83 135 / 0.08), transparent 23rem),
        linear-gradient(135deg, #fff6f3, #f7f9fd 65%);
}

.theme--apple-mix .contact-preparation {
    align-self: start;
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: rgb(255 255 255 / 0.48);
}

.theme--apple-mix .contact-preparation li {
    border-color: var(--line);
}

.theme--apple-mix .contact-form {
    border: 1px solid rgb(93 120 154 / 0.16);
    border-radius: 1.75rem;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 1.4rem 4rem rgb(35 67 108 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.theme--apple-mix .field input,
.theme--apple-mix .field select,
.theme--apple-mix .field textarea {
    border-color: rgb(84 109 141 / 0.24);
    border-radius: 0.85rem;
    background: rgb(247 250 254 / 0.78);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.theme--apple-mix .field input:focus,
.theme--apple-mix .field select:focus,
.theme--apple-mix .field textarea:focus {
    border-color: rgb(36 117 237 / 0.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgb(36 117 237 / 0.11);
}

/* Mentions et confidentialité */
.theme--apple-mix .page-hero--article {
    border-color: var(--line);
}

.theme--apple-mix .legal-identity {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1.5rem 0 0;
    background: transparent;
    box-shadow: none;
}

.theme--apple-mix .legal-identity dl > div,
.theme--apple-mix .prose section {
    border-color: var(--line);
}

.theme--apple-mix .prose {
    line-height: 1.7;
}

.theme--apple-mix .prose h2 {
    letter-spacing: -0.04em;
}

/* Tablette */
@media (max-width: 64rem) {
    .theme--apple-mix {
        --header: 4.65rem;
    }

    .theme--apple-mix .product-hero,
    .theme--apple-mix .product-overview__layout,
    .theme--apple-mix .product-contact__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .theme--apple-mix .product-hero__action {
        width: min(100%, 31rem);
        max-width: none;
    }

    .theme--apple-mix .decision-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme--apple-mix .decision-list > div:last-child {
        grid-column: 1 / -1;
    }
}

/* Menu mobile et écrans étroits */
@media (max-width: 60rem) {
    .theme--apple-mix .site-header {
        background: rgb(248 251 255 / 0.84);
    }

    .theme--apple-mix .site-header .menu-button {
        border: 1px solid rgb(93 120 154 / 0.16);
        border-radius: 50%;
        background: rgb(255 255 255 / 0.62);
        transition: background-color 160ms ease, transform 180ms var(--apple-spring);
    }

    .theme--apple-mix .site-header .menu-button:active {
        transform: scale(0.94);
    }

    html.js-ready .theme--apple-mix .site-header .primary-nav {
        top: calc(var(--header) + 0.55rem);
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        min-height: min(31rem, calc(100svh - var(--header) - 1.3rem));
        max-height: calc(100svh - var(--header) - 1.3rem);
        overflow-y: auto;
        border: 1px solid rgb(93 120 154 / 0.17);
        border-radius: 1.6rem;
        background: rgb(250 252 255 / 0.92);
        box-shadow: 0 1.5rem 4rem rgb(15 35 65 / 0.16);
        -webkit-backdrop-filter: saturate(150%) blur(28px);
        backdrop-filter: saturate(150%) blur(28px);
    }

    .theme--apple-mix .site-header .primary-nav__links {
        gap: 0.5rem;
    }

    .theme--apple-mix .site-header .primary-nav__links a {
        min-height: 3.35rem;
        border-radius: 0.9rem;
        font-size: 1.04rem;
    }

    .theme--apple-mix .site-header .primary-nav__links a:hover,
    .theme--apple-mix .site-header .primary-nav__links a:focus-visible,
    .theme--apple-mix .site-header .primary-nav__links a[aria-current="page"] {
        background: rgb(230 239 253 / 0.86);
        color: var(--ink-strong);
    }

    .theme--apple-mix .site-header .primary-nav__links a.primary-nav__portal {
        border-color: transparent;
        background: var(--ink-strong);
        color: #fff;
    }
}

@media (max-width: 48rem) {
    .theme--apple-mix {
        --gutter: 1.15rem;
        --section: 4.25rem;
    }

    .theme--apple-mix h1 {
        font-size: clamp(2.55rem, 11vw, 4rem);
        line-height: 0.98;
    }

    .theme--apple-mix h2 {
        font-size: clamp(2rem, 9vw, 3.15rem);
    }

    .theme--apple-mix .refonte3-slide__content h1 {
        max-width: 11ch;
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .theme--apple-mix .refonte3-slide__pattern {
        background-size: 3.75rem 3.75rem;
        mask-image: linear-gradient(180deg, #000, rgb(0 0 0 / 0.65) 60%, transparent 92%);
    }

    .theme--apple-mix .trust-carousel__viewport {
        mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
    }

    .theme--apple-mix .trust-logo-card {
        min-height: 7rem;
        border-radius: 1rem;
    }

    .theme--apple-mix .catalogue-shop__intro {
        min-height: auto;
        padding-block: 4rem;
    }

    .theme--apple-mix .product-hero {
        min-height: auto;
        padding-block: 4rem;
    }

    .theme--apple-mix .catalogue-shop__intro h1,
    .theme--apple-mix .product-hero h1 {
        max-width: 100% !important;
        font-size: clamp(2.45rem, 11vw, 3.75rem) !important;
        line-height: 0.99 !important;
    }

    .theme--apple-mix .catalogue-shop__intro h1 {
        font-size: clamp(2.15rem, 9vw, 3rem) !important;
        line-height: 1.03 !important;
    }

    .theme--apple-mix .catalogue-domains {
        justify-content: center;
    }

    .theme--apple-mix .catalogue-shop__intro {
        justify-items: start;
        text-align: left;
    }

    .theme--apple-mix .catalogue-products__heading {
        text-align: left;
    }

    .theme--apple-mix .product-card__link,
    .theme--apple-mix .product-hero__action,
    .theme--apple-mix .story-page__copy,
    .theme--apple-mix .contact-form,
    .theme--apple-mix .contact-direct,
    .theme--apple-mix .legal-identity,
    .theme--apple-mix .catalog-entry {
        border-radius: 1.25rem;
    }

    .theme--apple-mix .product-card__body {
        min-height: 18rem;
    }

    .theme--apple-mix .story-page__layout {
        gap: 2.5rem;
    }

    .theme--apple-mix .decision-list,
    .theme--apple-mix .reference-index__list {
        grid-template-columns: 1fr;
    }

    .theme--apple-mix .decision-list > div:last-child {
        grid-column: auto;
    }

    .theme--apple-mix .catalog-entry,
    .theme--apple-mix .catalog-entry--offset {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .theme--apple-mix .catalog-entry__title,
    .theme--apple-mix .catalog-entry__body,
    .theme--apple-mix .catalog-entry--offset .catalog-entry__title,
    .theme--apple-mix .catalog-entry--offset .catalog-entry__body {
        grid-row: auto;
        grid-column: 1;
    }

    .theme--apple-mix .reference-index__list article {
        min-height: 8rem;
    }

    .theme--apple-mix .contact-preparation {
        padding: 1.1rem;
    }
}

/* Accessibilité des matières et du mouvement. */
@media (prefers-reduced-motion: reduce) {
    .theme--apple-mix *,
    .theme--apple-mix *::before,
    .theme--apple-mix *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .theme--apple-mix .product-card__link:hover,
    .theme--apple-mix .trust-logo-card[href]:hover,
    .theme--apple-mix .button:hover {
        transform: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .theme--apple-mix .site-header,
    html.js-ready .theme--apple-mix .site-header .primary-nav,
    .theme--apple-mix .product-card__link,
    .theme--apple-mix .trust-logo-card,
    .theme--apple-mix .product-hero__action,
    .theme--apple-mix .story-page__copy,
    .theme--apple-mix .contact-form,
    .theme--apple-mix .contact-direct,
    .theme--apple-mix .legal-identity,
    .theme--apple-mix .catalog-entry {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .theme--apple-mix {
        --line: #8da0b8;
        --line-strong: #4e627c;
        --ink-soft: #40516a;
    }

    .theme--apple-mix .product-card__link,
    .theme--apple-mix .trust-logo-card,
    .theme--apple-mix .product-hero__action,
    .theme--apple-mix .contact-form,
    .theme--apple-mix .catalog-entry {
        border-width: 2px;
    }
}

@media (max-width: 60rem) {
    html.js-ready .theme--apple-mix .site-header .primary-nav { align-content: start; min-height: 0; max-height: calc(100dvh - var(--header) - 1.3rem); }
}

/* Keep project choices close to their introduction on every screen. */
.theme--apple-mix .catalogue-shop__intro { min-height: 0; padding-block: clamp(2rem, 4vw, 3rem); }
.theme--apple-mix .catalogue-shop__lead { text-align: left; }
.theme--apple-mix .catalogue-domains { margin-top: 1.5rem; }
.theme--apple-mix .catalogue-products { padding-block: 1rem 4rem; }

/* Legal pages keep a documentary hierarchy instead of the marketing scale. */
.page.theme--apple-mix .legal-document__header h1 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.theme--apple-mix .legal-document .legal-identity {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1.5rem 0 0;
    background: transparent;
    box-shadow: none;
}

.theme--apple-mix .legal-document .legal-identity h2,
.theme--apple-mix .cookie-register h2,
.theme--apple-mix .legal-document__body h2 {
    font-size: 20px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

@media (max-width: 40rem) {
    .page.theme--apple-mix .legal-document__header h1 {
        font-size: 26px;
    }
}
