/* Styles personnalisés pour AZE TT - Ressemble à AutoDealer */
#breadcrumb-wrapper {
  display: none !important;
}

/* ===== FOND BLEU FONCÉ AUTOUR DU SITE ===== */
body {
  background: #0a1f3a !important;
  margin: 0;
  padding: 0px;
  font-family: Arial, sans-serif;
}

/* ===== CONTENEUR PRINCIPAL ===== */
#main {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  margin-top: -10px !important;
}

/* ===== HEADER avec LOGO et SPONSORS ===== */
#header-w {
  background: #0a1f3a !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  margin-bottom: 0px !important;
  position: relative;
  line-height: 1;
}

#header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  line-height: 1;
}

.logo {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.logo a {
  display: block;
  margin: 0;
  padding: 0;
}

.logo-img {
  height: 85px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.logo img {
  max-width: 760px;
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.logo map {
  display: block;
}

.logo area {
  cursor: pointer;
}

/* ===== CONTENEUR DES SPONSORS ===== */
.sponsors-container {
  display: flex;
  flex-direction: column;    /* ← colonne : une ligne en dessous de l'autre */
  gap: 4px;
  margin: 0;
  padding: 4px 0;
  flex: 1;                   /* ← prend l'espace restant après le logo */
}

/* Chaque ligne de sponsors */
.sponsors-ligne {
  display: flex;
  flex-direction: row;       /* ← items côte à côte */
  gap: 6px;
  align-items: center;
}

/* Chaque sponsor */
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100px;
  flex: 0 0 100px;           /* ← taille fixe, ne s'étire pas */
  background: transparent;
  margin: 0;
  padding: 2px;
}

/* Lien du sponsor */
.sponsor-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Image du sponsor */
.sponsor-item img {
  max-width: 96px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.sponsor-item a:hover img {
  opacity: 0.8;
}

/* Fond blanc pour logos clairs */
.sponsor-item.fond-blanc {
  background: white !important;
  border-radius: 4px;
  padding: 4px;
}


/* ===== NAVIGATION ===== */
#nav-wrapper {
  background: #1a4d6d !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

#nav {
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
  margin: 0;
}

#nav-left {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

#nav-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#nav-left li {
  margin: 0;
  padding: 0;
  position: relative;
}

#nav-left a {
  display: block;
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  background: #1a4d6d !important;
  border-right: 1px solid #0a1f3a;
  white-space: nowrap;
  font-weight: bold;
  font-size: 13px;
}

#nav-left a:hover {
  background: #0a1f3a !important;
}

/* Menu actif */
#nav-left li.current a,
#nav-left li.active a,
#maximenuck li.current a,
#maximenuck li.active a {
  background: #e8e8e8 !important;
  color: #333 !important;
}

#nav-left li.current a:hover,
#nav-left li.active a:hover,
#maximenuck li.current a:hover,
#maximenuck li.active a:hover {
  background: #d0d0d0 !important;
  color: #333 !important;
}

/* Sous-menus */
#nav-left ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: #0a1f3a;
  border: 1px solid #051018;
  z-index: 1000;
}

#nav-left li:hover > ul {
  display: flex;
}

#nav-left ul ul li {
  width: 100%;
}

#nav-left ul ul a {
  border-right: none;
  border-bottom: 1px solid #1a4d6d;
  padding: 10px 16px;
  background: #0a1f3a !important;
  color: white !important;
}

#nav-left ul ul a:hover {
  background: #1a4d6d !important;
}

/* ===== BANNIÈRE ===== */
#topimage {
  background: url(/images/bandeau.jpg) no-repeat center;
  background-size: cover;
  height: 152px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
  padding: 0;
}

#main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===== CONTENU PRINCIPAL ===== */
#wrapper {
  padding: 15px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#navr {
  display: flex;
  gap: 15px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#navl {
  flex: 1;
  display: flex;
  gap: 15px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#leftbar-w {
  width: 25%;
  flex-shrink: 0;
}

#centercontent {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 4px;
}

.item-page {
  line-height: 1.6;
}

/* ===== SIDEBARS ===== */
#sidebar {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column-reverse;
}

#sidebar h3 {
  background: #2c7fa0;
  color: white;
  padding: 10px;
  margin: -15px -15px 10px -15px;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  font-weight: bold;
}

#sidebar input[type="text"],
#sidebar input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  background: #ffffcc;
  font-size: 12px;
}

#sidebar button {
  background: #2c7fa0;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-size: 12px;
}

#sidebar button:hover {
  background: #1a3a5c;
}

#sidebar a {
  color: #2c7fa0;
  text-decoration: none;
  font-size: 12px;
}

#sidebar a:hover {
  text-decoration: underline;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

#sidebar li {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

#sidebar li:last-child {
  border-bottom: none;
}

#sidebar > p {
  display: none !important;
}

#leftbar-w p {
  display: none !important;
}

/* Menu "Vie sportive" */
#sidebar .nav.menu {
  margin-bottom: 15px;
  padding: 10px 0;
  border: 1px solid #bab9b9;
  background: #e3e5e6;
  border-radius: 4px;
  overflow: hidden;
  order: 2;
}

#sidebar .nav.menu::before {
  content: 'Vie sportive';
  display: block;
  background: #d0d2d4;
  color: #333;
  padding: 10px 15px;
  margin: 0;
  border-bottom: 1px solid #bab9b9;
  font-size: 13px;
  font-weight: bold;
}

#sidebar .nav.menu li {
  padding: 8px 15px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

#sidebar .nav.menu li:last-child {
  border-bottom: none;
}

#sidebar .nav.menu a {
  color: #2c7fa0;
  text-decoration: none;
  font-weight: bold;
}

#sidebar .nav.menu a:hover {
  text-decoration: underline;
}

/* Formulaire de connexion */
#sidebar #login-form {
  margin-top: 15px;
  padding: 0;
  border: 1px solid #bab9b9;
  background: #fff;
  border-radius: 4px;
  order: 1;
  overflow: hidden;
}

#sidebar #login-form .userdata {
  padding: 15px !important;
  margin: 0;
}

#sidebar #login-form .userdata::before {
  content: 'Identifiant';
  display: block;
  background: #d0d2d4;
  color: #333;
  padding: 10px 15px;
  margin: -15px -15px 15px -15px;
  border-bottom: 1px solid #bab9b9;
  font-size: 13px;
  font-weight: bold;
}

#sidebar #login-form label.element-invisible,
#sidebar #login-form label.control-label {
  display: none !important;
}

#sidebar #login-form .add-on,
#sidebar #login-form .icon-user,
#sidebar #login-form .icon-lock,
#sidebar #login-form .icon-star,
#sidebar #login-form .icon-help {
  display: none !important;
}

#sidebar #login-form .control-group {
  margin-bottom: 12px !important;
  padding: 0 !important;
}

#sidebar #login-form .control-group:last-of-type {
  margin-bottom: 0 !important;
}

#sidebar #login-form .controls {
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar #login-form .input-prepend,
#sidebar #login-form .input-prepend.input-append {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar #login-form input[type="text"],
#sidebar #login-form input[type="password"] {
  width: 100% !important;
  padding: 10px !important;
  margin: 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  background: #ffffcc !important;
  font-size: 13px !important;
  display: block !important;
}

#sidebar #login-form #form-login-remember {
  margin: 12px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#sidebar #login-form #form-login-remember label {
  display: block !important;
  font-size: 12px !important;
  margin: 0 !important;
  font-weight: normal !important;
}

#sidebar #login-form #form-login-remember input {
  margin: 0 !important;
  width: auto !important;
}

#sidebar #login-form #form-login-submit {
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
}

#sidebar #login-form #form-login-submit .controls {
  margin: 0 !important;
  padding: 0 !important;
}

#sidebar #login-form .btn.btn-primary {
  width: 100% !important;
  padding: 12px !important;
  background: #2c7fa0 !important;
  color: white !important;
  border: none !important;
  border-radius: 3px !important;
  font-weight: bold !important;
  font-size: 14px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#sidebar #login-form .btn.btn-primary:hover {
  background: #1a3a5c !important;
}

#sidebar #login-form ul.unstyled {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 0 !important;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px !important;
}

#sidebar #login-form ul.unstyled li {
  padding: 5px 0 !important;
  border: none !important;
  margin: 0 !important;
}

#sidebar #login-form ul.unstyled a {
  color: #2c7fa0 !important;
  text-decoration: none !important;
  font-size: 12px !important;
}

#sidebar #login-form ul.unstyled a:hover {
  text-decoration: underline !important;
}

#sidebar #login-form .icon-arrow-right {
  display: none !important;
}

#sidebar #login-form input::placeholder {
  color: #999 !important;
  font-style: italic !important;
}

#sidebar #login-form .input-prepend.input-append .btn.width-auto {
  display: none !important;
}

#sidebar #login-form .input-prepend.input-append span.btn {
  display: none !important;
}

/* ===== USER BOTTOM ===== */
#user-bottom {
  padding: 15px 20px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 20px;
}

.user1, .user2 {
  flex: 1;
}

/* ===== FOOTER ===== */
#bottom {
  background: #1a3a5c;
  color: white;
  padding: 15px 20px;
  text-align: center;
  margin-top: 0;
  font-size: 12px;
}

/* ===== CLEARFIX ===== */
.clr {
  clear: both;
}

.clearpad {
  clear: both;
  padding: 10px 0;
}

/* ===== FORMULAIRE DE CONNEXION ===== */
#form-login-secretkey .input-prepend {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

#form-login-secretkey .input-prepend input {
  flex: 1;
  min-width: 100px;
  max-width: 100%;
}

#form-login-secretkey .input-prepend .btn {
  flex: 0 0 auto;
  margin-left: 5px;
}

#modlgn-secretkey {
  width: 100% !important;
  box-sizing: border-box;
  max-width: 150px;
}

.input-prepend.input-append {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.input-prepend.input-append input {
  flex: 1;
  min-width: 80px;
}

.input-prepend.input-append .btn {
  flex: 0 0 auto;
}

/* ===== SUPPRIMER LES ESPACES VIDES ===== */
#breadcrumb-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}

#message {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

#system-message-container {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#topimage {
  margin-bottom: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #header {
    flex-direction: column;
    gap: 5px;
  }

  .sponsors-container {
    grid-template-columns: repeat(3, 1fr);  /* 3 colonnes sur mobile */
    max-width: 100%;
  }

  .sponsor-item.banniere {
    grid-column: span 2;
  }

  .sponsor-item img {
    max-height: 38px;
  }
}

/* ===== PAGE SPONSORS ===== */
.sponsors-page h2 {
  color: #0a1f3a;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a4d6d;
}

.sponsors-page-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px 0;
}

.sponsors-page-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 180px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 10px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.sponsors-page-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sponsors-page-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 12px;
}

.sponsors-page-item img {
  max-width: 140px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsors-page-item span {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

.sponsors-page-item a:hover span {
  color: #1a4d6d;
  text-decoration: underline;
}
