<%= link_to Rails.application.config.app_name, current_user ? "/dashboard" : "/", class: "text-2xl font-display font-bold text-gray-900 hover:text-brand-primary transition-colors" %>
<%= link_to events_path, class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %> Événements <% end %> <%= link_to events_path, class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %> Afterworks <% end %> <%= link_to "#", class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %> Concerts <% end %>
<% if user_signed_in? %>
<%= current_user.first_name || current_user.email %>
<%= current_user.email %>
<%= link_to "#", class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %> Réservations <% end %> <%= link_to edit_user_registration_path, class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %> Sécurité <% end %>
<%= link_to destroy_user_session_path, data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, login_url_value: new_user_session_path, turbo: false }, class: "flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 transition-colors duration-200" do %> Déconnexion <% end %>
<% else %> <%= link_to new_user_session_path, class: "text-gray-700 hover:text-brand-primary px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200" do %> Se connecter <% end %> <%= link_to new_user_registration_path, class: "bg-gray-900 text-white font-semibold py-2 px-6 rounded-full hover:bg-gray-800 transition-colors duration-200 shadow-lg hover:shadow-xl" do %> S'inscrire <% end %> <% end %>
<%= link_to events_path, class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Événements <% end %> <%= link_to events_path, class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Afterworks <% end %> <%= link_to "#", class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Concerts <% end %>
<% if user_signed_in? %>
<%= current_user.first_name || current_user.email %>
<%= current_user.email %>
<%= link_to "#", class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Réservations <% end %> <%= link_to edit_user_registration_path, class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Sécurité <% end %> <%= link_to destroy_user_session_path, data: { controller: "logout", action: "click->logout#signOut", logout_url_value: destroy_user_session_path, login_url_value: new_user_session_path, turbo: false }, class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Déconnexion <% end %>
<% else %>
<%= link_to new_user_session_path, class: "flex items-center justify-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %> Se connecter <% end %> <%= link_to new_user_registration_path, class: "flex items-center justify-center px-3 py-2 rounded-lg text-base font-semibold bg-gray-900 text-white hover:bg-gray-800" do %> S'inscrire <% end %>
<% end %>