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

:root {
    --fond-sombre: #090d16;
    --trench-gap: #0f172a;
}

html,
body {
    min-height: 100vh;
    margin: 0;
    background-color: #f1f5f9;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Inter Repli', sans-serif;
}

main {
    flex: 1 0 auto;
}

/* --- PLATEAU CIRCULAIRE VECTORIEL --- */
.plateau-container {
    width: 490px;
    height: 490px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    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);
    padding: 10px;
    margin: 1.5rem auto 2.5rem auto;
    user-select: none;
}

svg.roue-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tranche {
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
    transform-origin: 250px 250px;
}

.tranche path {
    stroke: var(--trench-gap);
    stroke-width: 4.5px;
    stroke-linejoin: round;
}

.tranche:hover,
.tranche:focus-visible {
    filter: brightness(1.18) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.65));
}

.tranche-pince:hover,
.tranche-pince:focus-visible {
    transform: translate(7px, -12px);
}

.tranche-demi:hover,
.tranche-demi:focus-visible {
    transform: translate(14px, 0);
}

.tranche-canule:hover,
.tranche-canule:focus-visible {
    transform: translate(7px, 12px);
}

.tranche-epaulement:hover,
.tranche-epaulement:focus-visible {
    transform: translate(-7px, 12px);
}

.tranche-squelette:hover,
.tranche-squelette:focus-visible {
    transform: translate(-14px, 0);
}

.tranche-fond:hover,
.tranche-fond:focus-visible {
    transform: translate(-7px, -12px);
}

/* Clavier : en plus de l'effet de survol, contour blanc lisible sur les trois couleurs */
.tranche:focus-visible,
.hub-piece:focus-visible {
    outline: none;
}

.tranche:focus-visible path {
    stroke: #ffffff;
    stroke-width: 5px;
}

/* Pièces du centre (rognées en cercle, un contour n'y serait pas visible) : couleurs inversées */
.hub-piece:focus-visible rect {
    fill: #ffffff;
}

/* Libellé marine sur fond blanc : sans le liseré marine (il boucherait les lettres) */
.hub-piece:focus-visible .hub-label {
    fill: var(--bleu-fonce);
    stroke: none;
}

.label-forme {
    font-size: 13px;
    font-weight: 700;
    fill: #ffffff;
    text-anchor: middle;
    pointer-events: none;
    letter-spacing: 0.2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    /* Liseré marine autour des lettres : lisibles même sur les tranches orange */
    paint-order: stroke fill;
    stroke: #0a2540;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Titre principal (H1) : même apparence que l'ancien titre secondaire */
.commande-header h1.titre-catalogue {
    color: var(--bleu-fonce);
    font-size: 2rem;
}

@media (max-width: 560px) {
    .commande-header h1.titre-catalogue {
        font-size: 1.6rem;
    }
}

.croquis-icone {
    pointer-events: none;
    filter: invert(1) brightness(1.9) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
    mix-blend-mode: screen;
}

.hub-piece {
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.hub-piece:hover,
.hub-piece:focus-visible {
    filter: brightness(1.22);
}

.hub-label {
    font-size: 14px;
    font-weight: 800;
    fill: #ffffff;
    text-anchor: middle;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    /* Liseré marine autour des lettres : lisibles même sur les tranches orange */
    paint-order: stroke fill;
    stroke: #0a2540;
    stroke-width: 3px;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    /* Téléphone et tablette : la roue reste affichée, réduite à la largeur de l'écran */
    .plateau-container {
        width: 100%;
        max-width: 420px;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 6px;
        margin: 0.5rem auto 1.5rem auto;
        box-sizing: border-box;
    }

    /* Textes un peu plus grands : la roue est dessinée pour 490 px de large */
    .label-forme {
        font-size: 16px;
    }

    .hub-label {
        font-size: 17px;
    }
}

/* Bouton d'accès direct au bon de commande */
.btn-catalogue-commande {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: var(--orange-action, #c2410c);
    color: #ffffff;
    border: none;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.btn-catalogue-commande:hover {
    background-color: #9a3412;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

/* Pied de page calé en bas */
footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

/* Modale d'authentification Pro */
.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;
    animation: apparitionModal 0.2s ease-out;
}

@keyframes apparitionModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
