.gallery-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  background: #f9f9f9;
}

.gallery img {
  height: 200px;
  margin: 0 10px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  border-radius: 8px;
}

.gallery img:hover {
  transform: scale(1.2);
  z-index: 1;
}

/* debut bande info */
  .bande-info {
    width: 100%;
    background-color: #c62828;
    color: white;
    font-weight: bold;
    overflow: hidden;
    border-top: 3px solid #004aad;
    border-bottom: 3px solid #004aad;
    padding: 10px 0;
  }

  .contenu-defilant {
    display: inline-block;
    white-space: nowrap;
    animation: defilement 15s linear infinite;
  }

  @keyframes defilement {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }


/* Masquer complètement le lien Google si tu veux */
.goog-logo-link {
  display: none !important;
}

/* Masquer le texte "Fourni par Google Traduction" */

/* Ajuster l'alignement du gadget */
.goog-te-gadget img {
  display: none !important;
}
.goog-te-gadget {
  color: white !important;
  font-weight: 500;
}

/* Responsive improvements */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

#carousel {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.7s ease;
}

#carousel .flex-shrink-0 {
  flex: 0 0 100%;
}

@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-cols-3,
  .grid-cols-5,
  .lg\:grid-cols-3,
  .lg\:grid-cols-2 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }

  .grid-cols-3 > div,
  .grid-cols-5 > div,
  .lg\:grid-cols-3 > div,
  .lg\:grid-cols-2 > div {
    width: 6rem !important;
    height: 6rem !important;
  }

  nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  nav .group.relative .absolute {
    position: static !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  nav .group.relative .absolute.visible {
    opacity: 1 !important;
    visibility: visible !important;
  }

  nav .group.relative svg {

    display: none !important;

  }

  .nav-link {

    font-size: 0.8rem !important;

  }

  nav .group.relative .absolute a {

    font-size: 0.8rem !important;

  }

  .flex {
    flex-wrap: wrap !important;
  }

  .bande-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 18px;
  }

  .contenu-defilant {
    font-size: 0.95rem;
    animation-duration: 30s;
  }

  .hero-gradient {
    min-height: 60vh;
  }

  #carousel img {
    max-height: 360px !important;
  }

  .aspect-video {
    aspect-ratio: 16 / 10;
  }

  .logo-responsive:hover {
    transform: none;
  }

  .nav-link {
    white-space: normal;
  }

  #google_translate {
    position: static !important;
    width: auto !important;
    margin: 1rem auto;
    right: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 480px) {
  .grid-cols-5 {
    grid-template-columns: 1fr !important;
  }

  .bande-info {
    padding: 10px 14px;
  }

  .contenu-defilant {
    font-size: 0.85rem;
  }

  .hero-gradient img {
    object-fit: cover;
    max-height: 280px;
  }

  .top-0 .max-w-7xl,
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .w-40, .w-12, .h-40, .h-12 {
    width: auto !important;
    height: auto !important;
  }

  .text-justify {
    text-align: left;
  }
}

/* Éléments dimensionnés fixes - responsive */
@media (max-width: 1024px) {
  .w-40 {
    max-width: 100%;
    width: 100%;
  }

  .w-12 {
    width: 3rem;
  }

  .h-40 {
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .w-40 {
    width: 100%;
    max-width: 100%;
  }

  .grid {
    gap: 0.75rem;
  }

  .gap-3 {
    gap: 1rem;
  }

  .space-x-8 {
    gap: 1rem;
  }

  .px-4, .px-6, .px-8, .px-10, .px-12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-12, .py-16, .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Navigation responsive */
  .flex.items-center.gap-4 {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .text-6xl, .text-5xl, .text-4xl {
    font-size: 1.875rem !important;
  }

  .text-3xl, .text-2xl {
    font-size: 1.5rem !important;
  }

  /* Image responsiveness */
  .w-40, .w-48, .w-56 {
    width: 100%;
    max-width: 100%;
  }

  .h-40, .h-48, .h-56 {
    height: auto;
  }

  /* Flex adjustments */
  .flex.flex-col.md\:flex-row {
    flex-direction: column;
  }

  .flex.justify-between {
    flex-direction: column;
    gap: 1rem;
  }

  /* Card styling */
  .gap-8 {
    gap: 1rem;
  }

  .space-y-8 {
    gap: 1rem;
  }
}

/* Amélioration général pour mobile */
@media (max-width: 480px) {
  .min-h-screen {
    min-height: auto;
  }

  .py-32 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mb-8 {
    margin-bottom: 1rem;
  }

  .mt-4 {
    margin-top: 0.75rem;
  }

  /* Boutons responsifs */
  button {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Grilles */
  .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 {
    grid-template-columns: 1fr !important;
  }

  /* Conteneurs de contenu */
  .space-x-4, .space-x-6, .space-x-8 {
    gap: 0.5rem;
  }

  /* Texte lisible */
  body {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .text-sm {
    font-size: 0.875rem;
  }
}

/* Additional responsive fixes */
.top-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.top-logo-grid .logo-card {
  width: auto;
  min-height: 120px;
}

.top-logo-grid .logo-card img {
  max-width: 100%;
  height: auto;
}

.hero-content {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-countdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .hero-countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .top-logo-grid {
    grid-template-columns: 1fr;
  }

  .top-logo-grid .logo-card {
    width: 100%;
    min-height: auto;
  }

  .hero-countdown {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-gradient {
    min-height: 50vh;
  }

  .hero-gradient img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  #venue iframe {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-countdown {
    gap: 0.75rem;
  }

  #venue iframe {
    height: 220px;
  }
}

@media (max-width: 1024px) {
  .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 768px) {
  .px-12,
  .px-10,
  .px-8,
  .px-6,
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-32,
  .py-24,
  .py-20,
  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .text-6xl,
  .text-5xl,
  .text-4xl {
    font-size: 2rem !important;
  }
}

@media (max-width: 640px) {
  .hidden.lg\:block {
    display: none !important;
  }

  .md\:flex {
    display: flex !important;
    flex-direction: column !important;
  }

  .gap-4 {
    gap: 0.75rem !important;
  }

  .space-y-2, .space-y-3, .space-y-4 {
    gap: 0.5rem !important;
  }

  .space-x-2, .space-x-3, .space-x-4 {
    gap: 0.5rem !important;
  }

  /* Footer responsive */
  .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
  }

  .items-center {
    align-items: stretch !important;
  }

  .justify-between {
    justify-content: flex-start !important;
  }
}

/* Optimisations supplémentaires pour tous les appareils */
@media (max-width: 1200px) {
  .lg\:gap-8 {
    gap: 1rem !important;
  }

  .lg\:px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Protection du texte - toujours lisible */
@media (max-width: 768px) {
  .leading-relaxed {
    line-height: 1.625;
  }

  .leading-tight {
    line-height: 1.25;
  }

  /* Les boutons prennent toute la largeur sur mobile */
  button.w-full,
  a.block {
    width: 100%;
  }
}

/* Images de fond responsive */
@media (max-width: 768px) {
  [style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
  }
}

/* Tableaux responsive */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
  }

  thead {
    display: none;
  }

  tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
  }

  td {
    display: block;
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    font-weight: bold;
    text-align: left;
  }
}

/* Champs de formulaire responsifs */
@media (max-width: 768px) {
  input, textarea, select {
    width: 100% !important;
    padding: 0.75rem !important;
    font-size: 1rem;
  }
}

/* Vidéos et iframes responsives */
iframe, video {
  max-width: 100%;
  height: auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Breakpoint personnalisé pour très petits écrans */
@media (max-width: 360px) {
  html, body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  .px-4, .px-6, .px-8, .px-10 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Renforts CSS pour une meilleure adaptation mobile */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

header, footer, main, section {
  width: 100%;
}

button, input, textarea, select {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .grid-cols-3,
  .grid-cols-5,
  .lg\:grid-cols-3,
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .w-40,
  .w-48,
  .w-56,
  .h-40,
  .h-48,
  .h-56 {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
  }

  header .flex {
    flex-wrap: wrap;
    gap: 1rem;
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #google_translate,
  #google_translate_mobile {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.75rem auto !important;
    right: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 768px) {
  .grid-cols-3,
  .grid-cols-5,
  .lg\:grid-cols-3,
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .w-40,
  .w-48,
  .w-56,
  .h-40,
  .h-48,
  .h-56 {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .top-logo-grid,
  .hero-countdown {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-gradient {
    min-height: 50vh;
  }

  .logo-responsive {
    max-width: 180px;
    margin: 0.75rem auto;
  }
}

@media (max-width: 640px) {
  .text-6xl,
  .text-5xl,
  .text-4xl {
    font-size: 1.75rem !important;
  }

  .text-3xl,
  .text-2xl {
    font-size: 1.35rem !important;
  }

  .flex.flex-col.md\:flex-row,
  .flex.justify-between {
    flex-direction: column !important;
  }

  .bande-info {
    padding: 1rem !important;
    justify-content: center;
    text-align: center;
  }
}
