/* css/landscape-required.css */
/* Mode paysage OBLIGATOIRE - Cache complètement le contenu en mode portrait */

.rotate-device-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0891b2 100%);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rotate-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: rotate-animation 2s infinite linear;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

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

.rotate-message {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rotate-submessage {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 350px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.rotate-features {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

.rotate-features ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.rotate-features li {
    margin: 5px 0;
}

/* Masquer COMPLÈTEMENT le contenu en mode portrait sur mobile */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .rotate-device-overlay {
        display: flex;
    }
    
    /* Cache seulement le contenu principal (sécurisé) */
    .main-content,
    .container.mt-5 {
        display: none !important;
    }
    
    /* Cache aussi le header si souhaité */
    header {
        display: none !important;
    }
    
    /* S'assurer que l'overlay prend tout l'espace */
    html, body {
        height: 100%;
        overflow: hidden;
    }
}

/* Optimisations pour le mode paysage sur mobile - Compatible Bootstrap 5.3 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    /* Réduire les marges et paddings pour optimiser l'espace */
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Optimiser les tableaux Bootstrap */
    .table {
        font-size: 12px !important;
    }
    
    .table th,
    .table td {
        padding: 6px 4px !important;
    }
    
    .table-responsive {
        font-size: 11px !important;
    }
    
    /* Optimiser les boutons Bootstrap */
    .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .btn-sm {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    .btn-group .btn {
        padding: 6px 10px !important;
    }
    
    /* Optimiser les formulaires Bootstrap */
    .form-control,
    .form-select {
        padding: 6px 8px !important;
        font-size: 13px !important;
        height: auto !important;
    }
    
    .form-control-sm {
        padding: 4px 6px !important;
        font-size: 12px !important;
    }
    
    /* Optimiser les labels */
    .form-label {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    /* Réduire les marges Bootstrap */
    .mb-4 {
        margin-bottom: 15px !important;
    }
    
    .mb-3 {
        margin-bottom: 10px !important;
    }
    
    .mb-2 {
        margin-bottom: 8px !important;
    }
    
    /* Optimiser les alerts */
    .alert {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Optimiser les cards */
    .card-body {
        padding: 10px !important;
    }
    
    .card-header {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
    
    /* Optimiser les rows et cols */
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .row > * {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}