@media (max-width: 900px) {
    /* Header ajustements */
    header, .haut {
        padding: 10px 16px;
    }
    
    header h1, .haut h1 {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    header .logo, .haut .logo {
        width: 50px;
        height: 50px;
    }
    
    /* Cache la navigation standard et prépare le menu coulissant */
    nav {
        display: block; 
    }
    
    .nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Style "Boucherie" : Menu plein écran qui glisse de la gauche */
        position: fixed;
        top: 0;
        left: -100%; /* Caché complètement à gauche */
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 15, 15, 0.98); /* Fond sombre uniforme */
        
        z-index: 1500;
        transition: all 0.5s ease; /* Animation fluide de glissement */
        gap: 0;
    }

    /* Classe activée par le JS : fait apparaître le menu */
    .nav.mobile {
        left: 0; /* Revient à sa position normale */
    }
     
    .nav.mobile li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    
    .nav.mobile a {
        display: inline-block;
        font-size: 1.8rem; /* Plus grand pour le style Boucherie */
        color: #ffffff;
        padding: 15px 30px;
        transition: all 0.3s ease;
        border-bottom: none; /* Nettoyage des bordures */
    }
    
    .nav.mobile a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
        color: #d2fcd2;
    }
     
    /* Boutons Hamburger & Fermeture */
    header .hamburger, .haut .hamburger {
        display: block !important;
        position: relative;
        z-index: 1100;
    }
     
    header .close-icon, .haut .close-icon {
        display: none;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 2100; /* Au-dessus du menu noir */
    }
     
    .close-icon.active { display: block !important; }
    .hamburger.hide { display: none !important; }
    
    /* Bloquer le scroll quand le menu est ouvert */
    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* AJUSTEMENTS DU CONTENU (Pages détails) */
    main, .fiche-container {
        padding: 16px;
    }
    
    .H2_p {
        text-align: center;
        padding: 24px 16px;
        margin: 16px 0;
    }
    
    .fiche {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .fiche-media, .fiche-contenu {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    .fiche-media img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }
    
    /* Boutons d'actions */
    .actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .Conure > a {
        width: 100%;
        max-width: 100%;
    }
}


@media (max-width: 480px) {
    header h1, .haut h1 { font-size: 1rem; }
    header .logo, .haut .logo { width: 40px; height: 40px; }
    .nav.mobile a { font-size: 1.5rem; }
}

@media (min-width: 600px) and (max-width: 900px) {
    .fiche-media { max-width: 450px; }
    .Conure > a {
        width: calc(50% - 12px);
    }
}


@media (min-width: 901px) {
    .nav { 
        display: flex !important; 
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        left: 0;
    }
    
    .hamburger, .close-icon { display: none !important; }
    

    .fiche {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 30px;
    }
    
    .fiche-media { flex: 0 0 380px; }
    .fiche-contenu { flex: 1; }
    
    .Conure > a {
        width: calc(33.333% - 16px);
    }
}