/* Styles responsives uniquement - complément à main.css */

/* ===== RESPONSIVE VOGUE EVENTS ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .vogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .vogue-card.featured {
    grid-column: span 2;
  }
  
  .vogue-image-container {
    height: 200px;
  }
  
  .vogue-card.featured .vogue-image-container {
    height: 280px;
  }
  
  .vogue-info {
    padding: 1rem;
  }
  
  .vogue-title {
    font-size: 1rem;
  }
  
  .vogue-card.featured .vogue-title {
    font-size: 1.3rem;
  }
  
  .events-popular {
    padding: 1.5rem;
  }
}

/* Mobiles (576px et moins) */
@media (max-width: 576px) {
  .vogue-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .vogue-card.featured {
    grid-column: span 1;
  }
  
  .vogue-image-container,
  .vogue-card.featured .vogue-image-container {
    height: 220px;
  }
  
  .vogue-info {
    padding: 1rem;
  }
  
  .vogue-title,
  .vogue-card.featured .vogue-title {
    font-size: 1.1rem;
  }
  
  .vogue-location {
    font-size: 0.85rem;
  }
  
  .events-popular {
    padding: 1rem;
  }
  
  .events-popular h2 {
    font-size: 1.3rem;
  }
}

/* Bouton hamburger pour mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile menu overlay (hidden by default) */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 15px 0;
  display: block;
  text-align: center;
}

/* Animation when menu opens */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu.active {
  animation: fadeIn 0.3s ease-in-out;
}

/* RESPONSIVE MEDIA QUERIES */
/* Grand écran : tout reste comme dans main.css */

/* Écrans larges */
@media (max-width: 1200px) {
  .header-user {
    gap: 3rem;
  }
  
  /* Ajustements pour la section idées */
  .ideas-cards {
    justify-content: center;
  }
  
  .bigger-card {
    order: -1;
    width: 100%;
  }
  
  .bigger-card img {
    width: 100%;
    max-width: 550px;
  }
  
  .ideas-cta {
    margin-top: 1.5rem;
    text-align: center;
    margin-right: 0;
  }
}

/* Tablettes */
@media (max-width: 992px) {
  .header-user {
    gap: 2rem;
  }
  
  /* Newsletter passe en colonne */
  .newsletter-wrapper {
    flex-direction: column;
  }
  
  .newsletter-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .newsletter-image img {
    width: 100%;
    max-width: 300px;
  }
  
  .newsletter-content {
    text-align: center;
  }
  
  /* Ajuster les colonnes du footer */
  .footer-links {
    gap: 3rem;
  }
  
  /* Réduire la taille des sliders */
  .categories-container .slick-slide {
    margin: 15px 10px;
  }
}

/* Desktop - Assurer que la barre de recherche reste normale */
@media (min-width: 769px) {
  .search-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    min-width: 750px !important; /* Largeur réduite */
    max-width: 95% !important; /* Largeur maximale augmentée */
    padding: 0.9rem 1.8rem !important; /* Padding légèrement réduit */
    min-height: 75px !important; /* Hauteur légèrement réduite */
    height: auto !important;
    border-radius: 50px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
  }

  .search-field {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 1.8rem !important; /* Marge légèrement réduite */
    min-width: 180px !important; /* Largeur légèrement réduite */
    flex: 1 !important; /* Prendre l'espace disponible */
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .search-btn {
    width: 60px !important; /* Largeur fixe augmentée pour le bouton */
    height: 60px !important; /* Hauteur fixe augmentée pour le bouton */
    margin: 0 0 0 1.5rem !important; /* Marge à gauche augmentée pour l'espacement */
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important; /* Ne pas rétrécir */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Icône de recherche */
  .search-btn .icon-search {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
  }

  /* Séparateurs visibles sur desktop */
  .separator {
    display: block !important;
    width: 1px !important;
    height: 40px !important;
    background-color: #e0e0e0 !important;
    margin: 0 1rem !important;
  }

  /* Inputs normaux sur desktop */
  .search-field input {
    width: 100% !important; /* Prendre toute la largeur du champ */
    margin: 0 !important;
    height: auto !important;
    min-height: 35px !important; /* Hauteur minimale */
    font-size: 0.9rem !important;
    padding: 0.5rem 0.3rem !important; /* Padding augmenté */
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Toggle et éléments de date normaux */
  .date-toggle {
    display: flex !important;
  }

  /* S'assurer que les champs ont la bonne largeur */
  .search-field:first-child {
    flex: 1 !important; /* Destination - taille normale */
    max-width: auto !important;
    min-width: auto !important;
    width: auto !important;
    margin: 0 2rem !important;
  }

  /* Section période - plus large */
  .search-field:nth-child(2) {
    flex: 1.3 !important; /* Plus large pour la période */
    margin: 0 1.5rem !important;
  }

  /* Section activité - plus compacte et décalée à gauche */
  .search-field:last-of-type {
    flex: 0.8 !important; /* Plus compacte pour l'activité */
    max-width: auto !important;
    min-width: auto !important;
    width: auto !important;
    margin: 0 1rem 0 0.5rem !important; /* Moins d'espace à droite, rapprochée à gauche */
  }
}

/* Mobiles larges */
@media (max-width: 768px) {
  /* Mise en page moderne pour la section idées */
  .ideas-section {
    padding: 2rem 0;
  }
  
  .ideas-section h2,
  .ideas-section .ideas-intro {
    padding: 0 1rem;
  }
  
  .ideas-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .ideas-cards .idea-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .ideas-cards .bigger-card {
    grid-column: 1 / -1;
    order: -1;
  }
  
  .ideas-cards .smaller-card img,
  .ideas-cards .bigger-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px 10px 0 0;
  }
  
  .ideas-cards .smaller-card h3 {
    font-size: 0.9rem;
    padding: 10px 15px 0;
    margin: 0;
  }
  
  .ideas-cards .smaller-card p {
    padding: 5px 15px 15px;
    margin: 0;
  }
  
  .ideas-cta {
    text-align: center;
    margin: 1.5rem 0 0 0;
  }
  
  /* Mise en page moderne pour les événements en vogue */
  .events-popular #popular-events-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  
  .events-popular .vogue-row {
    display: contents;
  }
  
  .events-popular .vogue-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .events-popular .vogue-item:hover {
    transform: translateY(-5px);
  }
  
  .events-popular .vogue-item img {
    height: 150px;
    object-fit: cover;
    width: 100%;
  }
  
  .events-popular .vogue-item .event-info {
    padding: 10px;
  }
  
  .events-popular .vogue-item .event-location {
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffffff;
  }
  
  .events-popular .vogue-item .event-date {
    font-size: 0.8rem;
    color: #777;
  }
  .header {
    padding: 1rem;
  }

  .header-user {
    gap: 1rem;
  }

  /* Section hero mobile - centrer la search-bar */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centrer verticalement */
    justify-content: center; /* Centrer horizontalement */
    padding-top: 0; /* Supprimer le padding pour un vrai centrage */
  }
  
  /* Cacher les liens texte du header sur mobile */
  .add-event-link, .news-link {
    display: none;
  }
  
  /* Afficher le bouton hamburger */
  .mobile-menu-toggle {
    display: block;
    margin-right: 1rem;
  }
  
  /* Cacher l'icône utilisateur quand le menu hamburger est affiché */
  .user-icon-link {
    display: none;
  }
  
  /* Barre de recherche mobile moderne */
  .search-bar {
    flex-direction: column;
    width: 90%;
    padding: 1rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-height: auto; /* Hauteur automatique pour contenir le bouton */
    height: auto; /* Hauteur automatique */
    box-sizing: border-box;
    position: relative; /* Pour positionner le bouton à l'intérieur */
    display: flex;
    align-items: stretch; /* Étirer les éléments */
  }
  
  .search-field {
    width: 100%;
    margin: 0.6rem 0;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.8rem;
  }
  
  /* Forcer l'alignement à gauche pour toutes les sections sur mobile */
  .search-field:first-child,
  .search-field:last-of-type {
    flex: unset !important;
    max-width: unset !important;
    min-width: unset !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* S'assurer que les inputs et selects prennent toute la largeur */
  .search-field:first-child input,
  .search-field:last-of-type select {
    width: 100% !important;
    max-width: unset !important;
    min-width: unset !important;
  }
  
  .search-field:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem; /* Laisser espace pour le bouton */
  }

  /* Bouton de recherche dans la barre sur mobile */
  .search-btn {
    width: 100% !important;
    height: 60px !important;
    margin: 0.5rem 0 0 0 !important;
    border-radius: 12px !important;
    background-color: #bb0b0b !important; /* Couleur rouge du site */
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
  }

  /* Effet hover pour le bouton */
  .search-btn:hover {
    background-color: #a00909 !important; /* Rouge plus foncé au survol */
  }

  /* Icône dans le bouton */
  .search-btn .icon-search {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    margin: 0 !important; /* Centrer l'icône */
    filter: brightness(0) invert(1) !important; /* Rendre l'icône blanche */
  }
  
  .field-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #333;
  }
  
  .search-field input,
  .search-field select {
    font-size: 1rem;
    padding: 0.3rem 0;
    width: 100%;
    max-width: unset;
    min-width: unset;
  }
  
  
  /* Styles responsives pour la fonctionnalité date/période */
  .date-field {
    min-width: unset;
    max-width: unset;
    width: 100%;
    flex: unset;
    margin: 0.6rem 0;
    padding: 0;
  }
  
  .date-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }
  
  .date-toggle {
    align-self: unset;
    margin-top: unset;
  }
  
  .toggle-label {
    font-size: 0.7rem;
  }
  
  .date-inputs {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  
  .date-range-input {
    width: 100% !important;
    max-width: unset !important;
    font-size: 1rem;
    padding: 0.3rem 0;
    flex: unset;
    text-align: left !important;
  }
  
  .date-separator {
    display: none;
  }
  
  .separator {
    display: none;
  }
  
  .search-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #BB0B0B;
    color: white;
    border-radius: 25px;
    padding: 0.8rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
  }
  
  .search-btn:hover {
    background-color: #a80b0b;
  }
  
  .icon-search {
    display: none;
  }
  
  .search-text {
    display: inline-block;
    color: white;
    font-weight: 600;
    font-size: 1rem;
  }
  
  /* Ajuster les villes */
  .search-by-city {
    padding-left: 0;
    padding-right: 0;
  }
  
  .cities-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    gap: 1rem;
  }
  
  .city-item img {
    width: 160px;
    height: 160px;
  }
  
  /* Newsletter en colonne */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    margin-left: 0;
    width: 100%;
  }
  
  /* Ajuster le footer */
  .footer-newsletter button {
    margin-left: 0;
  }
  
  /* Réaligner les sections du footer */
  .footer-wrapper {
    padding: 0 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-top {
    align-items: flex-start;
  }
}

/* Petits écrans mobiles */
@media (max-width: 576px) {
  .header-logo img {
    height: 30px;
  }
  
  .search-wrapper {
    padding-top: 0; /* Pas de padding - centrage naturel */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrer le contenu */
    min-height: auto;
  }
  
  /* Réduire la taille des titres */
  .categories-section h2, 
  .search-by-city h2, 
  .events-popular h2,
  .this-week-section h2,
  .ideas-section h2 {
    font-size: 1.2rem;
    padding-left: 0;
    text-align: center;
  }
  
  /* Réorganisation moderne de la section idées */
  .ideas-section {
    padding: 0 0 1rem 0;
  }
  
  .ideas-section h2,
  .ideas-section .ideas-intro {
    padding: 0 10px;
    text-align: center;
  }
  
  .ideas-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .ideas-cards .idea-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .ideas-cards .idea-card:hover {
    transform: translateY(-5px);
  }
  
  .ideas-cards .bigger-card {
    order: 1;
  }
  
  .ideas-cards .smaller-card {
    display: flex;
    flex-direction: column;
  }
  
  .ideas-cards .smaller-card img,
  .ideas-cards .bigger-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px 10px 0 0;
  }
  
  .ideas-cards .smaller-card h3 {
    font-size: 1rem;
    padding: 10px 15px 0;
    margin: 0;
  }
  
  .ideas-cards .smaller-card p {
    padding: 5px 15px 15px;
    margin: 0;
  }
  
  .ideas-cta {
    margin-top: 1.5rem;
    text-align: center;
    margin-right: 0;
  }
  
  /* Ajuster les sections populaires et cette semaine */
  .events-popular,
  .this-week-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .events-popular h2,
  .events-popular p {
    padding-left: 10px;
  }
  
  .events-popular #popular-events-container {
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  
  .events-popular .vogue-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
  }
  
  .events-popular .vogue-item img {
    height: 180px;
    object-fit: cover;
    width: 100%;
  }
  
  .events-popular .vogue-item .event-info {
    padding: 10px;
  }
  
  .events-popular .vogue-item .event-location {
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffffff;
  }
  
  .events-popular .vogue-item .event-date {
    font-size: 0.8rem;
    color: #777;
  }
  
  .this-week-cards {
    gap: 0.3rem;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .this-week-card {
    width: 165px;         /* augmentation de 135px à 165px pour mobile */
    margin-right: 0.1rem;
  }
  
  .search-by-city h2,
  .this-week-section h2 {
    padding-left: 10px;
  }
  
  /* Réduire les tailles des villes */
  .search-by-city {
    padding-left: 0;
    padding-right: 0;
  }
  
  .cities-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    padding-left: 10px;
    padding-right: 10px;
    gap: 0.8rem;
  }
  
  .city-item {
    min-width: 100px;
  }
  
  .city-item img {
    width: 120px;
    height: 120px;
  }
  
  /* Réduire la taille du titre dans le footer */
  .footer-top h2 {
    font-size: 1rem;
  }
  
  /* Newsletter de bas de page */
  .footer-newsletter {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-newsletter input[type="email"],
  .footer-newsletter button {
    width: 100%;
    max-width: 300px;
  }
  
  /* Colonnes du footer */
  .footer-column {
    width: 100%;
    text-align: left;
  }
  
  .footer-column li {
    text-align: left;
  }
  
  /* Aligner à gauche les éléments du footer */
  .footer-top {
    text-align: left;
  }
  
  .footer-top h2,
  .footer-top p {
    text-align: left;
  }
  
  .footer-newsletter {
    justify-content: flex-start;
  }
  
  /* Ajustement des cards dans le carrousel */
  .categories-container .slick-center {
    transform: scale(1.1);
  }

  /* Custom calendar mobile responsive */
  .custom-calendar {
    min-width: 260px !important;
    max-width: 260px !important;
    width: 260px !important;
  }

  .quick-buttons {
    grid-template-columns: 1fr;
  }
}