/* Variables globales */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --accent-color: #ff6b35;
    --light-gray: #f2f2f2;
    --dark-gray: #333333;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
  }
  
  /* Reset et styles généraux */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    padding: 0;
  }
  
  /* Header */
  header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  header a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
  }
  
  header a:hover {
    color: var(--accent-color);
  }
  
  header ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }
  
  /* Section de présentation */
  #presentation {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #e6f2ff, #f5f5f5);
    border-bottom: 3px solid var(--accent-color);
  }
  
  #presentation h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  #presentation h3 {
    color: var(--dark-gray);
    font-weight: 400;
    font-size: 1rem;
  }
  
  /* Layout principal (double section) */
  #double {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
  }
  
  #double section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    height: auto;
  }
  
  #double aside {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    height: auto;
    border-left: 4px solid var(--accent-color);
    margin-top: 10px;
  }
  
  /* Tableau pour la liste des marques */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  /* Container pour rendre le tableau scrollable sur mobile */
  div:has(table) {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table img {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: var(--transition);
  }
  
  table img:hover {
    transform: scale(1.1);
  }
  
  /* En-têtes du tableau */
  thead tr {
    background-color: var(--secondary-color);
    color: white;
  }
  
  thead td {
    padding: 12px 8px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* Corps du tableau */
  tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
  }
  
  tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  tbody tr:hover {
    background-color: #e9f0f7;
  }
  
  tbody tr:last-child {
    border-bottom: none;
  }
  
  /* Cellules du tableau */
  td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.9rem;
  }
  
  td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
  }
  
  /* Résultats de recherche */
  h1 + p {
    text-align: center;
    font-size: 1rem;
    margin: 15px auto 20px;
    color: var(--secondary-color);
    background-color: rgba(255, 107, 53, 0.1);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    display: inline-block;
    max-width: 90%;
  }
  
  /* Footer */
  footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    margin-top: 30px;
  }
  
  footer a {
    text-decoration: none;
    color: white;
    transition: var(--transition);
  }
  
  footer a:hover {
    color: var(--accent-color);
  }
  
  footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
  }
  
  /* Boutons et liens */
  .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin: 5px 0;
  }
  
  .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .btn-accent {
    background-color: var(--accent-color);
  }
  
  /* Media query pour les tablettes et desktop (à partir de 577px) */
  @media screen and (min-width: 577px) {
    /* Header */
    header ul {
      flex-direction: row;
      justify-content: center;
      gap: 30px;
    }
    
    /* Présentation */
    #presentation h1 {
      font-size: 2.5rem;
    }
    
    #presentation h3 {
      font-size: 1.2rem;
      max-width: 80%;
      margin: 0 auto;
    }
    
    /* Double layout */
    #double {
      grid-template-columns: 1fr 2fr;
      max-width: 1200px;
      gap: 20px;
    }
    
    #double aside {
      margin-top: 0;
    }
    
    /* Table */
    table img {
      width: 80px;
    }
    
    td, thead td {
      padding: 15px;
      font-size: 1rem;
    }
    
    /* Footer */
    footer ul {
      flex-direction: row;
      justify-content: center;
      gap: 30px;
    }
    
    /* Boutons */
    .btn {
      width: auto;
      padding: 10px 20px;
    }
  }
  
  /* Formulaires */
  form {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px 0;
  }
  
  input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.2);
  }
  
  label {
    font-weight: 500;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 5px;
  }
  
  /* Effets supplémentaires */
  .card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 15px;
  }
  
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  #presentation, #double section, #double aside {
    animation: fadeIn 1s ease;
  }
  
  /* Styles spécifiques pour la page de listing */
  .search-result-container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .search-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }