/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 50%, #ccfbf1 100%);
    min-height: 100vh;
}

/* ========================================
   NAVIGATION
======================================== */
.main-nav {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 1rem;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1f2937;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #1f2937;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    background: #f0f9ff;
    transform: translateX(5px);
}

.mobile-nav-links a.active {
    background: #dbeafe;
    color: #0284c7;
}

/* ========================================
   CONTAINER PRINCIPAL (Index)
======================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
}

/* ========================================
   HEADER (Index)
======================================== */
.header {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.beta-message {
    display: none;
}

/* ========================================
   PAGES DE CONTENU (a-propos, faq, etc.)
======================================== */
.content-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #0284c7;
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #0369a1;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h4 {
    color: #075985;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.content-section li strong {
    color: #1f2937;
}

/* ========================================
   SECTION DE RECHERCHE (Index)
======================================== */
.search-section {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.geolocation-btn {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.geolocation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.geolocation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Suggestions autocomplete */
.suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #0284c7;
    border-radius: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #f0f9ff;
}

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

/* ========================================
   LOADING
======================================== */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.active {
    display: block;
}

.loading i {
    font-size: 2rem;
    color: #0284c7;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   SECTIONS COMMUNES
======================================== */
.network-selection, .controls-bar, .results-container, .sort-controls, .table-settings, .network-info {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    display: none;
}

.network-selection.active, .controls-bar.active, .results-container.active,
.sort-controls.active, .table-settings.active, .network-info.active {
    display: block;
}

/* Network info */
.network-info {
    background: #f0f9ff;
    border: 2px solid #0284c7;
    color: #1f2937;
}

.network-info.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#network-info-text {
    flex-grow: 1;
}

.network-info-btn {
    padding: 0.75rem 1.25rem;
    background: #cce0ff;
    color: #1e40af;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.network-info-btn:hover {
    background: #b3cde0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(30, 64, 175, 0.1);
}

.network-info-btn strong {
    font-weight: 600;
    color: inherit;
}

.network-info .download-links {
    display: block;
}

/* ========================================
   NETWORK SELECTION
======================================== */
.network-selection h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.network-item {
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.network-item:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    transform: translateX(5px);
}

.network-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #1f2937;
}

.network-item div {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.25rem;
    padding-left: 21px;
}

/* ========================================
   CONTROLS
======================================== */
.controls-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.view-buttons, .download-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ========================================
   BOUTONS
======================================== */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    background: #cce0ff;
    color: #1e40af;
}

.btn-secondary:hover {
    background: #b3cde0;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   DOWNLOAD SECTION
======================================== */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.download-btn {
    padding: 0.6rem 1rem;
    background: #cce0ff;
    border: 2px solid #b3cde0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #b3cde0;
    transform: translateY(-2px);
}

/* ========================================
   RÉSULTATS SIMPLES (CARTES)
======================================== */
.simple-results {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.result-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid;
    transition: all 0.3s;
    max-width: 100%;
    overflow-wrap: break-word;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.result-card.good {
    background: #d1fae5;
    border-color: #065f46;
}

.result-card.bad {
    background: #fee2e2;
    border-color: #991b1b;
}

.result-card.neutral {
    background: #f3f4f6;
    border-color: #6b7280;
}

.result-card-header {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.result-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.result-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.result-card-info {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.result-card-value {
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ========================================
   TOOLTIPS
======================================== */
.tooltip-trigger, .limit-reference-link {
    cursor: pointer;
    color: #0284c7;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.3s;
}

.limit-reference-link {
    color: inherit;
    text-decoration: none;
}

.limit-reference-link:hover, .tooltip-trigger:hover {
    color: #0284c7;
}

/* ========================================
   TABLEAU
======================================== */
.table-container {
    position: relative;
    display: none;
    overflow: hidden;
}

.table-container.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #e5e7eb;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

th:first-child, td:first-child,
th:nth-child(2), td:nth-child(2) {
    text-align: left;
    position: sticky;
    z-index: 3;
    background: white;
}

th:first-child, td:first-child {
    left: 0;
}

th {
    background: #f9fafb;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 4;
}

th:first-child, th:nth-child(2) {
    z-index: 5;
    background: #f9fafb;
}

td:first-child {
    font-weight: 600;
}

td {
    color: #4b5563;
}

.good-cell {
    background: #d1fae5;
}

.bad-cell {
    background: #fee2e2;
}

.neutral-cell {
    background: #f9fafb;
}

.mobile-limit {
    display: none;
}

/* ========================================
   BOUTONS DE NAVIGATION TABLEAU
======================================== */
.table-nav-btn, .settings-toggle-btn {
    position: fixed;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    z-index: 9999;
    transition: all 0.3s;
}

.table-nav-btn.active, .settings-toggle-btn.active {
    display: flex;
}

.table-nav-btn:hover:not(:disabled), .settings-toggle-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.settings-toggle-btn:hover {
    transform: scale(1.1);
}

.table-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.table-nav-btn {
    top: 50%;
    transform: translateY(-50%);
}

.table-nav-btn.left {
    left: 20px;
}

.table-nav-btn.right {
    right: 20px;
}

.settings-toggle-btn {
    bottom: 30px;
    right: 20px;
}

/* ========================================
   TABLE SETTINGS
======================================== */
.table-settings {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.settings-content {
    padding: 1.5rem;
    min-width: 300px;
}

.table-settings-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-settings-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
    font-weight: 600;
    color: #0284c7;
    min-width: 80px;
    text-align: center;
}

/* ========================================
   SORT CONTROLS
======================================== */
.sort-controls {
    padding: 0.75rem;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    background: #e5e7eb;
}

.sort-btn.active {
    background: #dbeafe;
    border-color: #0284c7;
    color: #0284c7;
}

.sort-divider {
    width: 2px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 0.25rem;
    align-self: center;
}

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
    vertical-align: middle;
}

.sort-arrow {
    font-size: 0.65rem;
    color: #9ca3af;
    line-height: 1;
    transition: all 0.3s;
    padding: 2px 4px;
    border-radius: 2px;
}

.sort-arrow:hover {
    background: #e5e7eb;
}

.sort-arrow.active {
    color: #0284c7;
    background: #dbeafe;
}

/* ========================================
   MODALS
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#price-detail-modal .modal-content {
    max-width: 800px;
}

#network-detail-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

#network-detail-content p:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

#network-detail-content p strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    color: #4b5563;
    line-height: 1.6;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* ========================================
   FAQ - ACCORDÉONS
======================================== */
.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0284c7;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-top: 1rem;
}

.faq-answer p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #1f2937;
}

.faq-answer a {
    color: #0284c7;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ========================================
   PAGE CONTACT - INFO BOXES
======================================== */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.info-box h3 {
    color: #0284c7;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* ========================================
   CTA BOXES
======================================== */
.cta-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-box a,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-box a:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

/* ========================================
   WARNING/HIGHLIGHT BOXES
======================================== */
.warning-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.warning-box strong {
    color: #92400e;
}

.warning-box ul {
    margin-top: 0.5rem;
    padding-left: 2rem;
}

.warning-box li {
    color: #78350f;
}

.highlight-box {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.highlight-box p {
    margin: 0;
}

/* ========================================
   VERSION
======================================== */
.version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #6b7280;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* ========================================
   FOOTER
======================================== */
footer a:hover {
    color: #0284c7 !important;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 640px) {
    .simple-results {
        grid-template-columns: 1fr;
    }

    th:nth-child(2), td:nth-child(2) {
        display: none;
    }

    th:first-child, td:first-child {
        min-width: 180px;
        max-width: 180px;
    }

    td:first-child strong {
        display: block;
        margin-bottom: 0.5rem;
    }

    .mobile-limit {
        display: block;
        font-size: 0.85rem;
        font-weight: normal;
        color: #6b7280;
    }

    .sort-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .nav-logo img {
        width: 35px;
        height: 35px;
    }

    .container {
        padding: 0.75rem;
    }

    .header {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .network-info.active {
        flex-direction: column;
        align-items: flex-start;
    }

    .network-info-btn {
        width: 100%;
        justify-content: center;
    }

    .controls-content {
        flex-direction: column;
        align-items: stretch;
    }

    .view-buttons, .download-buttons {
        width: 100%;
        flex-direction: column;
    }

    .network-info .download-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .network-info .download-btn {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .network-info .download-section {
        width: 100%;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    #price-detail-modal .modal-content {
        max-width: 95%;
    }

    .faq-question {
        font-size: 1rem;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITAIRES
======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ========================================
   PRINT
======================================== */
@media print {
    .main-nav,
    .mobile-nav,
    .controls-bar,
    .sort-controls,
    .table-settings,
    .settings-toggle-btn,
    .table-nav-btn,
    .version,
    footer {
        display: none !important;
    }

    body {
        background: white;
    }

    .content-section,
    .result-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}