/* Impré'son — styles propres à la page commande.html */

        :root {
            --fond-sombre: #090d16;
            --trench-gap: #0f172a;
            --orange-impres: #ea580c;
            --bleu-fonce: #0a2540;
        }

        /* min-height (et non height) : sinon la barre du haut « collante » disparaît après un écran de défilement */
        html, body {
            min-height: 100%;
            margin: 0;
            font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
            background-color: #f1f5f9;
        }

        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        main {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 1.5rem 1rem;
            width: 100%;
            box-sizing: border-box;
        }

        /* Titre « Bon de commande » réservé aux lecteurs d'écran : sans position fixée, il se placerait au
           milieu de <main> (centré verticalement) et suivrait l'ouverture du formulaire jusqu'aux évents ;
           le premier clic sur « Continuer vers la configuration » faisait alors sauter la page plus bas. */
        main > h1.sr-only {
            top: 0;
            left: 0;
        }

        footer {
            flex-shrink: 0;
            margin-top: auto;
            width: 100%;
            background-color: #ffffff;
            border-top: 1px solid #e2e8f0;
        }

/* --- SÉLECTEUR HARMONISÉ (GAUCHE / ROUE / DROITE) --- */
        .selecteur-3d-wrapper {
            display: flex;
            align-items: flex-start; /* Aligne les deux colonnes rigoureusement par le haut */
            justify-content: center;
            gap: 2rem;
            margin: 2rem auto 1.5rem auto;
            width: 100%;
            max-width: 960px;
            flex-wrap: nowrap;
            transition: gap 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
        }

        .selecteur-3d-wrapper.roue-ouverte {
            gap: 3.5rem; /* Écarte les colonnes quand la roue est visible */
        }

        /* 1. Colonnes latérales & Titres */
        .colonne-technos {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            width: 165px;
            flex-shrink: 0;
        }

        .label-colonne-side {
            display: block;
            font-size: 0.75rem;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            text-align: center;
            margin-bottom: 0.25rem;
            height: 18px;
            line-height: 18px;
        }

        /* 2. Cartes de boutons */
        .btn-techno-side {
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            padding: 0.85rem 1rem;
            cursor: pointer;
            text-align: left;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.85rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.03);
            user-select: none;
            min-height: 72px;
        }

        .btn-techno-side:hover {
            transform: translateY(-2px);
            border-color: #cbd5e1;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
        }

        .btn-techno-side:active {
            transform: translateY(0);
        }

        /* Badge icône circulaire — même langage visuel (dégradés + trait blanc) que la roue */
        .badge-side {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 255, 255, 0.55);
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.35);
        }

        .badge-side svg { width: 22px; height: 22px; display: block; }

        .badge-bte { background: linear-gradient(135deg, #3b82f6, #172554); }
        .badge-ric { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
        .badge-mt { background: linear-gradient(135deg, #fb923c, #9a3412); }
        .badge-sommeil { background: linear-gradient(135deg, #7dd3fc, #0284c7); }
        .badge-eau { background: linear-gradient(135deg, #fdba74, #ea580c); }

        .btn-techno-side .texte-side {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .btn-techno-side strong {
            display: block;
            font-size: 1.02rem;
            font-weight: 800;
            color: #0a2540;
            line-height: 1.15;
        }

        /* Sélecteur dédié (et non "span" seul) pour ne cibler QUE le sous-libellé : un simple
           ".btn-techno-side span" matcherait aussi les <span> porteurs .texte-side / .badge-side
           et leur imposerait par erreur display:block, uppercase, etc. */
        .btn-techno-side .sous-label-side {
            display: block;
            font-size: 0.7rem;
            color: #64748b;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        /* Repère décoratif "étape" au-dessus du titre — finition production */
        .badge-etape {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1d4ed8;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            padding: 4px 12px;
            border-radius: 999px;
            margin-bottom: 0.75rem;
        }

        /* 3. États actifs des boutons */
        .btn-techno-side.active-bte {
            background: linear-gradient(135deg, #1e3a5f, #081424);
            border-color: #3b82f6;
            box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35);
        }
        .btn-techno-side.active-bte strong,
        .btn-techno-side.active-bte .sous-label-side {
            color: #ffffff;
        }

        .btn-techno-side.active-ric {
            background: linear-gradient(135deg, #2563eb, #172554);
            border-color: #60a5fa;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
        }
        .btn-techno-side.active-ric strong,
        .btn-techno-side.active-ric .sous-label-side {
            color: #ffffff;
        }

        .btn-techno-side.active-mt {
            background: linear-gradient(135deg, #ea580c, #9a3412);
            border-color: #fb923c;
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
        }
        .btn-techno-side.active-mt strong,
        .btn-techno-side.active-mt .sous-label-side {
            color: #ffffff;
        }

        .btn-techno-side.active-protection {
            background: #ea580c;
            border-color: #ea580c;
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
        }
        .btn-techno-side.active-protection strong {
            color: #ffffff;
        }
        .btn-techno-side.active-protection .sous-label-side {
            color: #ffedd5;
        }

        /* --- PLATEAU & MOTEUR 3D ROUE --- */
        .plateau-container {
            position: relative;
            width: 470px;
            height: 470px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: transparent !important;
            box-shadow: none !important;
            padding: 0;
            user-select: none;
            margin-top: -10px; /* Compense la hauteur des étiquettes */
        }

        .roue-option {
            display: none !important;
        }

        .roue-option.roue-active {
            display: flex !important;
        }

        /* --- ROUE NEXT-GEN : plateau verre + physique (BTE/RIC/MT à gauche, formes
           Sommeil/Anti-Eau à droite). Remplace l'ancien <svg class="roue-svg">, mais
           réutilise à l'identique les classes/attributs dont dépend la logique métier
           existante : .tranche, [data-forme], .tranche-selectionnee (posée par
           mettreAJourSelectionRoue()), ainsi que .tranche-fond/-pince/-demi/-canule/
           -epaulement/-squelette/-quart (utilisées par restaurerFormesRoueGauche()). --- */

        .wheel-glare {
            position: absolute;
            inset: -6%;
            border-radius: 50%;
            pointer-events: none;
            mix-blend-mode: screen;
            z-index: 5;
            opacity: 0;
            transition: opacity 0.35s ease;
            background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.05) 22%, transparent 46%);
        }

        .plateau-container:hover .wheel-glare {
            opacity: 1;
        }

        .wheel-scale {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 500px;
            height: 500px;
            transform: translate(-50%, -50%) scale(0.94);
            transform-origin: 50% 50%;
            opacity: 0;
            transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1);
        }

        .wheel-scale.roue-revelee {
            opacity: 1;
        }

        /* Couronne extérieure « porcelaine » : blanc nacré légèrement bleuté (le blanc des cartes
           du site, ombré avec le bleu marine de la marque) pour faire ressortir les parts bleues
           et orange, au lieu de l'ancien anneau noir. */
        .wheel-bezel {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            overflow: hidden;
            pointer-events: none;
            background: radial-gradient(circle at 34% 26%, #ffffff 0%, #f6f8fb 52%, #e4eaf2 100%);
            box-shadow:
                0 18px 40px rgba(10, 37, 64, 0.16),
                0 3px 8px rgba(10, 37, 64, 0.08),
                inset 0 0 0 1px #d9e1eb,
                inset 0 3px 6px rgba(255, 255, 255, 0.95),
                inset 0 -8px 16px rgba(10, 37, 64, 0.07);
        }

        /* Fin liseré où viennent se loger les parts de la roue */
        .wheel-bezel::before {
            content: '';
            position: absolute;
            inset: 21px;
            border-radius: 50%;
            box-shadow: 0 0 0 1px rgba(10, 37, 64, 0.10), 0 1px 3px rgba(10, 37, 64, 0.10);
        }

        .wheel-rotor {
            position: absolute;
            inset: 0;
            width: 500px;
            height: 500px;
            touch-action: none;
            cursor: grab;
            will-change: transform;
        }

        .wheel-rotor:active {
            cursor: grabbing;
        }

        .tranche {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.5s cubic-bezier(.2, 1.4, .4, 1), filter 0.25s ease;
        }

        .tranche.tranche-revelee {
            opacity: 1;
        }

        .tranche-glass {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 35% 30%, var(--c1) 0%, var(--c2) 46%, var(--c3) 100%);
            border: 1.5px solid rgba(255, 255, 255, 0.22);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), inset 0 -14px 24px rgba(0, 0, 0, 0.22);
            transition: filter 0.25s ease, box-shadow 0.3s ease;
        }

        .tranche:hover .tranche-glass {
            filter: brightness(1.12);
        }

        /* Tranche sélectionnée : liseré cyan lumineux + légère sur-brillance + très léger
           décollement radial — pour qu'on sache toujours, d'un coup d'œil, quelle forme
           est validée. La sélection réelle est posée par mettreAJourSelectionRoue() via
           la classe .tranche-selectionnee, inchangée. */
        .tranche.tranche-selectionnee .tranche-glass {
            filter: brightness(1.15);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 0 1px #22d3ee, 0 0 22px 4px rgba(34, 211, 238, 0.55);
        }

        .tranche.tranche-selectionnee {
            transform: translate3d(calc(var(--nx) * 10px), calc(var(--ny) * 10px), 0) scale(1.03);
            z-index: 3;
        }

        .tranche-content {
            position: absolute;
            inset: 0;
            display: block;
            pointer-events: none;
        }

        /* .tranche-inner suit la rotation du rotor (position radiale fixe en coordonnées
           locales) : aucune contre-rotation, elle est donc "emportée" autour du centre en
           même temps que la tranche elle-même. */
        .tranche-inner {
            position: absolute;
            left: calc(50% + var(--lx) * 1px);
            top: calc(50% + var(--ly) * 1px);
            transform: translate(-50%, -50%);
        }

        /* .tranche-upright annule uniquement l'ORIENTATION (jamais la position) pour que
           l'icône et le libellé restent toujours lisibles à l'endroit, quel que soit
           l'angle courant de la roue. */
        .tranche-upright {
            transform: rotate(calc(var(--wheel-angle, 0deg) * -1));
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            width: 104px;
        }

        /* Dessin de la forme : agrandi pour occuper la tranche (place disponible : ~130 px de profondeur) */
        .tranche-icon {
            width: 78px;
            height: 66px;
            object-fit: contain;
            filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
            pointer-events: none;
        }

        .tranche.tranche-selectionnee .tranche-icon {
            filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.95));
        }

        .tranche-label {
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 0.01em;
            text-align: center;
            color: #ffffff;
            /* liseré marine net (lisible sur les tranches orange et bleu clair) + ombre d'origine */
            text-shadow: 0 0 1px #0a2540, 0 0 2px #0a2540, 0 0 2px #0a2540, 0 2px 5px rgba(0, 0, 0, 0.6);
            line-height: 1.18;
            pointer-events: none;
        }

        .selector-marker {
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 6;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 13px solid #22d3ee;
            filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.9));
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.5s ease 0.2s;
        }

        /* Plus de repère en haut de la roue : la forme choisie est signalée par sa surbrillance
           (la roue ne tourne plus pour l'amener sous le repère) */
        .selector-marker,
        .plateau-container.roue-reveelee .selector-marker {
            display: none;
        }

        .hub-bezel-ring {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 196px;
            height: 196px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9;
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 0 0 1px rgba(10, 37, 64, 0.14), 0 0 22px 2px rgba(59, 130, 246, 0.16);
        }

        .hub-shockwave {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) scale(1);
            width: 172px;
            height: 172px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 8;
            border: 2px solid rgba(34, 211, 238, 0.85);
            opacity: 0;
        }

        .hub-shockwave.pulse {
            animation: hubShockwavePulse 0.75s cubic-bezier(.16, 1, .3, 1);
        }

        @keyframes hubShockwavePulse {
            0% {
                opacity: 0.85;
                transform: translate(-50%, -50%) scale(1);
            }

            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(1.9);
            }
        }


        #hub-3d-portal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 172px;
            height: 172px;
            border-radius: 50%;
            overflow: hidden;
            z-index: 10;
            background: #ffffff !important;
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 4px #ffffff;
            cursor: grab;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #hub-3d-portal:active {
            cursor: grabbing;
        }

        .selecteur-mobile-formes {
            display: none;
            max-width: 400px;
            margin: 1.5rem auto;
            text-align: left;
        }

        @media (max-width: 860px) {
            .selecteur-3d-wrapper {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

            .colonne-technos {
                width: min(100%, 420px);
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }

            .btn-techno-side {
                flex: 1 1 130px;
            }

            /* Les deux familles (Appareillage, Protection) d'abord, puis la roue : le bouton
               « Continuer » qui apparaît après le choix d'une forme est ainsi juste sous la roue */
            .selecteur-3d-wrapper>.colonne-technos {
                order: 1;
            }

            .selecteur-3d-wrapper>.plateau-container {
                order: 2;
            }

            /* Titre « Appareillage » / « Protection » sur sa propre ligne, au-dessus des boutons */
            .colonne-technos .label-colonne-side {
                flex: 0 0 100%;
                margin-bottom: 0;
            }

            /* La roue ne dépasse jamais de la carte blanche */
            .plateau-container {
                width: min(470px, 100%);
                height: auto;
                aspect-ratio: 1 / 1;
                margin-top: 0;
            }

            /* Centre de la roue proportionnel à sa taille (172 / 196px pour une roue de 470px) */
            #hub-3d-portal,
            .hub-shockwave {
                width: 36.6%;
                height: 36.6%;
            }

            .hub-bezel-ring {
                width: 41.7%;
                height: 41.7%;
            }
        }

        @media (max-width: 520px) {
            main {
                padding: 1rem 0.6rem;
                justify-content: flex-start;
            }

            #etape-roue {
                padding: 1.5rem 0.9rem 1.25rem !important;
            }

            #etape-roue .commande-header h2 {
                font-size: 1.6rem !important;
                line-height: 1.25;
            }

            #etape-roue .commande-header p {
                font-size: 0.95rem !important;
            }

            .colonne-technos {
                gap: 0.6rem;
            }

            .btn-techno-side {
                padding: 0.7rem 0.75rem;
                gap: 0.6rem;
                min-height: 64px;
            }

            .badge-side {
                width: 36px;
                height: 36px;
            }

            .badge-side svg {
                width: 19px;
                height: 19px;
            }

            .btn-techno-side strong {
                font-size: 0.98rem;
            }
        }

        /* --- STYLES FORMULAIRE & SCAN STL --- */
        .zone-telechargement {
            border: 2px dashed #cbd5e1;
            border-radius: 10px;
            padding: 2rem 1.5rem;
            text-align: center;
            background: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            position: relative;
        }

        .zone-telechargement.dragover {
            border-color: var(--orange-impres, #ea580c);
            background-color: #fff7ed;
            transform: scale(1.01);
        }

        .stl-hud {
            position: absolute;
            bottom: 8px;
            right: 12px;
            font-size: 0.72rem;
            color: #64748b;
            pointer-events: none;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid #cbd5e1;
            padding: 3px 8px;
            border-radius: 4px;
            backdrop-filter: blur(4px);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            z-index: 5;
        }

        .puce-event {
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 2px 7px;
            min-width: 24px;
            min-height: 24px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .puce-event:hover {
            background: #e2e8f0;
            border-color: #94a3b8;
            color: #0f172a;
        }

        .modal-auth-fond {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 1rem;
        }

        .modal-auth-boite {
            background: #ffffff;
            border-radius: 12px;
            max-width: 420px;
            width: 100%;
            padding: 2rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
            text-align: center;
        }

        /* ---- 7. Livraison & montant estimé ---- */
        .choix-transport { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }
        .carte-transport { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
        .carte-transport:has(input:checked) { border-color: var(--orange-impres, #ea580c); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
        .carte-transport input { accent-color: var(--orange-impres, #ea580c); width: 18px; height: 18px; flex-shrink: 0; }
        .carte-transport strong { display: block; color: var(--bleu-fonce, #0a2540); font-size: 0.95rem; }
        .carte-transport small { display: block; color: #64748b; font-size: 0.8rem; font-weight: 600; }
        .note-port { margin: 0 0 1.1rem; font-size: 0.82rem; color: #475569; line-height: 1.5; }
        .estimation-prix { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.15rem; }
        .estimation-prix table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
        .estimation-prix td { padding: 0.35rem 0; color: #334155; vertical-align: top; }
        .estimation-prix td.montant { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 1rem; }
        .estimation-prix tr.total td { border-top: 1px solid #e2e8f0; padding-top: 0.6rem; font-weight: 800; color: var(--bleu-fonce, #0a2540); font-size: 1rem; }
        .estimation-prix .mentions { margin: 0.55rem 0 0; font-size: 0.78rem; color: #64748b; }
        .estimation-prix .attente { margin: 0; font-size: 0.88rem; color: #64748b; }
        @media (max-width: 520px) {
            #section-livraison-prix { padding: 1.25rem 1rem; }
            .estimation-prix { padding: 0.75rem 0.8rem; }
            .estimation-prix td.montant { padding-left: 0.5rem; }
        }

        /* Consigne au-dessus de la roue : uniquement quand la roue est sous les boutons (≤ 860 px) */
        .consigne-roue { display: none; }
        #zone-bouton-suite { scroll-margin-bottom: 24px; }
        @media (max-width: 860px) {
            .selecteur-3d-wrapper.roue-ouverte > .consigne-roue {
                display: flex; order: 2; align-items: center; gap: 0.7rem; width: min(100%, 470px);
                padding: 0.7rem 0.9rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
                text-align: left; color: #7c2d12; font-size: 0.86rem; line-height: 1.35; scroll-margin-top: 4px; /* + 80 px réservés en haut (site.css) */
            }
            .consigne-roue strong { display: block; color: #9a3412; font-size: 1rem; }
            .consigne-roue-icone { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px;
                border-radius: 50%; background: var(--orange-action, #c2410c); color: #ffffff; }
            .selecteur-3d-wrapper > .plateau-container { order: 3; }
            #zone-bouton-suite { scroll-margin-bottom: 104px; }
        }
        @media (max-width: 768px) {
            /* Praticien connecté : 74 px déjà réservés en bas (site.css) : 74 + 30 = 104 px comme avant */
            html.mm-connecte #zone-bouton-suite { scroll-margin-bottom: 30px; }
        }

        /* Étiquette envoi empreinte(s) (bouton du bloc papier + fenêtre) */
        .btn-etiquette-retour[hidden], .etiquette-preparation[hidden], .etiquette-transporteurs[hidden] { display: none; }
        .etiquette-preparation { display: grid; gap: 0.85rem; }
        .etiquette-resultat-titre { display: block; font-size: 0.98rem; }
        .fenetre-etiquette { margin: auto; max-height: calc(100dvh - 2rem); overflow-y: auto; border: none; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 2rem));
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); color: #0f172a; }
        .fenetre-etiquette::backdrop { background: rgba(15, 23, 42, 0.55); }
        .fenetre-etiquette-boite { padding: 1.3rem 1.3rem 1.1rem; display: grid; gap: 0.85rem; text-align: left; }
        .fenetre-etiquette-boite h3 { margin: 0; font-size: 1.15rem; color: var(--bleu-fonce, #0a2540); }
        .etiquette-intro { margin: 0; font-size: 0.9rem; color: #475569; line-height: 1.5; }
        .etiquette-essai { margin: 0; font-size: 0.84rem; line-height: 1.45; padding: 0.6rem 0.75rem; border-radius: 8px;
            background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
        .etiquette-transporteurs { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .etiquette-transporteurs legend { font-size: 0.76rem; font-weight: 700; color: #64748b; margin-bottom: 0.3rem; padding: 0; }
        .etiquette-transporteurs label { flex: 1 1 140px; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem;
            border: 1.5px solid #cbd5e1; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
        .etiquette-transporteurs label:has(input:checked) { border-color: var(--orange-action, #c2410c); background: #fff7ed; }
        .etiquette-transporteurs input { accent-color: var(--orange-action, #c2410c); width: 17px; height: 17px; }
        .etiquette-transporteurs .demo { font-size: 0.7rem; font-weight: 700; color: #92400e; margin-left: auto; }
        .etiquette-expediteur { font-size: 0.85rem; color: #334155; line-height: 1.5; background: #f8fafc; border-radius: 10px; padding: 0.65rem 0.8rem; }
        .etiquette-expediteur .aide { display: block; color: #64748b; font-size: 0.78rem; margin-top: 0.15rem; }
        .etiquette-resultat { font-size: 0.88rem; line-height: 1.55; border-radius: 10px; padding: 0.75rem 0.85rem;
            background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
        .etiquette-resultat.erreur { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
        .etiquette-resultat ol { margin: 0.4rem 0 0; padding-left: 1.2rem; color: #334155; }
        .btn-telecharger-etiquette { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.5rem 0 0.2rem; padding: 0.55rem 0.9rem;
            border-radius: 8px; background: var(--bleu-fonce, #0a2540); color: #fff; font-weight: 700; text-decoration: none; }
        .etiquette-actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
        .btn-etiquette-fermer, .btn-etiquette-creer { font: inherit; font-weight: 700; font-size: 0.9rem; border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer; }
        .btn-etiquette-fermer { background: #fff; border: 1.5px solid #cbd5e1; color: #334155; }
        .btn-etiquette-creer { background: var(--orange-action, #c2410c); border: none; color: #fff; }
        .btn-etiquette-creer:disabled { background: #cbd5e1; cursor: not-allowed; }
        .btn-etiquette-creer[hidden] { display: none; }

        /* Empreinte 3D (dépôt de fichier STL) ou empreinte physique (envoi postal à l'atelier) */
        .choix-empreinte { margin-bottom: 0.75rem; }
        #groupe-stl[hidden], .info-courrier[hidden], .info-courrier-etiquette[hidden], .etiquette-recente[hidden] { display: none; }
        /* Type d'empreinte déjà fixé par la façon de commander du centre (mode-commande.js) : pas de choix en fin de commande */
        body.empreinte-fixee .choix-empreinte, body.empreinte-fixee .info-courrier { display: none !important; }
        .info-courrier { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.5rem;
            font-size: 0.87rem; color: #334155; line-height: 1.55; }
        .info-courrier p { margin: 0 0 0.35rem; }
        .info-courrier p:last-child { margin-bottom: 0; }
        .etiquette-recente { margin: 0; font-size: 0.83rem; line-height: 1.5; color: #334155; background: #eff6ff; border: 1px solid #bfdbfe;
            border-radius: 10px; padding: 0.6rem 0.8rem; }
        .btn-lien-recente { font: inherit; font-weight: 700; line-height: inherit; min-height: 0; display: inline; color: #1d4ed8; background: none; border: none;
            padding: 0; cursor: pointer; text-decoration: underline; }
        .etiquette-resultat ol li { margin-bottom: 0.3rem; }
        .etiquette-resultat ol .btn-telecharger-etiquette { display: flex; width: fit-content; margin: 0.35rem 0 0.1rem; }

        /* Bloc « Envoi de l'empreinte physique » sous la confirmation de commande */
        .etiquette-confirmation { text-align: left; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 1rem 1.15rem;
            margin: -0.75rem 0 1.75rem; font-size: 0.9rem; line-height: 1.55; color: #334155; }
        .etiquette-confirmation h3 { margin: 0 0 0.35rem; font-size: 1.02rem; color: var(--bleu-fonce, #0a2540); }
        .etiquette-confirmation > p { margin: 0; }
        .etiquette-conf-zone:empty { display: none; }
        .etiquette-conf-zone { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed #fdba74; }
        .etiquette-conf-zone p { margin: 0 0 0.6rem; }
        .etiquette-conf-attente { color: #64748b; font-style: italic; }
        .etiquette-conf-erreur { color: #991b1b; font-weight: 700; }
        .etiquette-conf-aide { font-size: 0.83rem; color: #64748b; }
        .etiquette-conf-specimen { color: #991b1b; font-weight: 700; }
        .etiquette-conf-ok > strong { display: block; color: #166534; margin-bottom: 0.25rem; }
        .etiquette-conf-ok ol { margin: 0.5rem 0 0.6rem; padding-left: 1.2rem; }
        .etiquette-conf-boutons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
        .btn-conf { font: inherit; font-weight: 700; font-size: 0.9rem; border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer;
            background: #fff; border: 1.5px solid #cbd5e1; color: #334155; }
        .btn-conf.principal { background: var(--orange-action, #c2410c); border-color: var(--orange-action, #c2410c); color: #fff; }
        .btn-conf-lien { font-weight: 700; color: #1d4ed8; }
        /* Envoi depuis la boîte aux lettres (Colissimo) : moyen mis en avant */
        .envoi-bal { min-width: 0; max-width: 100%; margin: 0.6rem 0; padding: 0.75rem 0.85rem; background: #fff; border: 1.5px solid #86efac; border-radius: 10px; color: #334155; }
        .envoi-bal-titre { font-weight: 800; color: #166534; margin: 0 0 0.35rem !important; }
        .envoi-bal ol { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; }
        .envoi-bal ol li { margin-bottom: 0.3rem; }
        .envoi-bal-numero { font-family: Consolas, Menlo, monospace; letter-spacing: 0.02em; overflow-wrap: anywhere; }
        .btn-copier-numero { font: inherit; font-size: 0.75rem; font-weight: 700; margin-left: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px;
            border: 1.5px solid #cbd5e1; background: #fff; color: #0a2540; cursor: pointer; min-height: 0; line-height: 1.4; }
        .envoi-bal-liens { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
        .envoi-bal-liens .btn-telecharger-etiquette { margin: 0; }
        button.btn-telecharger-etiquette { font: inherit; font-weight: 700; border: none; cursor: pointer; }
        .envoi-bal-imprimer { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.6rem; flex: 1 1 100%; min-width: 0; max-width: 100%; }
        .choix-format-etiquette { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 100%; min-width: 0; font-size: 0.85rem; color: #475569; }
        .select-format-etiquette { font: inherit; padding: 0.3rem 0.5rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; flex: 1 1 auto; min-width: 0; max-width: 100%; }
        .lien-telecharger-etiquette { font-size: 0.83rem; font-weight: 700; color: #1d4ed8; }
        .btn-envoi-bal { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; border-radius: 8px; font-weight: 700;
            text-decoration: none; color: #0a2540; background: #fff; border: 1.5px solid #cbd5e1; }
        .btn-envoi-bal:hover { border-color: var(--orange-action, #c2410c); color: var(--orange-action, #c2410c); }
        .etiquette-resultat .envoi-bal ol .btn-telecharger-etiquette { display: inline-flex; }
        .etiquette-bon { margin: 0.4rem 0 0; color: #334155; }

        /* Façon de commander du centre (mode-commande.js) : en ligne → roue ; bon papier → page simplifiée ;
           pas encore choisie → les trois cartes (styles des cartes : site.css) */
        #etape-roue[data-facon="attente"] > :not(#note-facon),
        #etape-roue[data-facon="choix"] > :not(#choix-facon):not(#note-facon),
        #etape-roue[data-facon="papier"] > :not(#parcours-papier):not(#note-facon) { display: none !important; }
        body[data-facon="attente"] #etape-formulaire, body[data-facon="choix"] #etape-formulaire,
        body[data-facon="papier"] #etape-formulaire { display: none !important; }
        /* Fiche du centre en cours de lecture (mode-commande.js) : la carte garde la hauteur de la roue, cas le plus
           fréquent, pour que le contenu centré de <main> ne saute pas à l'arrivée de la réponse (CLS) */
        #etape-roue[data-facon="attente"] { min-height: 568px; }
        @media (max-width: 767px) { #etape-roue[data-facon="attente"] { min-height: 650px; } }
        .note-facon { max-width: 760px; margin: 0 auto 1.1rem; padding: 0.6rem 0.9rem; border-radius: 10px; background: #f0fdf4;
            border: 1px solid #bbf7d0; color: #166534; font-size: 0.86rem; line-height: 1.5; text-align: left; }
        .note-facon[hidden], .choix-facon[hidden], .parcours-papier[hidden], #etape-papier-etiquette[hidden] { display: none; }
        .note-facon a { color: inherit; font-weight: 700; }
        .choix-facon { max-width: 900px; margin: 0 auto; text-align: left; }
        .choix-facon-titre { margin: 0 0 0.35rem; text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--bleu-fonce, #0a2540); }
        .choix-facon-aide { margin: 0 0 1.25rem; text-align: center; font-size: 0.9rem; color: #64748b; }
        .choix-facon-aide a { color: var(--orange-action, #c2410c); font-weight: 700; }
        /* Page « bon de commande papier » : trois étapes en cartes reliées, l'étiquette envoi empreinte(s) mise en avant */
        .parcours-papier { max-width: 760px; margin: 0 auto; text-align: left; }
        .papier-entete { text-align: center; margin-bottom: 1.6rem; }
        .parcours-papier .badge-etape { margin-bottom: 0.6rem; }
        .parcours-papier-titre { margin: 0 0 0.45rem; font-size: 1.9rem; font-weight: 800; color: var(--bleu-fonce, #0a2540); letter-spacing: -0.01em; }
        .papier-intro { margin: 0 auto; max-width: 520px; font-size: 0.95rem; color: #64748b; line-height: 1.55; }
        .etapes-papier { list-style: none; counter-reset: etape; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
        .etape-papier { counter-increment: etape; position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 1rem;
            padding: 1.15rem 1.25rem 1.2rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.04); color: #334155; font-size: 0.92rem; line-height: 1.55; }
        .etape-papier[hidden] { display: none; }
        /* Fil reliant les étapes */
        .etape-papier:not(:last-child)::after { content: ""; position: absolute; left: calc(1.25rem + 22px); top: calc(1.15rem + 50px);
            bottom: -1rem; width: 2px; background: linear-gradient(#e2e8f0, rgba(226, 232, 240, 0)); }
        .etape-papier-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eef2ff; color: var(--bleu-fonce, #0a2540); }
        .etape-papier-ico svg { width: 23px; height: 23px; }
        .etape-papier-corps { min-width: 0; }
        .etape-papier-corps > p { margin: 0 0 0.75rem; }
        .etape-papier-titre { margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 800; color: var(--bleu-fonce, #0a2540); line-height: 1.35; }
        .etape-papier-titre::before { content: "Étape " counter(etape); display: block; margin-bottom: 0.15rem; font-size: 0.7rem; font-weight: 800;
            letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-action, #c2410c); }
        .etape-papier-aide { margin: 0.55rem 0 0 !important; font-size: 0.8rem; color: #64748b; }
        .etape-papier-aide a { color: #1d4ed8; font-weight: 700; }
        /* Étape mise en avant : l'étiquette envoi empreinte(s) */
        .etape-papier.recommandee { border: 1.5px solid #86efac; background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 70%);
            box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08), 0 8px 22px rgba(22, 101, 52, 0.08); }
        .etape-papier.recommandee .etape-papier-ico { background: #dcfce7; color: #166534; }
        .etape-papier.recommandee strong { color: #166534; }
        .tag-recommande { display: inline-block; margin-bottom: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: #166534;
            color: #ffffff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
        .liens-papier { display: flex; flex-wrap: wrap; gap: 0.55rem; }
        .btn-papier { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.6rem 1.05rem;
            border-radius: 10px; border: 1.5px solid #cbd5e1; background: #ffffff; color: var(--bleu-fonce, #0a2540);
            font: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
        .btn-papier:hover { border-color: var(--bleu-fonce, #0a2540); }
        .btn-papier:focus-visible { outline: 2px solid var(--orange-action, #c2410c); outline-offset: 2px; }
        .btn-papier.sombre { background: var(--bleu-fonce, #0a2540); border-color: var(--bleu-fonce, #0a2540); color: #ffffff; }
        .btn-papier.sombre:hover { background: #13345a; }
        .btn-papier.orange { background: var(--orange-action, #c2410c); border-color: var(--orange-action, #c2410c); color: #ffffff;
            box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25); }
        .btn-papier.orange:hover { background: var(--orange-action-survol, #9a3412); border-color: var(--orange-action-survol, #9a3412); transform: translateY(-1px); }
        .btn-papier[hidden] { display: none; }
        .adresse-atelier { display: inline-block; font-style: normal; padding: 0.7rem 0.95rem; border-radius: 12px; background: #f8fafc;
            border: 1px dashed #cbd5e1; color: #0f172a; line-height: 1.5; }
        .adresse-libelle { display: block; margin-bottom: 0.2rem; font-size: 0.72rem; font-weight: 700; color: #64748b; }
        .adresse-libelle [hidden] { display: none; }
        .papier-autres { margin: 0; padding: 0.85rem 1rem; border-radius: 12px; background: #f8fafc; text-align: center;
            font-size: 0.86rem; color: #64748b; }
        .papier-autres a { color: var(--orange-action, #c2410c); font-weight: 700; }
        .btn-lien-facon { font: inherit; font-weight: 700; color: var(--orange-action, #c2410c); background: none; border: none; padding: 0;
            min-height: 0; cursor: pointer; text-decoration: underline; }
        @media (max-width: 720px) {
            .choix-facon-titre { font-size: 1.3rem; }
            .parcours-papier-titre { font-size: 1.45rem; }
            .papier-entete { margin-bottom: 1.2rem; }
            .etape-papier { grid-template-columns: 1fr; gap: 0.6rem; padding: 1rem 1rem 1.05rem; font-size: 0.9rem; }
            .etape-papier:not(:last-child)::after { display: none; }
            .etape-papier-ico { width: 40px; height: 40px; border-radius: 12px; }
            .etape-papier-ico svg { width: 21px; height: 21px; }
            .liens-papier .btn-papier { flex: 1 1 100%; }
            .adresse-atelier { display: block; }
        }

        /* --- Accessibilité clavier & envoi sécurisé des scans STL (correctifs du lot 1, AUDIT.md) --- */
        /* Les cartes BTE / RIC / MT / Sommeil / Anti-Eau sont de vrais <button> : on neutralise les
           styles natifs du navigateur pour garder exactement l'apparence des anciennes cartes */
        button.btn-techno-side { font: inherit; color: inherit; margin: 0; }
        .btn-techno-side:focus-visible { outline: 3px solid var(--orange-action, #c2410c); outline-offset: 3px; }
        /* Tranches de la roue (role="button") : le contour est rogné par la découpe en part de
           tarte, le focus est donc signalé par la surbrillance et un cadre autour du nom */
        .tranche:focus { outline: none; }
        .tranche:focus-visible .tranche-glass { filter: brightness(1.22); }
        .tranche:focus-visible .tranche-label { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 4px; }
        /* Champ fichier masqué visuellement mais atteignable au clavier (Tab puis Entrée) */
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
            clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
        .zone-telechargement:focus-within { outline: 3px solid var(--orange-action, #c2410c); outline-offset: 3px; }
        .message-stl { margin: 0.6rem 0 0; padding: 0.65rem 0.9rem; border-radius: 8px; background: #fef2f2;
            border: 1px solid #fecaca; color: #991b1b; font-size: 0.88rem; font-weight: 600; line-height: 1.45; }
        .message-stl[hidden], .verification-cotes[hidden], .progression-envoi[hidden] { display: none; }
        .verification-cotes { margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 10px; background: #fff7ed;
            border: 1.5px solid #fdba74; color: #7c2d12; font-size: 0.88rem; line-height: 1.5; text-align: left; }
        .verification-cotes p { margin: 0 0 0.55rem; font-weight: 600; }
        .verification-cotes-case { display: flex; align-items: flex-start; gap: 0.55rem; cursor: pointer; font-weight: 500; }
        .verification-cotes-case input { width: 20px; height: 20px; margin: 0.1rem 0 0; flex-shrink: 0; accent-color: var(--orange-action, #c2410c); }
        .progression-envoi { max-width: 500px; margin: 0.9rem auto 0; display: flex; flex-direction: column; gap: 0.4rem;
            font-size: 0.88rem; font-weight: 600; color: #334155; }
        .progression-envoi progress { width: 100%; height: 10px; accent-color: var(--orange-action, #c2410c); }

        /* --- Affichage sur téléphone (lot 2) --- */
        /* Champs révélés par formulaire.js (gain RIC, couleurs…) : jamais plus larges que leur bloc
           (le bloc passe en display: block avec .option-visible, le champ gardait sa largeur native) */
        #formulaire-commande .input-groupe .input-texte { max-width: 100%; }

        /* Menus de couleur du silicone (construits par formulaire.js) : bouton + liste avec la pastille de la
           vraie teinte, même rendu dans tous les navigateurs */
        .menu-couleur { position: relative; display: inline-block; }
        .menu-couleur-bouton {
            display: inline-flex; align-items: center; gap: 0.55rem; min-width: 9.5rem;
            background: #ffffff; color: var(--texte-principal); cursor: pointer; text-align: left;
        }
        .menu-couleur-bouton::after {
            content: ""; margin-left: auto; padding-left: 0.4rem; width: 0.45rem; height: 0.45rem;
            border-right: 2px solid #475569; border-bottom: 2px solid #475569; transform: translateY(-25%) rotate(45deg);
        }
        .menu-couleur-bouton[aria-expanded="true"] { border-color: var(--bleu-impres); }
        /* Bloc du menu ouvert au premier plan : l'animation d'apparition (.option-visible) isole chaque bloc,
           la liste passerait sinon sous le bloc de l'autre oreille (empilés sur téléphone) ou sous la section suivante */
        .section-form:has(.menu-couleur-bouton[aria-expanded="true"]),
        .input-groupe:has(.menu-couleur-bouton[aria-expanded="true"]) { position: relative; z-index: 41; }
        .menu-couleur-liste {
            position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 100%; max-height: 18rem; overflow-y: auto;
            margin: 0; padding: 0.3rem; list-style: none; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
        }
        .menu-couleur-liste:focus { outline: none; }
        .menu-couleur-liste [role="option"] {
            display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.7rem; border-radius: 6px;
            cursor: pointer; white-space: nowrap; color: var(--texte-principal);
        }
        .menu-couleur-liste [role="option"].actif { background: #f1f5f9; }
        .menu-couleur-liste:focus-visible [role="option"].actif { outline: 2px solid var(--orange-action); outline-offset: -2px; }
        .menu-couleur-liste [role="option"][aria-selected="true"] { font-weight: 700; }
        .pastille {
            display: inline-block; flex: none; width: 1rem; height: 1rem; border-radius: 50%;
            background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%), var(--teinte, #94a3b8);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.18);
        }
        .pastille[data-couleur="blanc"], .pastille[data-couleur="translucide"] { background: transparent; box-shadow: none; border: 1.5px solid #64748b; }
        .pastille[data-couleur="bleu"] { --teinte: #2563eb; }
        .pastille[data-couleur="rouge"] { --teinte: #dc2626; }
        .pastille[data-couleur="orange"] { --teinte: #f97316; }
        .pastille[data-couleur="violet"] { --teinte: #7c3aed; }
        .pastille[data-couleur="fuschia"] { --teinte: #ff00ff; }
        .pastille[data-couleur="vert"] { --teinte: #22c55e; }
        .pastille[data-couleur="jaune"] { --teinte: #facc15; }
        .pastille[data-couleur="rose"] { --teinte: #f9a8d4; }

        /* Confirmation de commande (bloc créé par envoi.js) : toute la largeur disponible, une adresse
           e-mail longue passe à la ligne au lieu d'élargir la carte au-delà de l'écran */
        #confirmation-succes { width: 100%; max-width: 650px; }
        #confirmation-succes > div { overflow-wrap: break-word; }

        /* Aperçus 3D gauche / droite : la pastille « Oreille… » reste sur une ligne, le nom du fichier se raccourcit */
        #card-stl-gauche > div:first-child > span:first-child,
        #card-stl-droite > div:first-child > span:first-child { white-space: nowrap; flex-shrink: 0; }
        #nom-stl-gauche, #nom-stl-droite { min-width: 0; margin-left: 0.5rem; }

        @media (max-width: 520px) {
            #confirmation-succes > div { padding: 1.75rem 1.1rem !important; margin: 1rem auto !important; }
        }

        /* Écran tactile : cases à cocher natives (options RIC, tubes, options, Express) de 20 px au lieu de 13 */
        @media (max-width: 860px) {
            #formulaire-commande label > input[type="checkbox"]:not(.choix-label > input) { width: 20px; height: 20px; flex-shrink: 0; }
            /* Options RIC / Micro Tube : la case reste collée à son libellé, qui passe à la ligne à côté d'elle */
            #options-ric label:has(> input[type="checkbox"]),
            #options-mt label:has(> input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 0.45rem; }
            /* Puces de diamètre d'évent : cibles tactiles d'au moins 44 × 36 px (« 1 », « 2 », « 3 » faisaient 23 px de large) */
            .puce-event { min-width: 44px; min-height: 36px; padding: 6px 10px; font-size: 0.85rem; }
        }

        /* Libellés de la roue : même taille apparente qu'à l'écran d'ordinateur, quelle que soit
           la réduction de la roue (--echelle-roue posé par roue.js) */
        .tranche-label { font-size: min(18px, calc(9.87px / var(--echelle-roue, 0.94))); }

        /* Entre 861 et 1 010 px (tablette en paysage, fenêtre zoomée) : les deux colonnes de boutons et la
           roue tiennent dans la carte (elles débordaient de la carte, et de l'écran sous 912 px) */
        @media (min-width: 861px) and (max-width: 1010px) {
            .selecteur-3d-wrapper,
            .selecteur-3d-wrapper.roue-ouverte { gap: 1.25rem; }
            .plateau-container { width: min(470px, calc(100% - 370px)); height: auto; aspect-ratio: 1 / 1; }
            #hub-3d-portal,
            .hub-shockwave { width: 36.6%; height: 36.6%; }
            .hub-bezel-ring { width: 41.7%; height: 41.7%; }
        }

/* Section « Configuration des formes » : tailles d'hélix / d'épaulement sur une ligne par oreille */
.grille-taille-forme {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.5rem;
}
.grille-taille-forme .choix-label {
    padding: 0.65rem 0.4rem;
}

/* ---------- Modèles de commande (modeles.js) ---------- */
.modeles-roue { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 auto 1rem;
    padding: 0.6rem 0.9rem; border: 1px dashed #93c5fd; border-radius: 12px; background: #eff6ff; max-width: 640px; }
.modeles-roue label { font-weight: 700; color: #1e3a8a; font-size: 0.95rem; }
#etape-roue:not([data-facon="ligne"]) .modeles-roue, .modeles-roue[hidden] { display: none; }
.modeles-roue select, .modeles-formulaire select { font: inherit; font-size: 0.92rem; padding: 0.45rem 0.6rem; border-radius: 8px;
    border: 1px solid #cbd5e1; background: #fff; min-width: 0; max-width: 100%; flex: 0 1 280px; }
.modeles-formulaire { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; padding: 0.7rem 0.9rem;
    border: 1px solid var(--bordure-subtile, #e2e8f0); border-radius: 12px; background: #fff; }
.modeles-formulaire[hidden] { display: none; }
.modeles-titre { font-weight: 800; color: var(--bleu-fonce, #0a2540); font-size: 0.95rem; }
.modeles-bouton { font: inherit; font-size: 0.9rem; font-weight: 800; padding: 0.45rem 0.85rem; min-height: 40px; border-radius: 10px;
    border: 1px solid var(--bordure-subtile, #e2e8f0); background: #fff; color: var(--bleu-fonce, #0a2540); cursor: pointer; }
.modeles-bouton:hover { border-color: #94a3b8; }
.modeles-supprimer { background: none; border: none; color: #b91c1c; font: inherit; font-size: 0.88rem; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0.3rem; }
.modeles-message { flex-basis: 100%; margin: 0; font-size: 0.88rem; font-weight: 600; color: #166534; }
.modeles-message.erreur { color: #991b1b; }
.modele-dialog { margin: auto; border: none; border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); }
.modele-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.modele-dialog-boite { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.modele-dialog h2 { font-size: 1.15rem; color: var(--bleu-fonce, #0a2540); font-weight: 800; margin: 0; }
.modele-aide { font-size: 0.86rem; color: #475569; margin: 0; }
.modele-libelle { font-weight: 700; font-size: 0.92rem; color: #0f172a; }
.modele-nom { font: inherit; padding: 0.6rem 0.7rem; border-radius: 10px; border: 1.5px solid #cbd5e1; width: 100%; box-sizing: border-box; }
.modele-puces { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modele-puce { font: inherit; font-size: 0.84rem; padding: 0.35rem 0.65rem; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff;
    color: #1e3a8a; cursor: pointer; text-align: left; }
.modele-puce:hover { background: #dbeafe; }
.modele-erreur { padding: 0.6rem 0.75rem; border-radius: 8px; background: #fef2f2; color: #991b1b; font-weight: 600; font-size: 0.88rem; margin: 0; }
.modele-valider { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px;
    border: 1.5px solid var(--orange-action, #c2410c); background: #fff7ed; font: inherit; cursor: pointer; text-align: left; }
.modele-valider strong { color: var(--orange-action, #c2410c); font-size: 0.98rem; }
.modele-valider span { font-size: 0.84rem; color: #64748b; }
.modele-valider:disabled { opacity: 0.6; cursor: wait; }
.modele-annuler { align-self: center; background: none; border: none; color: #475569; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0.4rem; }
