/* ========================================
   PRESENTATION MODE (22" Screen / Distance viewing)
   ======================================== */

:root {
    /* Responsive base font-size: scales with viewport but capped to avoid overflow */
    font-size: clamp(16px, 1.1vw, 20px);
}

body {
    /* S'assurer que le texte est bien lisible */
    line-height: 1.7;
}

/* Élargir le conteneur pour les grands écrans */
.container {
    max-width: 95%; /* Utiliser plus d'espace sur l'écran */
    padding: 0 40px;
}

/* Titres plus gros et plus gras */
h1, .hero-title, .hero-title-large {
    font-size: 3.5rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem !important;
}

h3 {
    font-size: 1.75rem !important;
}

/* Boutons plus gros pour interaction facile (tactile ou souris de loin) */
.btn {
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 8px;
}

/* Cartes et sections */
.feature-card, .product-card, .stat-card, .filters-panel {
    padding: 40px; /* Plus d'espace interne */
}

/* Navigation - plus visible */
.main-nav ul li a {
    font-size: 1.2rem;
    padding: 10px 20px;
}

.logo-text {
    font-size: 1.8rem;
}

/* Carte spécifiques */
.map-container {
    height: 800px; /* Carte plus haute */
}

/* Filtres plus gros */
.filter-title {
    font-size: 1.3rem;
}

.checkbox-label {
    font-size: 1.1rem;
    padding: 8px 0;
}

/* Ajustement des tableaux si présents */
table {
    font-size: 1.1rem;
}

th, td {
    padding: 16px;
}

/* ========================================
   FIX OVERFLOW ISSUES (Démonstration sur machine)
   ======================================== */

/* Élargir la sidebar du configurateur sur très grands écrans uniquement */
@media (min-width: 1600px) {
    .config-container {
        grid-template-columns: 320px 1fr; /* modest increase only on very wide screens */
        gap: 32px;
    }
}

/* Sidebar Configurateur - Fix Overflow */
.config-sidebar h2 {
    font-size: clamp(18px, 1.2rem, 28px) !important;
    line-height: 1.2;
    margin-bottom: 24px;
}

.config-sidebar h3 {
    font-size: clamp(14px, 1rem, 20px) !important;
}

/* Boîtes spécifiques "Mode de financement" et "Inclus" */
.financing-section h3,
.mandatory-accessories h3 {
    font-size: clamp(13px, 1rem, 18px) !important; /* Ajusté pour "MODE DE FINANCEMENT" */
    line-height: 1.2;
    margin-bottom: 12px;
    white-space: normal; /* Permettre le retour à la ligne */
    overflow-wrap: break-word;
}

/* Boutons de financement */
.financing-btn {
    font-size: 1rem !important;
    padding: 12px !important;
}

/* Listes dans la sidebar */
.specs-list li {
    font-size: 1.1rem !important;
}

.mandatory-accessories li {
    font-size: clamp(12px, 0.95rem, 16px) !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Ensure sidebar doesn't become wider than viewport in fullscreen */
.config-container {
    max-width: calc(100% - 32px);
}

/* Reduce sticky offset so sidebar doesn't overlap large headers in fullscreen */
.config-sidebar {
    top: 80px;
    box-sizing: border-box;
    max-width: 360px;
}

/* Gamme IM-X - Fix Overflow Cartes Instruments */
.instrument-group h3.instrument-title {
    font-size: 1.1rem !important; /* Réduire signicativement (était 1.4rem) */
    line-height: 1.3;
    padding: 0 5px;
    font-weight: 700;
}

/* Ajustements grille produits */
.instrument-images img {
    max-height: 150px; /* Limiter encore la hauteur */
    width: auto;
    object-fit: contain;
}

/* Calculateur ROI - Fix Box Overflow */

.roi-step-content .info-box,
.fiscal-info-box {
    font-size: 1rem !important;
}
