/* -------------------------
   conversion-style.css
   ------------------------- */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS */
:root {
    --primary-color: #3498db;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}
/* Container principal */
.conversion-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;

    /* Ajoute ceci pour centrer verticalement */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Titre principal */
.conversion-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Bloc de conversion */
.conversion-block {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Section de conversion */
.conversion-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Label des unités */
.unit-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Input des unités */
.unit-input {
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
}

.unit-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.unit-input:hover {
    border-color: var(--primary-color);
}

/* Bloc de résultat */
.result-block {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--gray-medium);
    transition: var(--transition);
}

.result-block:not(:empty) {
    background: linear-gradient(135deg, var(--primary-color), #74b9ff);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Table d'informations */
.info-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

/* Ligne d'information */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-medium);
}

.info-row:last-child {
    border-bottom: none;
}

/* Label d'information */
.info-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

/* Valeur d'information */
.info-value {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1rem;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conversion-container {
        padding: 0 15px;
    }
    
    .conversion-title {
        font-size: 2rem;
    }
    
    .conversion-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .info-table {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 0;
    }
    
    .conversion-title {
        font-size: 1.8rem;
    }
    
    .conversion-block {
        padding: 1rem;
    }
    
    .info-table {
        padding: 1rem;
    }
    
    .unit-input {
        padding: 0.8rem;
    }
    
    .result-block {
        padding: 0.8rem;
        min-height: 2.5rem;
        font-size: 1rem;
    }
}

.page-layout {
  display: flex;
  justify-content: center;
}

.sidebar {
flex: 1;
background-color: transparent;
}

.left-ad,
.right-ad {
  display: flex;
  justify-content: center;
  align-items: start;
}

.main-content {
  max-width: 800px;
  width: 100%;
  padding: 0 1rem;
}
/* -------------------------
   MOBILE-FIRST STYLE.CSS
   Version optimisée pour smartphones
   ------------------------- */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #ecf0f1;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Variables spécifiques mobile */
    --mobile-padding: 16px;
    --mobile-gap: 16px;
    --mobile-touch-target: 44px;
}

/* ===== BASE MOBILE-FIRST ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px; /* Base mobile */
}

/* ===== HEADER (CONSERVÉ EXACTEMENT) ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== LANGUAGE SELECTOR (CONSERVÉ) ===== */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    color: var(--text-color);
}

.language-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.language-btn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: max-content;
    min-width: 500px;
    max-width: 600px;
    max-height: none;
    margin-top: 0.5rem;
    padding: 1rem;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: auto;
    gap: 0.5rem;
    width: 100%;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-color);
    background: transparent;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.current-lang .lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* ===== LAYOUT MOBILE-FIRST ===== */
.page-layout {
    display: block; /* Mobile d'abord = pas de flex */
    width: 100%;
}

.sidebar {
    display: none; /* Masquer les sidebars sur mobile */
}

/* ===== SECTION PRINCIPALE MOBILE-FIRST ===== */
.main-content {
    width: 100%;
    padding: var(--mobile-padding);
    min-height: calc(100vh - 200px);
}

/* Container principal - optimisé mobile */
.conversion-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    /* Suppression du positionnement absolu pour mobile */
    position: static;
    transform: none;
}

/* Titre principal - mobile optimisé */
.conversion-title {
    font-size: 1.75rem; /* Plus petit sur mobile */
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding: 0 var(--mobile-padding);
}

/* Blocs de conversion - mobile-first */
.conversion-block {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    width: 100%;
    
    /* Mobile: stack vertical */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Section de conversion - mobile optimisée */
.conversion-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Label des unités - mobile */
.unit-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Input des unités - mobile touch-friendly */
.unit-input {
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1.1rem; /* Plus grand pour mobile */
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
    min-height: var(--mobile-touch-target);
    
    /* Optimisations mobile */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background-color: var(--white);
}

.unit-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.unit-input:hover {
    border-color: var(--primary-color);
}

.unit-input:disabled {
    background-color: var(--gray-light);
    cursor: not-allowed;
    color: var(--text-light);
}

/* Table d'informations - mobile optimisée */
.info-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    width: 100%;
    margin-bottom: 1rem;
}

/* Ligne d'information - mobile stack */
.info-row {
    display: flex;
    flex-direction: column; /* Stack sur mobile */
    gap: 0.5rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

.info-row:last-child {
    border-bottom: none;
}

/* Label et valeur d'information - mobile */
.info-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-value {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
    word-break: break-word;
}

/* ===== FOOTER (CONSERVÉ EXACTEMENT) ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE - TABLET (768px+) ===== */
@media (min-width: 768px) {
    .conversion-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
    
    .conversion-block {
        padding: 1.75rem;
        margin-bottom: 1.75rem;
        
        /* Tablet: côte à côte */
        flex-direction: row;
        gap: 2rem;
    }
    
    .conversion-section {
        flex: 1;
        gap: 1rem;
    }
    
    .unit-input {
        font-size: 1rem;
        padding: 1.1rem;
    }
    
    .info-table {
        padding: 1.75rem;
    }
    
    .info-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        gap: 1rem;
    }
    
    .info-value {
        text-align: right;
    }
}

/* ===== RESPONSIVE - DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .page-layout {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .sidebar {
        display: block;
        flex: 1;
        background-color: transparent;
        max-width: 200px;
    }
    
    .left-ad,
    .right-ad {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .main-content {
        max-width: 800px;
        width: 100%;
        padding: 0 1rem;
    }
    
    .conversion-container {
        max-width: 800px;
        margin: 0 auto;
        position: static;
        transform: none;
    }
    
    .conversion-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .conversion-block {
        padding: 2rem;
        margin-bottom: 2rem;
        gap: 2.5rem;
    }
    
    .info-table {
        padding: 2rem;
    }
    
    .language-menu {
        min-width: 500px;
        max-width: 600px;
    }
    
    .language-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== RESPONSIVE MOBILE SPÉCIFIQUE ===== */

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
    }
    
    .conversion-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .conversion-block {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .unit-input {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .info-table {
        padding: 1rem;
    }
    
    .language-btn {
        min-width: 110px;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .language-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 95vw;
        max-width: 95vw;
        margin-left: 0;
        margin-right: 0;
    }
    
    .language-menu.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .language-item {
        padding: 0.8rem 0.3rem;
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
    }
    
    .lang-flag {
        width: 18px;
        height: 13px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile Landscape et petites tablettes (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .conversion-title {
        font-size: 2rem;
    }
    
    .language-menu {
        min-width: 400px;
        max-width: 85vw;
    }
    
    .language-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== AMÉLIORATIONS MOBILE TOUCH ===== */
/* Désactiver les effets hover sur mobile */
@media (hover: none) and (pointer: coarse) {
    .language-item:hover {
        transform: none;
        box-shadow: var(--shadow);
        background: transparent;
        color: var(--text-color);
    }
    
    .language-item:active {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        color: var(--text-color);
    }
    
    .nav-link.active {
        color: var(--primary-color);
    }
}

/* Améliorer les zones de touch */
@media (max-width: 768px) {
    .nav-link,
    .language-item,
    .language-btn {
        min-height: var(--mobile-touch-target);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== OPTIMISATIONS PERFORMANCE MOBILE ===== */
/* Réduire les animations sur mobile si demandé */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --text-color: #e0e0e0;
        --gray-light: #2d2d2d;
        --gray-medium: #404040;
    }
}

/* ===== TRÈS PETITS ÉCRANS (max 360px) ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .conversion-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .conversion-block,
    .info-table {
        margin-left: 5px;
        margin-right: 5px;
        padding: 0.875rem;
    }
    
    .unit-input {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .language-menu {
        min-width: 98vw;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .language-item {
        padding: 1rem 0.2rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ===== CLASSE D'ERREUR POUR JAVASCRIPT ===== */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background-color: #ffeaea;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

/* ===== CLASSE POUR INPUT ACTIF ===== */
.input-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

/* ===== ANIMATIONS ET TRANSITIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-menu.active .language-grid {
    animation: fadeInDown 0.3s ease;
}

/* ===== SCROLLBAR CUSTOM ===== */
.language-menu::-webkit-scrollbar {
    width: 6px;
}

.language-menu::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}

.language-menu::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 3px;
}

.language-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== AMÉLIORATIONS POUR L'ACCESSIBILITÉ ===== */
/* Focus visible pour la navigation clavier */
.nav-link:focus-visible,
.language-btn:focus-visible,
.language-item:focus-visible,
.unit-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Améliorer le contraste pour les lecteurs d'écran */
.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;
}

/* ===== STYLES POUR LES RÉSULTATS ===== */
.unit-input[readonly] {
    background-color: var(--gray-light);
    color: var(--primary-color);
    font-weight: 500;
    cursor: default;
}

.unit-input[readonly]:focus {
    border-color: var(--gray-medium);
    box-shadow: none;
}

/* ===== OPTIMISATIONS FINALES ===== */
/* Éviter les débordements horizontaux */
* {
    max-width: 100%;
}

/* Optimiser le rendu des polices */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimiser les images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimiser les transitions sur GPU */
.language-menu,
.conversion-block,
.unit-input {
    will-change: transform;
}

/* Reset des apparences sur mobile */
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .sidebar,
    .language-selector {
        display: none;
    }
    
    .main-content {
        padding: 0;
        max-width: 100%;
    }
    
    .conversion-block {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
/* À ajouter dans la section RESPONSIVE - TABLET (768px+) */
@media (min-width: 768px) {
    .main-content {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 200px);
    }
    
    .conversion-container {
        width: 100%;
    }
}

/* À ajouter dans la section RESPONSIVE - DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .page-layout {
        min-height: calc(100vh - 200px);
    }
    
    .main-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* À modifier dans RESPONSIVE - DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .page-layout {
        height: auto; /* Taille minimale du contenu */
        min-height: auto; /* Supprimer le min-height */
        margin: 3rem 0; /* TU décides - 3rem en haut et bas */
        padding: 14rem 0; /* Supprimer le padding */
    }
    
    .main-content {
        min-height: auto; /* Supprimer le min-height */
    }
}

/* Et pour tablet */
@media (min-width: 768px) {
    .page-layout {
    padding: 6rem 3rem;
    }
    
    .main-content {
        min-height: auto;
    }
html {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* S'assurer que le contenu remplit l'espace */
.header {
    flex-shrink: 0;
}

.page-layout {
    flex: 1;
    min-height: 0;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
}
}
/* ===== RESPONSIVE PROPORTIONNEL POUR VRAIS ÉCRANS 4K ===== */

/* Écrans 3200px+ (4K début) */
@media (min-width: 3200px) {
    html {
        font-size: 20px; /* Base plus grande */
    }
        .page-layout {
    padding: 0;
    }
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .conversion-container {
        max-width: 1100px;
    }
    
    .conversion-block {
        padding: 3rem;
        margin-bottom: 3rem;
        gap: 3.5rem;
    }
    
    .unit-input {
        padding: 1.5rem 2rem;
        min-height: 65px;
    }
    
    .info-table {
        padding: 3rem;
    }
    
    .language-menu {
        min-width: 650px;
        padding: 1.8rem;
    }
    
    .footer {
        padding: 3rem 0;
    }
}

/* Écrans 3840px+ (4K standard) */
@media (min-width: 3840px) {
    html {
        font-size: 24px; /* Encore plus grand */
    }
            .page-layout {
    padding: 0;
    }
    .container {
        max-width: 2000px;
        padding: 0 50px;
    }
    
    .conversion-container {
        max-width: 1400px;
    }
    
    .conversion-block {
        padding: 4rem;
        gap: 4.5rem;
    }
    
    .unit-input {
        padding: 2rem 2.5rem;
        min-height: 80px;
    }
    
    .sidebar {
        max-width: 400px;
    }
}

/* Écrans 5120px+ (5K et plus) */
@media (min-width: 5120px) {
    html {
        font-size: 28px;
    }
            .page-layout {
    padding: 0;
    }
    .container {
        max-width: 2400px;
    }
    
    .conversion-container {
        max-width: 1600px;
    }
    
    .conversion-block {
        padding: 5rem;
        gap: 6rem;
    }
    
    .unit-input {
        padding: 2.5rem 3rem;
        min-height: 90px;
    }
}
