<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %} <link rel="icon" type="image/x-icon" href="/public/icone.ico"> <script src="https://kit.fontawesome.com/f785a57bb7.js" crossorigin="anonymous"></script> <style> /* ----- structure -------------------------------------------- */ .layout{ min-width: 100vw; min-height: 100vh; } /* ----- sidebar ---------------------------------------------- */ #sidebar{ position: fixed; /* la barre sort du flux */ top: 0; left: 0; height: 100vh; width: 70px; /* largeur fermée */ background: linear-gradient(#006288,#3A4B92); overflow-x: hidden; transition: width .3s; z-index: 1000; } #sidebar.expanded{ width:250px; } /* texte masqué quand fermé */ #sidebar:not(.expanded) .sidebar-label{ display:none; } /* ----- contenu principal ------------------------------------ */ #mainContent{ display:flex; justify-content:center; align-items:flex-start; min-height:100vh; margin-left: 70px; padding:40px 20px; transition: margin-left .3s; } /* décale le contenu pour compenser l'ombre si besoin */ #sidebar.expanded + #mainContent{ /* aucune marge : le contenu n’avance ni ne recule */ } /* Option : petite ombre quand la barre est ouverte */ #sidebar.expanded{ box-shadow: 2px 0 8px rgba(0,0,0,.2); } /* ----- contenu entreprise details --------------------------- */ .entreprise_details { display: inline-block; } /* ----- bouton burger ---------------------------------------- */ #toggleSidebar{ width: 40px; height: 40px; border-radius: 50%; transition: all .3s; margin: 10px auto; display:block; } #sidebar.expanded #toggleSidebar{ width: 90%; border-radius: .25rem; } #sidebar .nav-link .sidebar-toggle-hide { display: inline-block; min-width: 150px; /* largeur fixe */ white-space: nowrap; } /* Masque les éléments quand la sidebar n’est pas élargie */ #sidebar:not(.expanded) .sidebar-toggle-hide { display: none !important; } #sidebar .nav-link { display: flex; align-items: center; } #sidebar .nav-link i { margin-right: 15px; min-width: 25px; text-align: center; } .logo-fluid { height: 100px; width: auto; margin: 0 auto; } #sidebar .nav-link i, #sidebar .nav-link span { margin-top: 15px; margin-bottom: 25px; margin-left: 5px; } .dt-button{ background-color: #007bff !important; color: #ffffff !important; } .dt-paging-button.current, .dt-input, .paginate_button.current{ background-color: #eeeeee !important; } .dt-button:hover{ background-color: #0056b3 !important; } .btn-primary { background-color: #006288; border-color: #006288; } .btn-primary:hover { background-color: #3A4B92; border-color: #3A4B92; } .crm-wrapper{ width:100%; max-width:90%; } </style> </head> <body style="background: linear-gradient(to bottom, #E4F5E6, #85DE92); background-size: cover;"> {% block body %}{% endblock %} {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %} </body></html>