Locally convex (or nondegenerate) curves in the sphere S n (or the projective space) have been studied for several reasons, including the study of linear ordinary differential equations of order n + 1. Taking Frenet frames allows us to obtain corresponding curves Γ in the group Spin n+1 ; recall that Π : Spin n+1 → Flag n+1 is the universal cover of the space of flags. Determining the homotopy type of spaces of such curves Γ with prescribed initial and final points appears to be a hard problem. Due to known results, we may focus on L n , the space of (sufficiently smooth) locally convex curves Γ : [0, 1] → Spin n+1 with Γ(0) = 1 and Π(Γ(1)) = Π(1). Convex curves form a contractible connected component of L n ; there are 2 n+1 other components, corresponding to non convex curves, one for each endpoint. The homotopy type of L n has so far been determined only for n = 2 (the case n = 1 is trivial). This paper is a step towards solving the problem for larger values of n.The itinerary of a locally convex curve Γ : [0, 1] → Spin n+1 belongs to W n , the set of finite words in the alphabet S n+1 {e}. The itinerary of a curve lists the non open Bruhat cells crossed by the curve. Itineraries yield a stratification of the space L n . We construct a CW complex D n which is a kind of dual of L n under this stratification: the construction is similar to Poincaré duality. The CW complex D n is homotopy equivalent to L n . The cells of D n are naturally labeled by words in W n so that D n is infinite but locally finite. Explicit glueing instructions are described for lower dimensions.As an application, we describe an open subset Y n ⊂ L n , a union of strata of L n . In each non convex component of L n , the intersection with Y n is connected and dense. Most connected components of L n are contained in Y n . For n > 3, in the other components the complement of Y n has codimension at least 2. We prove that Y n is homotopically equivalent to the disjoint union of 2 n+1 copies of Ω Spin n+1 . In particular, for all n ≥ 2, all connected components of L n are simply connected.