/* ==========================================================================
   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;
    --bleu-fonce: #0a2540;
    /* Textes très importants */
    --fond-clair: #fafafc;
    /* Blanc légèrement cassé */
    --texte-principal: #425466;
    --texte-discret: #94a3b8;
    --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', sans-serif;
    background-color: var(--fond-clair);
    color: var(--texte-principal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   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);
}

.lien-nav-direct:hover,
.lien-nav-direct.actif {
    color: var(--orange-impres);
    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-impres);
    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-impres);
    padding-left: 1.5rem;
}

/* Bouton principal : Commander (plein et contrasté) */
.btn-nav-commande {
    background-color: var(--orange-impres);
    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-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;
}

/* 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: #ef4444;
}

/* ==========================================================================
   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('roue.png');
    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%;
    background-image: url('roue.png');
    background-size: 270% 270%;
    background-position: center center;
    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-impres);
}

/* ==========================================================================
   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;
}

.choix-label input {
    display: none;
}

.choix-label:has(input:checked) {
    border-color: var(--orange-impres);
    background: #fff7ed;
    color: var(--orange-impres);
    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);
}

.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-impres);
    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;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-progression {
    position: absolute;
    top: 50%;
    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-impres);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.25);
    animation: pulseOrange 1.8s infinite;
}

.etape-suivi.attente .etape-texte {
    color: var(--orange-impres);
    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 h3 {
    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;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--texte-principal);
}

.prix-valeur {
    color: var(--orange-impres);
    font-size: 1.25rem;
    font-weight: 800;
}

/* ==========================================================================
   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. */
@media (max-width: 768px) {

    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;
    }

    /* La barre de navigation ne doit jamais provoquer de défilement
       horizontal ou de chevauchement sur un écran de 375–414px : les liens
       passent à la ligne proprement plutôt que de déborder. */
    .navbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .liens-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 0.5rem;
    }
}