/* ==========================================================================
   VARIABLES (Charte Graphique Impré'son)
   ========================================================================== */
:root {
    --bleu-impres: #0a2540;
    /* Le bleu profond de la marque */
    --orange-impres: #ea580c;
    /* Le orange vibrant officiel */
    --orange-survol: #c2410c;
    --orange-action: #c2410c;
    /* Fond des boutons orange à texte blanc (contraste 5,2:1) */
    --orange-action-survol: #9a3412;
    --bleu-fonce: #0a2540;
    /* Textes très importants */
    --fond-clair: #fafafc;
    /* Blanc légèrement cassé */
    --texte-principal: #425466;
    --texte-discret: #64748b;
    /* Gris secondaire lisible sur fond clair (contraste 4,8:1) */
    --bordure-subtile: #e2e8f0;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & RÉGLAGES GLOBAUX
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter Repli', sans-serif;
    background-color: var(--fond-clair);
    color: var(--texte-principal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Le focus clavier, les ancres et les défilements automatiques s'arrêtent sous la barre de navigation collante */
html {
    scroll-padding-top: 80px;
}

/* Texte réservé aux lecteurs d'écran (étiquettes, titres de page) */
.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;
}

/* Lien d'évitement : premier arrêt de la touche Tab, visible seulement au focus */
.lien-evitement {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10100;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--bleu-fonce);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
}

.lien-evitement:focus {
    transform: none;
    outline: 3px solid var(--orange-impres);
    outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION (Header Sticky & Hiérarchie Épurée)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 48px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.2s ease-in-out;
}

.logo-image:hover {
    transform: scale(1.02);
}

.liens-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Liens de consultation directe */
.lien-nav-direct {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    transition: var(--transition);
}

/* « Messages » (bouton) a l'apparence des liens voisins */
button.lien-nav-direct {
    background: none;
    border: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.lien-nav-direct:hover,
.lien-nav-direct.actif {
    color: var(--orange-action);
    background: rgba(234, 88, 12, 0.06);
}

/* Menu déroulant "Plus" épuré */
.menu-container {
    position: relative;
}

.menu-bouton {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: var(--transition);
}

.menu-bouton:hover {
    background: #f8fafc;
    color: var(--orange-action);
    border-color: var(--orange-impres);
}

.fleche-menu {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1001;
}

.dropdown-menu.actif {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.25rem;
    color: var(--texte-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid #f8fafc;
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--orange-action);
    padding-left: 1.5rem;
}

/* Focus clavier : contour à l'intérieur (le menu coupe ce qui dépasse) */
.dropdown-item:focus-visible {
    outline: 2px solid var(--orange-action);
    outline-offset: -2px;
    background: #f8fafc;
    color: var(--orange-action);
}

/* Bouton principal : Commander (plein et contrasté) */
.btn-nav-commande {
    display: inline-flex;
    align-items: center;
    line-height: normal;
    text-decoration: none;
    background-color: var(--orange-action);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
    transition: var(--transition);
    margin-left: 0.35rem;
}

.btn-nav-commande:hover {
    background-color: var(--orange-action-survol);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.38);
    transform: translateY(-1px);
}

/* Bouton d'accès praticien déconnecté */
.btn-nav-login {
    background-color: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav-login:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* État de session : classe « session-pro » posée sur <html> par un court script du <head> (avant le
   premier affichage), puis confirmée par verifierSessionPro() (session.js). La barre du haut et les
   blocs réservés aux visiteurs sont ainsi dans leur état final dès le départ, sans décalage. */
html:not(.session-pro) .pro-uniquement,
html.session-pro .visiteur-uniquement,
html.session-pro #btn-login-pro {
    display: none;
}

/* Lien Déconnexion discret en bout de barre */
.lien-nav-logout {
    background: none;
    border: none;
    font-size: 0.82rem;
    color: var(--texte-discret);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    margin-left: 0.25rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lien-nav-logout:hover {
    color: #dc2626;
}

/* ==========================================================================
   FENÊTRE DE CONNEXION (19 pages) : <dialog> ouvert par showModal() (session.js).
   Le <dialog> sert lui-même de fond plein écran ; index.css garde sa variante claire.
   ========================================================================== */
.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;
}

dialog.modal-auth-fond {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    color: inherit;
}

dialog.modal-auth-fond::backdrop {
    background: transparent;
}

.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;
}

/* Champ du code d'accès + bouton « œil » (afficher / masquer, ajouté par session.js) */
.champ-code {
    position: relative;
    display: block;
}

.btn-voir-code {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.75rem;
    height: calc(100% - 0.5rem); /* le champ garde sa marge basse de 0,5rem */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
}

.btn-voir-code:hover {
    color: var(--bleu-impres, #0a2540);
}

.btn-voir-code:focus-visible {
    outline: 2px solid var(--orange-action, #c2410c);
    outline-offset: -4px;
}

/* ==========================================================================
   HERO SECTION (En-tête principal)
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    min-height: 80vh;
}

.hero-texte {
    flex: 1;
    padding-right: 4rem;
}

.hero-texte h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bleu-fonce);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-texte {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--bleu-impres);
}

.hero-texte p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--texte-principal);
}

.bouton-primaire {
    display: inline-block;
    background: linear-gradient(90deg, var(--bleu-impres), #115da6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(28, 124, 214, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bouton-primaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(28, 124, 214, 0.4);
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-marque {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.image-marque:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ==========================================================================
   STRUCTURE PRINCIPALE & TITRES
   ========================================================================== */
main {
    padding: 4rem 5%;
}

.titre-section {
    text-align: center;
    margin-bottom: 4rem;
}

.titre-section h2 {
    font-size: 2.5rem;
    color: var(--bleu-fonce);
}

.ligne-deco {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-impres), var(--orange-impres));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ==========================================================================
   CONFIGURATEUR D'ACCUEIL & ROUE INTERACTIVE
   ========================================================================== */
.configurateur-section {
    padding: 4rem 5%;
    background-color: white;
}

.config-conteneur {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.config-side {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.option-bloc {
    background: var(--fond-clair);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.option-bloc h4 {
    color: var(--bleu-fonce);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--bleu-impres);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.checkbox-group label,
.radio-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--texte-principal);
    font-weight: 500;
}

.checkbox-group input,
.radio-group input {
    margin-right: 0.8rem;
    accent-color: var(--orange-impres);
}

.roue-container {
    flex: 0 0 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    margin: 20px auto;
}

.roue-wrapper-pro {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.part-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/formes/roue.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
    z-index: 10;
}

.slice-fond {
    clip-path: polygon(50% 50%, 0% 21%, 14% 0%, 50% 0%);
}

.slice-pince {
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 21%);
}

.slice-demi {
    clip-path: polygon(50% 50%, 100% 21%, 100% 83%);
}

.slice-canule {
    clip-path: polygon(50% 50%, 100% 86%, 100% 100%, 50% 100%);
}

.slice-canule-ep {
    clip-path: polygon(50% 50%, 50% 99%, 3% 81%, -6% 87%);
}

.slice-squelette {
    clip-path: polygon(47% 51%, 2% 81%, 1% 21%);
}

.part-slice:hover {
    z-index: 20;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

.slice-fond:hover {
    transform: translate(-10px, -15px) scale(1.03);
}

.slice-pince:hover {
    transform: translate(10px, -15px) scale(1.03);
}

.slice-demi:hover {
    transform: translate(15px, 0px) scale(1.03);
}

.slice-canule:hover {
    transform: translate(10px, 15px) scale(1.03);
}

.slice-canule-ep:hover {
    transform: translate(-10px, 15px) scale(1.03);
}

.slice-squelette:hover {
    transform: translate(-15px, 0px) scale(1.03);
}

.hub-container {
    position: absolute;
    top: 31.5%;
    left: 31.5%;
    width: 37%;
    height: 37%;
    border-radius: 50%;
    z-index: 30;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hub-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.piece-bte {
    clip-path: polygon(0% 0%, 33.3% 0%, 35.3% 100%, 0% 100%);
}

.piece-ric {
    clip-path: polygon(33.3% 0%, 66.6% 0%, 66.6% 100%, 33.3% 100%);
}

.piece-mt {
    clip-path: polygon(66.6% 0%, 100% 0%, 100% 100%, 65.6% 100%);
}

.hub-piece:hover {
    z-index: 40;
    filter: brightness(1.1);
}

.piece-bte:hover {
    transform: translateY(-5px) scale(1.05);
}

.piece-ric:hover {
    transform: translateY(-5px) scale(1.05);
}

.piece-mt:hover {
    transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   CARTES ÉTAPES (Fabrication)
   ========================================================================== */
.grille-etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.etape-carte {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s;
}

.etape-carte:hover {
    transform: translateY(-10px);
}

.etape-numero {
    background: var(--orange-impres);
    color: white;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
}

.etape-carte h4 {
    color: var(--bleu-fonce);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.contact-conteneur {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: var(--bleu-fonce);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-formulaire {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-groupe label {
    font-weight: 600;
    color: var(--bleu-fonce);
    margin-bottom: 0.5rem;
    display: block;
}

.form-groupe input,
.form-groupe textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-groupe input:focus,
.form-groupe textarea:focus {
    outline: none;
    border-color: var(--bleu-impres);
}

.bouton-envoi {
    background-color: var(--bleu-fonce);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.bouton-envoi:hover {
    background-color: var(--orange-action);
}

/* ==========================================================================
   PORTAIL DE COMMANDE DYNAMIQUE (commande.html)
   ========================================================================== */
.commande-container {
    max-width: 900px;
    margin: 3rem auto 5rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.commande-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
}

.commande-header h2 {
    color: var(--bleu-fonce);
    font-size: 2rem;
}

.section-form {
    margin-bottom: 2.5rem;
    background: var(--fond-clair);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.section-form h3 {
    color: var(--bleu-impres);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.choix-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.choix-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--texte-principal);
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

/* Case ou bouton radio masqué visuellement mais pas retiré : il reste atteignable au clavier
   (Tab, Espace, flèches) ; l'étiquette entière s'entoure d'un contour quand il a le focus */
.choix-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.choix-label:has(input:focus-visible) {
    outline: 3px solid var(--orange-action);
    outline-offset: 2px;
}

.choix-label:has(input:checked) {
    border-color: var(--orange-impres);
    background: #fff7ed;
    color: var(--orange-action);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
}

.input-groupe {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-groupe label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bleu-fonce);
}

.input-texte {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-texte:focus {
    outline: none;
    border-color: var(--bleu-impres);
}

/* Champ du tchat : même contour de focus que le reste du site */
#input-message-tchat:focus-visible {
    outline: 2px solid var(--orange-action);
    outline-offset: 1px;
}

.option-cachee {
    display: none;
    animation: apparaitre 0.4s ease forwards;
}

.option-visible {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #cbd5e1;
    animation: apparaitre 0.4s ease forwards;
}

@keyframes apparaitre {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bouton-validation {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(90deg, var(--bleu-impres), var(--bleu-fonce));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.25);
    transition: transform 0.3s;
}

.bouton-validation:hover {
    transform: translateY(-3px);
}

.zone-telechargement {
    border: 2px dashed var(--bleu-impres);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.zone-telechargement:hover {
    background-color: #eff6ff;
    border-color: var(--bleu-fonce);
    transform: translateY(-2px);
}

.zone-telechargement p {
    color: var(--bleu-fonce);
    margin: 0;
    line-height: 1.5;
}

.fichiers-valides {
    margin-top: 10px;
    font-weight: 600;
    color: var(--orange-action);
    font-size: 0.95rem;
}

select.input-texte {
    background-color: white !important;
    color: var(--texte-principal) !important;
}

select.input-texte option {
    background-color: white !important;
    color: black !important;
}

/* ==========================================================================
   ESPACE LABO & SUIVI DE COMMANDE (suivi.html)
   ========================================================================== */
.recherche-suivi {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.timeline {
    display: flex;
    justify-content: space-between;
    /* Cercles alignés en haut : la ligne passe toujours par leur centre, même
       quand un libellé tient sur deux lignes */
    align-items: flex-start;
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: calc(2rem + 16px);
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-progression {
    position: absolute;
    top: calc(2rem + 16px);
    left: 0;
    height: 4px;
    background: var(--orange-impres);
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease;
    width: 0%;
}

.etape-suivi {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
}

.etape-cercle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.etape-texte {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texte-principal);
    text-align: center;
    transition: color 0.3s;
}

.etape-suivi.actif .etape-cercle {
    border-color: var(--orange-impres);
    background: var(--orange-impres);
    color: white;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}

.etape-suivi.actif .etape-texte {
    color: var(--bleu-fonce);
}

/* Étape alerte suspendue */
.etape-suivi.attente .etape-cercle {
    border-color: var(--orange-impres);
    background: #fff7ed;
    color: var(--orange-action);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.25);
    /* deux pulsations (3,6 s) pour attirer l'œil, puis arrêt (pas de mouvement sans fin) */
    animation: pulseOrange 1.8s 2;
}

.etape-suivi.attente .etape-texte {
    color: var(--orange-action);
    font-weight: 700;
}

@keyframes pulseOrange {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ==========================================================================
   PAGES TARIFS & GUIDE
   ========================================================================== */
.grille-prix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.carte-prix {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, border-color 0.3s;
}

.carte-prix:hover {
    transform: translateY(-5px);
    border-color: var(--orange-impres);
}

.carte-prix h2 {
    font-size: 1.17rem;
    color: var(--bleu-fonce);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 1rem;
}

.ligne-prix {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--texte-principal);
}

.prix-valeur {
    color: var(--orange-impres);
    font-size: 1.25rem;
    font-weight: 800;
    text-align: right;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--texte-discret);
    border-top: 1px solid var(--bordure-subtile);
    font-size: 0.84rem;
}

/* ==========================================================================
   PWA / MOBILE NATIVE POLISH
   Zones sécurisées (encoche/Dynamic Island), suppression du zoom clavier
   iOS, tap highlight, rebond de scroll, zones tactiles confortables, et
   robustesse de la barre de navigation sur écran étroit (375–414px).
   ========================================================================== */

/* Zones sécurisées : quand le site tourne en PWA plein écran (display:
   standalone + viewport-fit=cover), le contenu ne doit pas passer sous
   l'encoche, la Dynamic Island ou la barre gestuelle du bas. env() vaut 0
   sur tout appareil sans zone sécurisée : ces règles sont donc sans effet
   ailleurs qu'en PWA plein écran sur iOS/Android récents. */
.navbar {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    padding-left: max(5%, env(safe-area-inset-left, 0px));
    padding-right: max(5%, env(safe-area-inset-right, 0px));
}

body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

/* Rendu "appli native" : pas de surbrillance grisâtre au tap sur iOS/Android,
   pas d'effet de rebond de scroll type Safari mobile. */
html,
body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

a,
button,
input,
select,
textarea,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* Empêche le zoom automatique agaçant d'iOS Safari à la mise au point d'un
   champ (règle iOS : pas de zoom si font-size >= 16px). Le !important est
   nécessaire ici : plusieurs pages définissent des tailles de police plus
   petites (0.85rem–0.95rem) sur leurs champs via des <style> locaux plus
   spécifiques que ce fichier partagé — sans lui, elles l'emporteraient.
   Téléphone en paysage (812 à 932 px de large, moins de 500 px de haut) compris. */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Zones tactiles confortables (recommandation Apple/Google : 44px minimum)
   sur les contrôles génériques. Les boutons déjà stylés avec leur propre
   padding (0.5–1rem) atteignent généralement déjà cette taille ; cette
   règle sert de filet de sécurité pour les contrôles plus compacts. */
@media (max-width: 480px) {

    button,
    .lien-nav-direct,
    .dropdown-item,
    .btn-nav-login,
    .btn-nav-commande,
    .lien-nav-logout,
    .menu-bouton,
    select {
        min-height: 44px;
    }
}

/* ==========================================================================
   MENU TÉLÉPHONE & TABLETTE (≤ 1180px)
   Construit par assets/js/commun/menu.js :
   - bouton ☰ (.nav-burger) dans la barre du haut ;
   - panneau latéral (.mm-tiroir) : cabinet connecté, liens, déconnexion ;
   - praticien connecté sur téléphone : barre d'onglets en bas (.mm-onglets),
     « Commander » au centre.
   Au-delà de 1180px (ordinateur), la barre habituelle reste inchangée.
   ========================================================================== */
.nav-burger,
.mm-voile,
.mm-tiroir,
.mm-onglets {
    display: none;
}

/* Menu de l'atelier : la balise <nav> est vide dans le HTML et remplie par menu-atelier.js.
   Sa hauteur finale est réservée pour que la page ne descende pas à son arrivée (CLS). */
.navbar.menu-atelier {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
}

@media (min-width: 1121px) {
    .navbar.menu-atelier {
        min-height: calc(67px + env(safe-area-inset-top, 0px));
    }
}

@media (min-width: 1441px) {
    .navbar.menu-atelier {
        min-height: calc(68px + env(safe-area-inset-top, 0px));
    }
}

@media (min-width: 1181px) and (max-width: 1366px) {

    /* Ordinateur portable étroit : on resserre pour rester sur une ligne */
    .navbar:not(.menu-atelier) {
        padding-left: max(3%, env(safe-area-inset-left, 0px));
        padding-right: max(3%, env(safe-area-inset-right, 0px));
    }

    .liens-nav {
        gap: 4px !important;
    }

    .navbar:not(.menu-atelier) .lien-nav-direct {
        padding: 0.45rem 0.5rem;
        font-size: 0.88rem;
    }

    .navbar:not(.menu-atelier) .btn-nav-commande {
        padding: 0.5rem 1rem;
    }

    .navbar:not(.menu-atelier) .logo-image {
        height: 42px;
    }
}

@media (max-width: 1180px) {

    /* ---- Barre du haut : logo, action principale, ☰ ---- */
    .navbar:not(.menu-atelier) {
        flex-wrap: nowrap;
        align-items: center;
        flex-shrink: 0;
        gap: 0.6rem;
        min-height: 60px;
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
        padding-bottom: 0.5rem;
    }

    .navbar:not(.menu-atelier) .logo-nav {
        margin-right: auto;
        min-width: 0;
    }

    .navbar:not(.menu-atelier) .liens-nav {
        display: flex !important;
        align-items: center;
        gap: 0.5rem !important;
    }

    /* Les autres liens sont dans le panneau ☰ */
    .navbar:not(.menu-atelier) .liens-nav> :not(.btn-nav-commande):not(#btn-login-pro) {
        display: none !important;
    }

    .navbar:not(.menu-atelier) .btn-nav-commande,
    .navbar:not(.menu-atelier) #btn-login-pro {
        margin-left: 0;
        white-space: nowrap;
    }

    /* Place du bouton ☰ réservée tant que menu.js ne l'a pas ajouté (html.mm-site) : la barre ne bouge pas */
    html:not(.mm-site) .navbar:not(.menu-atelier)::after {
        content: '';
        flex: 0 0 44px;
        height: 44px;
    }

    .nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #f1f5f9;
        color: var(--bleu-fonce);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .nav-burger:hover {
        background: #e2e8f0;
    }

    .nav-burger-barres,
    .nav-burger-barres::before,
    .nav-burger-barres::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .nav-burger-barres {
        position: relative;
    }

    .nav-burger-barres::before,
    .nav-burger-barres::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .nav-burger-barres::before {
        top: -6px;
    }

    .nav-burger-barres::after {
        top: 6px;
        width: 14px;
    }

    /* ---- Voile + panneau latéral ---- */
    .mm-voile {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10040;
        background: rgba(10, 37, 64, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    html.mm-ouvert .mm-voile {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s ease;
    }

    html.mm-ouvert,
    html.mm-ouvert body {
        overflow: hidden;
    }

    .mm-tiroir {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 10050;
        width: min(88vw, 380px);
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #ffffff;
        box-shadow: -18px 0 48px rgba(10, 37, 64, 0.18);
        font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
        outline: none;
        transform: translateX(104%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s linear 0.32s;
    }

    html.mm-ouvert .mm-tiroir {
        transform: none;
        visibility: visible;
        transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
    }

    .mm-entete {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 0.6rem 0.75rem 0.6rem 1.25rem;
        border-bottom: 1px solid #eef2f6;
    }

    .mm-logo img {
        display: block;
        width: auto;
        height: 34px;
    }

    .mm-fermer {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #475569;
        cursor: pointer;
    }

    .mm-fermer:hover {
        background: #f1f5f9;
        color: var(--bleu-fonce);
    }

    .mm-fermer .mm-ico {
        width: 22px;
        height: 22px;
    }

    .mm-defilement {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1.1rem 0.75rem 1.5rem;
    }

    /* Cabinet connecté */
    .mm-cabinet {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0 0.6rem 0.4rem;
    }

    .mm-initiales {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--bleu-fonce);
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .mm-initiales .mm-ico {
        width: 22px;
        height: 22px;
    }

    .mm-cabinet-texte {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.3;
    }

    .mm-cabinet-texte strong {
        overflow: hidden;
        color: var(--bleu-fonce);
        font-size: 1.02rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mm-cabinet-texte span {
        color: #64748b;
        font-size: 0.85rem;
    }

    /* Visiteur : accès praticien + devenir client */
    .mm-acces {
        display: grid;
        gap: 0.6rem;
        padding: 0 0.5rem 0.25rem;
    }

    .mm-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        min-height: 50px;
        padding: 0.75rem 1rem;
        border: 0;
        border-radius: 14px;
        background: var(--bleu-fonce);
        color: #ffffff;
        font: inherit;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .mm-cta .mm-ico {
        width: 20px;
        height: 20px;
        stroke-width: 2.1;
    }

    .mm-cta-secondaire {
        border: 1.5px solid var(--orange-impres);
        background: transparent;
        color: var(--orange-action);
    }

    /* Groupes de liens */
    .mm-groupe-titre {
        margin: 1.4rem 0.75rem 0.3rem;
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .mm-groupe {
        display: flex;
        flex-direction: column;
    }

    .mm-ligne,
    .mm-deconnexion {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        width: 100%;
        min-height: 48px;
        padding: 0.55rem 0.75rem;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #1e293b;
        font: inherit;
        font-size: 0.98rem;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .mm-ligne>span,
    .mm-deconnexion>span {
        flex: 1;
    }

    .mm-ligne .mm-ico,
    .mm-deconnexion .mm-ico {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        color: #475569;
    }

    .mm-ligne .mm-ico:last-child {
        width: 18px;
        height: 18px;
        color: #cbd5e1;
    }

    .mm-ligne:hover {
        background: #f8fafc;
    }

    .mm-ligne.mm-actif {
        background: #fff4ed;
        color: var(--orange-action);
    }

    .mm-ligne.mm-actif .mm-ico {
        color: var(--orange-action);
    }

    .mm-ligne-atelier .mm-ico:first-child {
        color: var(--orange-impres);
    }

    .mm-deconnexion {
        margin-top: 1.25rem;
        border-top: 1px solid #eef2f6;
        border-radius: 0;
        color: #b91c1c;
    }

    .mm-deconnexion .mm-ico {
        color: #b91c1c;
    }

    .nav-burger:focus-visible,
    .mm-tiroir a:focus-visible,
    .mm-tiroir button:focus-visible,
    .mm-onglets a:focus-visible,
    .mm-onglets button:focus-visible {
        outline: 2px solid var(--orange-impres);
        outline-offset: 2px;
    }
}

/* ---- Téléphone, praticien connecté : barre d'onglets en bas de l'écran ---- */
@media (max-width: 768px) {
    /* … et au-dessus de la barre d'onglets du bas (praticien connecté) */
    html.mm-connecte {
        scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }

    html.mm-connecte .mm-onglets {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
        border-top: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -6px 20px rgba(10, 37, 64, 0.06);
        -webkit-backdrop-filter: saturate(1.4) blur(12px);
        backdrop-filter: saturate(1.4) blur(12px);
        font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
    }

    /* Espace réservé en bas de page pour que le pied de page ne passe pas sous les onglets
       (un élément plutôt qu'une marge : certaines pages fixent la hauteur du <body>) */
    html.mm-connecte body::after {
        content: '';
        display: block;
        flex-shrink: 0;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .mm-onglet {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 62px;
        min-width: 0;
        color: #475569;
        font-size: 0.69rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    /* « Messages » (bouton) a l'apparence des autres onglets */
    button.mm-onglet {
        padding: 0;
        border: 0;
        background: none;
        font-family: inherit;
        cursor: pointer;
    }

    .mm-onglet .mm-ico {
        width: 24px;
        height: 24px;
    }

    .mm-onglet.mm-actif {
        color: var(--orange-action);
        font-weight: 700;
    }

    /* « Commander » : pastille orange en relief au centre */
    .mm-onglet-commander {
        justify-content: flex-end;
        padding-bottom: 8px;
        /* un ton plus sombre que --orange-action : lisible aussi sur le halo de la pastille */
        color: #b53c0b;
        font-weight: 700;
    }

    .mm-pastille {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        margin-top: -24px;
        margin-bottom: 1px;
        border-radius: 50%;
        background: linear-gradient(160deg, #f97316, var(--orange-impres));
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(234, 88, 12, 0.35), 0 0 0 5px #ffffff;
        transition: transform 0.15s ease;
    }

    .mm-pastille .mm-ico {
        width: 26px;
        height: 26px;
        stroke-width: 2.4;
    }

    .mm-onglet-commander:active .mm-pastille {
        transform: scale(0.94);
    }

    /* « Commander » est dans les onglets : la barre du haut ne garde que le logo et le ☰ */
    html.mm-connecte .navbar:not(.menu-atelier) .btn-nav-commande {
        display: none !important;
    }

    /* Le Support est dans les onglets : plus de bulle flottante, et la fenêtre de
       discussion s'ouvre au-dessus des onglets */
    html.mm-connecte #bulle-tchat-flottante {
        display: none !important;
    }

    html.mm-connecte #boite-tchat {
        right: 12px !important;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .navbar:not(.menu-atelier) {
        padding-left: max(4%, env(safe-area-inset-left, 0px));
        padding-right: max(4%, env(safe-area-inset-right, 0px));
    }

    .navbar:not(.menu-atelier) .logo-image {
        height: 34px;
    }

    .navbar:not(.menu-atelier) .btn-nav-commande,
    .navbar:not(.menu-atelier) #btn-login-pro {
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }

}

@media (max-width: 380px) {
    .navbar:not(.menu-atelier) {
        padding-left: max(3%, env(safe-area-inset-left, 0px));
        padding-right: max(3%, env(safe-area-inset-right, 0px));
    }

    .navbar:not(.menu-atelier) .logo-image {
        height: 30px;
    }

    .navbar:not(.menu-atelier) .btn-nav-commande,
    .navbar:not(.menu-atelier) #btn-login-pro {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }

    .mm-onglet {
        font-size: 0.64rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mm-voile,
    .mm-tiroir,
    html.mm-ouvert .mm-voile,
    html.mm-ouvert .mm-tiroir,
    .mm-pastille {
        transition: none;
    }

    /* Animations quasi instantanées et défilement direct dans tout le site */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   ACCUEIL SUR TÉLÉPHONE : carte Contact et cartes « Confiance »
   (le formulaire de contact dépassait de sa carte blanche sous 400px)
   ========================================================================== */
@media (max-width: 600px) {
    .contact-conteneur {
        padding: 2rem 1.25rem;
        gap: 2rem;
        border-radius: 18px;
    }

    .contact-info,
    .contact-formulaire {
        min-width: 0;
        flex: 1 1 100%;
    }

    .contact-info h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .confiance-grille {
        grid-template-columns: 1fr !important;
    }
}

/* Filet de sécurité sur téléphone : un élément trop large (texte agrandi dans les
   réglages du téléphone, image…) ne doit jamais décaler toute la page sur le côté */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: clip;
    }
}

/* ==========================================================================
   CARTES BLANCHES (commande, suivi, devenir client…) SUR TÉLÉPHONE
   ========================================================================== */
@media (max-width: 600px) {
    .commande-container {
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }

    .commande-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
    }

    .section-form {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    .section-form h3 {
        flex-wrap: wrap;
        row-gap: 0.15rem;
    }

    /* Boutons de choix simples (côté, matière, technologie…) par deux plutôt qu'un seul par
       ligne ; les grilles qui contiennent des listes (tubes, options…) restent sur une colonne */
    .choix-grille:has(> .choix-label) {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
        gap: 0.75rem;
    }

    /* Un mot trop long (texte agrandi dans les réglages du téléphone) passe à la ligne
       au lieu d'élargir la page */
    .section-form {
        overflow-wrap: break-word;
    }
}

/* ==========================================================================
   CORRECTIONS AUDIT (2026-10-02)
   ========================================================================== */

/* Icônes dessinées (remplacent les émojis) */
.ico {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    vertical-align: -0.18em;
}

/* Barre du haut : « Ouvrir un compte » pour les visiteurs (masqué une fois connecté) */
.btn-nav-compte {
    display: inline-flex;
    align-items: center;
    background-color: var(--orange-action);
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
    transition: var(--transition);
}

.btn-nav-compte:hover {
    background-color: var(--orange-action-survol);
}

/* Fenêtre de connexion ouverte depuis une page réservée : proposer d'ouvrir un compte */
.modal-cta-compte {
    display: block;
    margin: 0 0 1.1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bleu-impres);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.modal-cta-compte:hover {
    background: #12365e;
}

/* Pied de page sombre, commun à toutes les pages vitrine */
footer.footer-technique {
    flex-shrink: 0;
    width: 100%;
    background: var(--bleu-fonce);
    padding: 3.5rem 6% 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: left;
    border-top: none;
}

.footer-grille {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grille .footer-titre {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-grille ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-grille a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-grille a:hover {
    color: #fb923c;
}

.footer-brand p {
    margin: 0.85rem 0 0 0;
    line-height: 1.6;
    max-width: 320px;
}

.footer-brand .footer-logo {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.footer-conformite {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.footer-conformite span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 9px;
    border-radius: 999px;
}

.footer-bas {
    max-width: 1180px;
    margin: 1.5rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    border: none;
    color: #94a3b8;
    text-align: left;
}

@media (max-width: 860px) {
    .footer-grille {
        grid-template-columns: 1fr 1fr;
    }

    /* Liens plus faciles à toucher au doigt (24 px de haut minimum), sans changer l'espacement visible */
    .footer-grille ul {
        gap: 0.1rem;
    }

    .footer-grille a {
        display: inline-block;
        padding: 0.25rem 0;
    }
}

/* =====================================================================================
   FAÇONS DE COMMANDER : Empreinte 3D · Empreinte physique · Bon papier
   Cartes communes à l'accueil, à l'ouverture de compte, à « Mon profil » et à la page Commande
   ===================================================================================== */
.facons-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.facon-carte { position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.05rem 1.05rem;
    border-radius: 14px; border: 1.5px solid var(--bordure-subtile); background: #ffffff; color: var(--texte-principal);
    text-align: left; font: inherit; line-height: 1.45; }
label.facon-carte, button.facon-carte { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
label.facon-carte:hover, button.facon-carte:hover { border-color: var(--orange-impres); }
button.facon-carte:focus-visible, label.facon-carte:focus-within { outline: 2px solid var(--orange-action); outline-offset: 2px; }
label.facon-carte:has(input:checked) { border-color: var(--orange-impres); background: #fffaf5; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14); }
.facon-carte input[type="radio"] { position: absolute; top: 1rem; right: 1rem; width: 18px; height: 18px; margin: 0; accent-color: var(--orange-impres); }
.facon-carte.papier { background: #f8fafc; }
.facon-tag { align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    color: #9a3412; background: #fff7ed; border-radius: 999px; padding: 0.15rem 0.55rem; margin-bottom: 0.4rem; }
.facon-tag.gris { color: #475569; background: #e2e8f0; }
.facon-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; color: var(--bleu-fonce); margin-bottom: 0.3rem; }
.facon-ico svg { width: 20px; height: 20px; }
.facon-carte strong { font-size: 1.02rem; color: var(--bleu-fonce); }
.facon-sous { font-size: 0.8rem; font-weight: 700; color: var(--texte-discret); }
.facon-texte { font-size: 0.86rem; margin-top: 0.35rem; }
.facon-texte b { color: var(--bleu-fonce); }
.facon-etiquette[hidden] { display: none; }
.facon-action { margin-top: auto; padding-top: 0.6rem; font-weight: 800; font-size: 0.86rem; color: var(--orange-action); }
@media (max-width: 760px) {
    .facons-grille { grid-template-columns: 1fr; gap: 0.6rem; }
    .facon-carte { display: grid; grid-template-columns: 38px 1fr; column-gap: 0.75rem; row-gap: 0.1rem; padding: 0.8rem 2.6rem 0.85rem 0.85rem; }
    .facon-carte > * { grid-column: 2; }
    .facon-carte > .facon-ico { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
    .facon-carte input[type="radio"] { top: 0.9rem; right: 0.85rem; }
    .facon-tag { justify-self: start; margin-bottom: 0.2rem; }
    .facon-texte { margin-top: 0.15rem; }
    .facon-action { padding-top: 0.3rem; }
}
