diff --git a/components/layout/layout-wrapper.tsx b/components/layout/layout-wrapper.tsx
index 2e070c2..fd3d089 100644
--- a/components/layout/layout-wrapper.tsx
+++ b/components/layout/layout-wrapper.tsx
@@ -28,7 +28,12 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
const { currentBackground, changeBackground } = useBackgroundImage();
const { data: session } = useSession();
const pathname = usePathname();
- const isAgendaPage = pathname === '/agenda';
+ const isAgendaPage = pathname?.startsWith('/agenda') || pathname === '/agenda';
+
+ // Debug: log pour vérifier le pathname
+ useEffect(() => {
+ console.log('[LayoutWrapper] pathname:', pathname, 'isAgendaPage:', isAgendaPage);
+ }, [pathname, isAgendaPage]);
// Listen for incoming RocketChat calls via WebSocket
const { incomingCall, setIncomingCall } = useRocketChatCalls();
@@ -234,7 +239,8 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
{children}
{/* TEMPORAIRE : Footer masqué uniquement sur la page agenda pour test layout */}
- {!isSignInPage && isAuthenticated && !isAgendaPage && }
+ {/* Force masquage pour test - pathname: ${pathname}, isAgendaPage: ${isAgendaPage} */}
+ {!isSignInPage && isAuthenticated && !isAgendaPage && pathname !== '/agenda' && }
{/* Notifications stack (calls and emails) */}