/* Je réinitialise tous les styles par défaut pour mon contrôle total */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* J'améliore les interactions tactiles sur mobile */
    -webkit-tap-highlight-color: rgba(100, 150, 255, 0.2);
}

/* J'optimise le touch pour les éléments interactifs */
button, a, .app-family, .footer-logo, [role="button"] {
    -webkit-tap-highlight-color: rgba(100, 150, 255, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* J'empêche tout débordement */
html {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
}

/* Je crée le fond spatial avec dégradé dynamique */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, 
        #0a0e27 0%, 
        #1a1f3a 25%, 
        #2a2f4a 50%, 
        #1a1f3a 75%, 
        #0a0e27 100%);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    /* Je préviens le zoom sur iOS lors du focus des inputs */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Je génère les étoiles scintillantes en arrière-plan */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Mes étoiles avec animation de scintillement */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

/* Animation de scintillement avec fade in/out pour mes étoiles */
@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
    75% { 
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Je crée l'en-tête avec le titre principal */
.header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.8) 0%, 
        rgba(30, 60, 114, 0.6) 50%,
        rgba(20, 40, 80, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(100, 150, 255, 0.3);
}

/* Je stylise mon titre principal "La Boussole Digitale" */
.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, 
        #64e0ff 0%, 
        #ffffff 25%, 
        #64e0ff 50%, 
        #4a9eff 75%, 
        #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(100, 224, 255, 0.5);
    margin-bottom: 5px;
    animation: title-glow 3s ease-in-out infinite alternate;
}

/* Animation de lueur pour mon titre */
@keyframes title-glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(100, 224, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(100, 224, 255, 0.8));
    }
}

/* Sous-titre descriptif */
.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 10px;
}

/* Je crée la navigation principale */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Mes boutons de navigation stylisés */
.nav-button {
    padding: 8px 18px;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(50, 100, 180, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Effet au survol de mes boutons */
.nav-button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(50, 100, 180, 1) 0%, 
        rgba(70, 140, 220, 0.9) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    box-shadow: 
        0 6px 20px rgba(100, 150, 255, 0.4),
        0 0 30px rgba(100, 150, 255, 0.2);
}

/* Je crée le conteneur principal pour ma boussole */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 140px;
    padding-bottom: 90px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 5;
    overflow: hidden;
}

/* Ma boussole centrale avec tous ses effets */
.compass-container {
    position: relative;
    width: 400px;
    height: 400px;
}

/* La boussole elle-même */
.compass {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at center, 
        rgba(30, 60, 114, 0.95) 0%, 
        rgba(42, 82, 152, 0.9) 30%,
        rgba(20, 40, 80, 0.95) 70%,
        rgba(10, 20, 40, 1) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(100, 150, 255, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(50, 100, 200, 0.4);
    animation: compass-pulse 5s ease-in-out infinite;
}

/* Animation de pulsation pour ma boussole */
@keyframes compass-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 60px rgba(100, 150, 255, 0.6),
            inset 0 0 40px rgba(0, 0, 0, 0.5),
            0 0 120px rgba(50, 100, 200, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 0 80px rgba(100, 150, 255, 0.8),
            inset 0 0 40px rgba(0, 0, 0, 0.5),
            0 0 150px rgba(50, 100, 200, 0.6);
    }
}

/* Je crée les marqueurs rotatifs autour de ma boussole */
.compass-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    border: 3px solid rgba(100, 150, 255, 0.4);
    animation: rotate-ring 60s linear infinite;
}

/* Animation de rotation continue pour les crans */
@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mes marqueurs de degrés sur l'anneau */
.degree-marker {
    position: absolute;
    width: 3px;
    height: 15px;
    background: rgba(100, 150, 255, 0.6);
    top: -5px;
    left: 50%;
    transform-origin: center 260px;
    border-radius: 1px;
}

/* Marqueurs principaux plus visibles */
.degree-marker.major {
    height: 25px;
    width: 4px;
    background: rgba(150, 200, 255, 0.8);
    top: -10px;
}

/* Les lettres cardinales sur ma boussole */
.cardinal {
    position: absolute;
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.cardinal.n { top: 15px; left: 50%; transform: translateX(-50%); }
.cardinal.s { bottom: 15px; left: 50%; transform: translateX(-50%); }
.cardinal.e { right: 15px; top: 50%; transform: translateY(-50%); }
.cardinal.w { left: 15px; top: 50%; transform: translateY(-50%); }

/* La rose des vents centrale */
.compass-rose {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

/* Les pointes de ma rose des vents */
.star-point {
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

/* Pointe Nord en rouge */
.star-point.north {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 60px solid rgba(255, 100, 100, 0.9);
    transform: translate(-50%, -100%) rotate(0deg);
}

/* Pointe Sud en bleu */
.star-point.south {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 60px solid rgba(100, 150, 255, 0.9);
    transform: translate(-50%, -100%) rotate(180deg);
}

/* Pointes Est et Ouest en bleu clair */
.star-point.east, .star-point.west {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 60px solid rgba(150, 200, 255, 0.9);
}

.star-point.east { transform: translate(-50%, -100%) rotate(90deg); }
.star-point.west { transform: translate(-50%, -100%) rotate(-90deg); }

/* Je positionne mes familles d'applications autour de la boussole */
.app-family {
    position: absolute;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 15px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Effet au survol de mes familles */
.app-family:hover {
    transform: scale(1.1) translateY(-3px);
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 1) 0%, 
        rgba(50, 100, 180, 0.95) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    box-shadow: 
        0 8px 25px rgba(100, 150, 255, 0.5),
        0 0 40px rgba(100, 150, 255, 0.3);
}

/* Icônes pour mes familles d'applications */
.family-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
}

/* Je positionne chaque famille autour de ma boussole */
.app-family.alimentaire {
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.app-family.professionnel {
    top: -45px;
    right: -70px;
}

.app-family.intelligence {
    top: 50%;
    right: -90px;
    transform: translateY(-50%);
}

.app-family.champignons {
    bottom: -45px;
    right: -70px;
}

.app-family.mer {
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.app-family.versionning {
    bottom: -45px;
    left: -70px;
}

.app-family.jardin {
    top: 50%;
    left: -90px;
    transform: translateY(-50%);
}

/* Je crée le pied de page avec mes logos */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(10, 20, 40, 0.9) 0%, 
        rgba(20, 40, 80, 0.7) 50%,
        rgba(10, 20, 40, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(100, 150, 255, 0.3);
    text-align: center;
}

/* Conteneur pour mes petits logos */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Mes petits logos en bas */
.footer-logo {
    width: 35px;
    height: 35px;
    background: rgba(100, 150, 255, 0.2);
    border: 2px solid rgba(100, 150, 255, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.footer-logo:hover {
    background: rgba(100, 150, 255, 0.4);
    border-color: rgba(150, 200, 255, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
}

/* Copyright et informations */
.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
}

/* Modal pour afficher les applications d'une famille */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.95) 0%, 
        rgba(30, 60, 114, 0.9) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin: 20px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #64e0ff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding-right: 40px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

 .close-modal:hover {
     color: #ff6b6b;
 }

 /* Styles pour les éléments d'application dans la modale */
 .app-item {
     background: rgba(30, 60, 114, 0.3);
     border: 1px solid rgba(100, 150, 255, 0.3);
     border-radius: 10px;
     padding: 15px;
     margin-bottom: 15px;
     transition: all 0.3s ease;
     width: 100%;
     box-sizing: border-box;
     overflow-x: hidden;
     word-wrap: break-word;
     overflow-wrap: break-word;
 }

 .app-item:hover {
     background: rgba(30, 60, 114, 0.5);
 }

 .app-name {
     color: #64e0ff;
     margin-bottom: 8px;
     font-size: 16px;
     word-wrap: break-word;
     overflow-wrap: break-word;
     max-width: 100%;
 }

 .app-desc {
     color: rgba(255,255,255,0.8);
     margin-bottom: 8px;
     font-size: 14px;
     word-wrap: break-word;
     overflow-wrap: break-word;
     max-width: 100%;
     line-height: 1.5;
 }

 .app-link {
     display: inline-block;
     background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
     color: white;
     padding: 8px 16px;
     border-radius: 20px;
     text-decoration: none;
     font-size: 12px;
     font-weight: 500;
     margin-bottom: 10px;
     transition: all 0.3s ease;
     word-wrap: break-word;
     overflow-wrap: break-word;
     max-width: 100%;
 }

 .app-link:hover {
     background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
 }

 .app-status {
     color: white;
     padding: 4px 8px;
     border-radius: 15px;
     font-size: 12px;
     font-weight: 500;
     display: inline-block;
     word-wrap: break-word;
     overflow-wrap: break-word;
 }

 .app-status.disponible {
     background: #4CAF50;
 }

 .app-status.developpement {
     background: #4CAF50;
 }

 .app-status.bientot {
     background: #FF9800;
 }

 .app-status.planifie {
     background: #9E9E9E;
 }

 .modal-description {
     margin-bottom: 20px;
     color: rgba(255,255,255,0.8);
     word-wrap: break-word;
     overflow-wrap: break-word;
     max-width: 100%;
     line-height: 1.5;
 }

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(50, 100, 180, 0.95) 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid rgba(100, 150, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-size: 16px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 90%;
    text-align: center;
}

/* Classe pour l'effet de survol sur la boussole */
.compass-hover {
    box-shadow: 
        0 0 80px rgba(100, 150, 255, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 0 150px rgba(50, 100, 200, 0.6) !important;
}

/* Styles pour la page des applications */
.apps-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        #0a0e27 0%, 
        #1a1f3a 25%, 
        #2a2f4a 50%, 
        #1a1f3a 75%, 
        #0a0e27 100%);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

.apps-page.hidden {
    display: none;
}

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.apps-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, 
        #64e0ff 0%, 
        #ffffff 25%, 
        #64e0ff 50%, 
        #4a9eff 75%, 
        #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(100, 224, 255, 0.5);
    margin-bottom: 30px;
    text-align: center;
    animation: title-glow 3s ease-in-out infinite alternate;
}

/* Styles pour le champ de recherche */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.search-input:focus {
    border-color: rgba(150, 200, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 1) 0%, 
        rgba(50, 100, 180, 0.95) 100%);
    box-shadow: 
        0 8px 25px rgba(100, 150, 255, 0.5),
        0 0 40px rgba(100, 150, 255, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: rgba(100, 224, 255, 0.9);
}

/* Styles pour les filtres par famille */
.apps-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

/* Conteneur pour le bouton retour en haut */
.back-button-top-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Bouton retour en haut */
.back-button-top {
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(50, 100, 180, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 25px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-button-top:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(50, 100, 180, 1) 0%, 
        rgba(70, 140, 220, 0.9) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    box-shadow: 
        0 6px 20px rgba(100, 150, 255, 0.4),
        0 0 30px rgba(100, 150, 255, 0.2);
}

.apps-filter-pill {
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.7) 0%, 
        rgba(30, 60, 114, 0.6) 100%);
    border: 2px solid rgba(100, 150, 255, 0.4);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-transform: capitalize;
}

.apps-filter-pill:hover {
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(50, 100, 180, 0.8) 100%);
    border-color: rgba(100, 150, 255, 0.7);
    color: white;
    transform: translateY(-2px);
}

.apps-filter-pill.active {
    background: linear-gradient(135deg, 
        rgba(100, 150, 255, 0.8) 0%, 
        rgba(150, 200, 255, 0.7) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 150, 255, 0.3);
}

/* Styles pour le tableau */
.apps-table-container {
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}

.apps-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    table-layout: auto;
}

.apps-th {
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.8) 0%, 
        rgba(50, 100, 180, 0.6) 100%);
    color: #64e0ff;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(100, 150, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 10;
}

.apps-sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.apps-sortable:hover {
    background: linear-gradient(135deg, 
        rgba(50, 100, 180, 0.9) 0%, 
        rgba(70, 140, 220, 0.7) 100%);
    color: #ffffff;
}

.apps-sortable.apps-sorted {
    background: linear-gradient(135deg, 
        rgba(100, 150, 255, 0.8) 0%, 
        rgba(150, 200, 255, 0.6) 100%);
    color: #ffffff;
}

.apps-sort-indicator {
    margin-left: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.apps-sortable:hover .apps-sort-indicator {
    color: rgba(255, 255, 255, 0.8);
}

.apps-sortable.apps-sorted .apps-sort-indicator {
    color: #ffffff;
    font-weight: bold;
}

.apps-tr {
    transition: all 0.3s ease;
}

.apps-tr:hover {
    background: rgba(30, 60, 114, 0.3);
}

.apps-td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    vertical-align: top;
}

.apps-app-name {
    font-weight: 600;
    font-size: 16px;
    color: #64e0ff;
    margin-bottom: 5px;
}

.apps-app-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    /* J'assure le retour à la ligne par défaut */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.apps-family-badge {
    background: rgba(100, 150, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

.apps-status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.apps-status-disponible {
    background: #4CAF50;
    color: white;
}

.apps-status-developpement {
    background: #FF9800;
    color: white;
}

.apps-status-bientot {
    background: #FF9800;
    color: white;
}

.apps-status-planifie {
    background: #9E9E9E;
    color: white;
}

.apps-action-link {
    display: inline-block;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.apps-action-link:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3);
}

.apps-action-disabled {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-style: italic;
}

.apps-no-results {
    text-align: center;
    padding: 40px 20px;
}

.apps-no-results-content {
    color: rgba(255, 255, 255, 0.8);
}

.apps-no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.apps-no-results-content h3 {
    color: #64e0ff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.apps-no-results-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.app-card {
    background: linear-gradient(135deg, 
        rgba(20, 40, 80, 0.9) 0%, 
        rgba(30, 60, 114, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.app-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 1) 0%, 
        rgba(50, 100, 180, 0.95) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    box-shadow: 
        0 8px 25px rgba(100, 150, 255, 0.5),
        0 0 40px rgba(100, 150, 255, 0.3);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.app-name {
    color: #64e0ff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.app-status {
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

.app-status.disponible {
    background: #4CAF50;
}

.app-status.developpement {
    background: #FF9800;
}

.app-status.bientot {
    background: #FF9800;
}

.app-status.planifie {
    background: #9E9E9E;
}

.app-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-family-badge {
    background: rgba(100, 150, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.app-link {
    display: inline-block;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-link:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.app-link-disabled {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-style: italic;
}

.back-button {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(50, 100, 180, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.6);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(50, 100, 180, 1) 0%, 
        rgba(70, 140, 220, 0.9) 100%);
    border-color: rgba(150, 200, 255, 0.9);
    box-shadow: 
        0 6px 20px rgba(100, 150, 255, 0.4),
        0 0 30px rgba(100, 150, 255, 0.2);
}

/* Styles pour les résultats vides */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-results h3 {
    color: #64e0ff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive : j'adapte pour les grands écrans moyens */
@media (max-width: 1400px) {
    .main-title {
        font-size: 2.3rem;
    }
    
    .compass-container {
        width: 380px;
        height: 380px;
    }
    
    .app-family {
        min-width: 130px;
        font-size: 12px;
        padding: 12px 16px;
    }
}

/* Responsive : j'adapte pour les écrans moyens (tablettes paysage) */
@media (max-width: 1200px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .compass-container {
        width: 320px;
        height: 320px;
    }
    
    .app-family {
        min-width: 100px;
        font-size: 10px;
        padding: 10px 12px;
    }
    
    .family-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }
    
    .app-family.alimentaire { top: -40px; }
    .app-family.professionnel { top: -30px; right: -50px; }
    .app-family.intelligence { right: -60px; }
    .app-family.champignons { bottom: -30px; right: -50px; }
    .app-family.mer { bottom: -40px; }
    .app-family.versionning { bottom: -30px; left: -50px; }
    .app-family.jardin { left: -60px; }
    
    .cardinal {
        font-size: 26px;
    }
}

/* Responsive : j'adapte pour les tablettes portrait et petits portables */
@media (max-width: 900px) {
    .main-title {
        font-size: 1.9rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .compass-container {
        width: 280px;
        height: 280px;
    }
    
    .app-family {
        min-width: 90px;
        font-size: 9px;
        padding: 8px 10px;
    }
    
    .family-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }
    
    .cardinal {
        font-size: 22px;
    }
    
    .app-family.alimentaire { top: -35px; }
    .app-family.professionnel { top: -25px; right: -45px; }
    .app-family.intelligence { right: -55px; }
    .app-family.champignons { bottom: -25px; right: -45px; }
    .app-family.mer { bottom: -35px; }
    .app-family.versionning { bottom: -25px; left: -45px; }
    .app-family.jardin { left: -55px; }
    
    .navigation {
        gap: 8px;
    }
    
    .nav-button {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .footer-logos {
        gap: 15px;
    }
    
    .footer-logo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Responsive pour la modale sur tablettes */
    .modal-content {
        width: 92%;
        padding: 20px;
        max-height: 80vh;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .app-item {
        padding: 12px;
    }
    
    .app-name {
        font-size: 14px;
    }
    
    .app-desc {
        font-size: 13px;
    }
    
    /* Responsive pour le tableau sur tablettes - on garde le tableau */
    .apps-table-container {
        overflow-x: auto;
        padding: 15px;
    }
    
    .apps-table {
        display: table;
        min-width: 600px;
    }
    
    .apps-th {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .apps-td {
        padding: 10px 8px;
    }
    
    .apps-app-name {
        font-size: 14px;
    }
    
    .apps-app-desc {
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Responsive : j'adapte pour les smartphones paysage et petites tablettes */
@media (max-width: 768px) {
    .header {
        padding: 10px 10px;
    }
    
    .main-title {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .navigation {
        gap: 5px;
        margin-top: 6px;
    }
    
    .nav-button {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .main-content {
        padding-top: 110px;
        padding-bottom: 75px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .compass-container {
        width: 200px;
        height: 200px;
    }
    
    .compass-ring {
        border-width: 2px;
    }
    
    .degree-marker {
        width: 2px;
        height: 10px;
    }
    
    .degree-marker.major {
        width: 3px;
        height: 16px;
    }
    
    .app-family {
        min-width: 65px;
        font-size: 7px;
        padding: 5px 6px;
    }
    
    .family-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 4px;
        font-size: 14px;
    }
    
    .cardinal {
        font-size: 16px;
    }
    
    .compass-rose {
        width: 100px;
        height: 100px;
    }
    
    .star-point.north,
    .star-point.south,
    .star-point.east,
    .star-point.west {
        border-left-width: 8px;
        border-right-width: 8px;
        border-bottom-width: 40px;
    }
    
    .app-family.alimentaire { top: -28px; }
    .app-family.professionnel { top: -20px; right: -32px; }
    .app-family.intelligence { right: -40px; }
    .app-family.champignons { bottom: -20px; right: -32px; }
    .app-family.mer { bottom: -28px; }
    .app-family.versionning { bottom: -20px; left: -32px; }
    .app-family.jardin { left: -40px; }
    
    .footer {
        padding: 10px 10px;
    }
    
    .footer-logos {
        gap: 10px;
        margin-bottom: 6px;
    }
    
    .footer-logo {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .footer-text {
        font-size: 9px;
    }
    
    /* Responsive pour la modale sur smartphones */
    .modal-content {
        width: 94%;
        padding: 15px;
        max-height: 82vh;
        border-radius: 15px;
        margin: 10px 0;
    }
    
    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .close-modal {
        top: 8px;
        right: 10px;
        font-size: 22px;
    }
    
    .modal-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .app-item {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .app-name {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .app-desc {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .app-link {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .app-status {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* Responsive pour la page des applications */
    .apps-title {
        font-size: 2rem;
    }
    
    .apps-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .app-card {
        padding: 15px;
    }
    
    .app-name {
        font-size: 1.1rem;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Responsive pour le champ de recherche */
    .search-container {
        max-width: 100%;
        margin: 0 10px 20px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
    
    .search-icon {
        right: 12px;
        font-size: 16px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results h3 {
        font-size: 1.2rem;
    }
    
    .no-results p {
        font-size: 0.9rem;
    }
    
    /* Responsive pour les filtres et le tableau */
    .apps-filters {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .apps-filter-pill {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .apps-table-container {
        padding: 10px;
        margin-bottom: 15px;
        overflow-x: hidden;
    }
    
    /* Sur mobile, on cache le tableau classique et on affiche en cartes */
    .apps-table thead {
        display: none;
    }
    
    .apps-table tbody {
        display: block;
        width: 100%;
    }
    
    /* Création d'une vue en cartes pour mobile */
    .apps-table-container::after {
        content: '';
        display: block;
        clear: both;
    }
    
    .apps-tr {
        display: block;
        background: rgba(30, 60, 114, 0.3);
        border: 1px solid rgba(100, 150, 255, 0.3);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .apps-tr:hover {
        background: rgba(30, 60, 114, 0.5);
    }
    
    .apps-td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .apps-td:first-child {
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    }
    
    .apps-app-name {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
    }
    
    .apps-app-desc {
        font-size: 12px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
        display: block;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }
    
    /* On affiche les labels pour chaque donnée */
    .apps-td:nth-child(2)::before {
        content: '🏷️ Famille: ';
        font-weight: 600;
        color: #64e0ff;
        margin-right: 6px;
    }
    
    .apps-td:nth-child(3)::before {
        content: '📊 Statut: ';
        font-weight: 600;
        color: #64e0ff;
        margin-right: 6px;
    }
    
    .apps-td:nth-child(4)::before {
        content: '⚡ Action: ';
        font-weight: 600;
        color: #64e0ff;
        margin-right: 6px;
        display: block;
        margin-bottom: 6px;
    }
    
    .apps-family-badge {
        display: inline-block;
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .apps-status-badge {
        display: inline-block;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .apps-action-link {
        display: inline-block;
        padding: 6px 14px;
        font-size: 12px;
        margin-top: 4px;
    }
    
    .apps-action-disabled {
        font-size: 11px;
    }
    
    .apps-no-results {
        padding: 30px 15px;
        text-align: center;
    }
    
    .apps-no-results td {
        display: block !important;
        border: none !important;
        background: none !important;
        padding: 20px !important;
    }
    
    .apps-no-results td::before {
        content: '' !important;
        display: none !important;
    }
    
    .apps-no-results-icon {
        font-size: 2.5rem;
    }
    
    .apps-no-results-content h3 {
        font-size: 1.1rem;
    }
    
    .apps-no-results-content p {
        font-size: 0.8rem;
    }
    
    /* Responsive pour le bouton retour en haut */
    .back-button-top {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Responsive : j'adapte pour les très petits smartphones (portrait) */
@media (max-width: 480px) {
    .header {
        padding: 8px 8px;
    }
    
    .main-title {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .subtitle {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .navigation {
        gap: 4px;
        margin-top: 6px;
    }
    
    .nav-button {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 12px;
    }
    
    .main-content {
        padding-top: 90px;
        padding-bottom: 65px;
        padding-left: 3px;
        padding-right: 3px;
    }
    
    .compass-container {
        width: 165px;
        height: 165px;
    }
    
    .compass {
        box-shadow: 
            0 0 40px rgba(100, 150, 255, 0.5),
            inset 0 0 30px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(50, 100, 200, 0.3);
    }
    
    .compass-ring {
        border-width: 2px;
    }
    
    .degree-marker {
        width: 2px;
        height: 10px;
    }
    
    .degree-marker.major {
        width: 3px;
        height: 18px;
    }
    
    .cardinal {
        font-size: 16px;
    }
    
    .cardinal.n { top: 10px; }
    .cardinal.s { bottom: 10px; }
    .cardinal.e { right: 10px; }
    .cardinal.w { left: 10px; }
    
    .compass-rose {
        width: 100px;
        height: 100px;
    }
    
    .star-point.north,
    .star-point.south,
    .star-point.east,
    .star-point.west {
        border-left-width: 8px;
        border-right-width: 8px;
        border-bottom-width: 40px;
    }
    
    .app-family {
        min-width: 52px;
        font-size: 6px;
        padding: 4px 5px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    .family-icon {
        width: 16px;
        height: 16px;
        margin-bottom: 3px;
        font-size: 12px;
    }
    
    .app-family.alimentaire { top: -24px; }
    .app-family.professionnel { top: -17px; right: -27px; }
    .app-family.intelligence { right: -36px; }
    .app-family.champignons { bottom: -17px; right: -27px; }
    .app-family.mer { bottom: -24px; }
    .app-family.versionning { bottom: -17px; left: -27px; }
    .app-family.jardin { left: -36px; }
    
    .footer {
        padding: 8px 8px;
    }
    
    .footer-logos {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .footer-logo {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 5px;
    }
    
    .footer-text {
        font-size: 8px;
        line-height: 1.2;
    }
    
    /* Responsive pour la page des applications sur très petits écrans */
    .apps-page {
        padding: 8px;
    }
    
    .apps-container {
        padding: 8px;
    }
    
    .apps-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .search-container {
        margin: 0 5px 12px;
    }
    
    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 16px; /* Minimum 16px pour éviter le zoom automatique sur iOS */
        border-radius: 20px;
    }
    
    .search-icon {
        right: 10px;
        font-size: 14px;
    }
    
    .apps-filters {
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .apps-filter-pill {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .back-button-top-container {
        margin-bottom: 12px;
    }
    
    .back-button-top {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .apps-table-container {
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 10px;
        overflow-x: hidden;
    }
    
    /* Sur très petit écran, le tableau est en cartes */
    .apps-table thead {
        display: none;
    }
    
    .apps-table tbody {
        display: block;
        width: 100%;
    }
    
    .apps-tr {
        display: block;
        background: rgba(30, 60, 114, 0.3);
        border: 1px solid rgba(100, 150, 255, 0.3);
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .apps-td {
        display: block;
        padding: 5px 0;
        border: none;
    }
    
    .apps-td:first-child {
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    }
    
    .apps-app-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
        display: block;
    }
    
    .apps-app-desc {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }
    
    /* Labels pour les données sur très petits écrans */
    .apps-td:nth-child(2)::before {
        content: '🏷️ ';
        font-weight: 600;
        color: #64e0ff;
    }
    
    .apps-td:nth-child(3)::before {
        content: '📊 ';
        font-weight: 600;
        color: #64e0ff;
    }
    
    .apps-td:nth-child(4)::before {
        content: '⚡ ';
        font-weight: 600;
        color: #64e0ff;
        display: block;
        margin-bottom: 5px;
    }
    
    .apps-family-badge {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 8px;
        display: inline-block;
    }
    
    .apps-status-badge {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 10px;
        display: inline-block;
    }
    
    .apps-action-link {
        padding: 5px 12px;
        font-size: 11px;
        border-radius: 10px;
        display: inline-block;
        margin-top: 3px;
    }
    
    .apps-action-disabled {
        font-size: 10px;
    }
    
    .back-button {
        padding: 8px 18px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .apps-no-results {
        padding: 20px 8px;
        text-align: center;
    }
    
    .apps-no-results td {
        display: block !important;
        border: none !important;
        background: none !important;
        padding: 15px !important;
    }
    
    .apps-no-results td::before {
        content: '' !important;
        display: none !important;
    }
    
    .apps-no-results-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .apps-no-results-content h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .apps-no-results-content p {
        font-size: 0.7rem;
    }
    
    /* Modal responsive pour petits écrans */
    .modal-content {
        padding: 12px;
        width: 96%;
        max-height: 85vh;
        border-radius: 12px;
        top: 50%;
        transform: translate(-50%, -50%);
        left: 50%;
        right: auto;
    }
    
    .modal-title {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-right: 30px;
    }
    
    .close-modal {
        top: 8px;
        right: 10px;
        font-size: 20px;
    }
    
    .modal-description {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .app-item {
        padding: 8px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .app-name {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .app-desc {
        font-size: 9px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .app-link {
        padding: 5px 10px;
        font-size: 9px;
        border-radius: 10px;
        margin-bottom: 5px;
        display: inline-block;
    }
    
    .app-status {
        padding: 3px 6px;
        font-size: 8px;
        border-radius: 8px;
        display: inline-block;
    }
    
    .notification {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
        max-width: 94%;
    }
}

/* Responsive : optimisation pour smartphones en paysage */
@media (max-width: 900px) and (max-height: 500px) {
    .header {
        padding: 6px 8px;
    }
    
    .main-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .subtitle {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }
    
    .navigation {
        margin-top: 4px;
        gap: 4px;
    }
    
    .nav-button {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .main-content {
        padding-top: 70px;
        padding-bottom: 55px;
        padding-left: 3px;
        padding-right: 3px;
    }
    
    .compass-container {
        width: 180px;
        height: 180px;
    }
    
    .app-family {
        min-width: 50px;
        font-size: 6px;
        padding: 4px 5px;
    }
    
    .family-icon {
        width: 14px;
        height: 14px;
        font-size: 11px;
    }
    
    .cardinal {
        font-size: 14px;
    }
    
    .footer {
        padding: 6px 8px;
    }
    
    .footer-logos {
        margin-bottom: 4px;
        gap: 6px;
    }
    
    .footer-logo {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .footer-text {
        font-size: 7px;
    }
    
    .modal-content {
        max-height: 82vh;
        padding: 10px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .app-item {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .app-name {
        font-size: 10px;
    }
    
    .app-desc {
        font-size: 9px;
        line-height: 1.2;
    }
}

/* Responsive : optimisation pour très petits smartphones en paysage */
@media (max-width: 700px) and (max-height: 400px) {
    .header {
        padding: 4px 6px;
    }
    
    .main-title {
        font-size: 1rem;
        margin-bottom: 1px;
    }
    
    .subtitle {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }
    
    .navigation {
        margin-top: 3px;
        gap: 3px;
    }
    
    .nav-button {
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .main-content {
        padding-top: 60px;
        padding-bottom: 45px;
        padding-left: 2px;
        padding-right: 2px;
    }
    
    .compass-container {
        width: 150px;
        height: 150px;
    }
    
    .app-family {
        min-width: 42px;
        font-size: 5px;
        padding: 3px 4px;
    }
    
    .family-icon {
        width: 12px;
        height: 12px;
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .cardinal {
        font-size: 12px;
    }
    
    .compass-rose {
        width: 80px;
        height: 80px;
    }
    
    .star-point.north,
    .star-point.south,
    .star-point.east,
    .star-point.west {
        border-left-width: 6px;
        border-right-width: 6px;
        border-bottom-width: 30px;
    }
    
    .footer {
        padding: 4px 6px;
    }
    
    .footer-logos {
        margin-bottom: 3px;
        gap: 5px;
    }
    
    .footer-logo {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .footer-text {
        font-size: 6px;
    }
    
    .modal-content {
        max-height: 80vh;
        padding: 8px;
        width: 96%;
    }
    
    .modal-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
        padding-right: 25px;
    }
    
    .close-modal {
        top: 6px;
        right: 8px;
        font-size: 18px;
    }
    
    .modal-description {
        font-size: 8px;
        margin-bottom: 6px;
    }
    
    .app-item {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .app-name {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .app-desc {
        font-size: 8px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    
    .app-link {
        padding: 4px 8px;
        font-size: 8px;
        margin-bottom: 4px;
    }
    
    .app-status {
        padding: 2px 5px;
        font-size: 7px;
    }
}

/* Respect des préférences d'accessibilité pour les animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}