/* ===== Reset simple ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  display: flex;
  flex-direction: column;
}

/* ===== Animations de base ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero (haut de page) ===== */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: white;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.hero p {
  font-size: 1rem;
  opacity: 0.95;
}

/* ===== Grille de CTA ===== */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px 16px 30px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  animation: fade-up 0.5s ease-out both;
}

@media (min-width: 640px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cta-item {
  background: white;
  padding: 18px 16px;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  text-align: left;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

/* Petit badge rond devant le texte */
.cta-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #38bdf8;
}

/* Variantes colorées par service */
.cta-item.flights::before { background: #0ea5e9; }
.cta-item.hotels::before  { background: #f97316; }
.cta-item.cars::before    { background: #22c55e; }
.cta-item.activities::before { background: #a855f7; }

.cta-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  border-color: #93c5fd;
  background: #f9fafb;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 18px 10px 22px;
  margin-top: auto;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: white;
}

footer a {
  color: #2563eb;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* === Layout général === */
.layout {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 16px 40px;
}

/* === Sections dashboard === */
.section { margin-top: 40px; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 18px;
}

/* === Grille de cartes (dashboard) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  border-color: #2563eb;
}

.card h3 {
  font-size: 1.1rem;
  margin: 8px 0 6px;
}

.card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 4px;
}

/* Tags des cartes */
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-tag-fr   { background: #eff6ff; color: #1d4ed8; }
.card-tag-ma   { background: #fef3c7; color: #c2410c; }
.card-tag-blog { background: #ecfdf3; color: #15803d; }
.card-tag-idea { background: #f5f3ff; color: #6d28d9; }

.card-empty {
  opacity: 0.85;
  border-style: dashed;
}

/* === Zone partenaires === */
.section-partners { margin-top: 40px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

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

.partner-btn {
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.partner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
  filter: brightness(1.03);
}

.section-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}
/* ===== Cartes image haut ===== */
.card-image-top {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image-top:hover .card-image-container img {
  transform: scale(1.05);
}

.card-image-container .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card-content {
  padding: 20px;
}

/* ===== Header global (injecté) ===== */
.rf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.rf-header__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.rf-brand {
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
}

.rf-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rf-nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.9;
}

.rf-nav a:hover {
  text-decoration: underline;
}

.rf-aff {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rf-aff__btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rf-aff__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

/* ===== Bloc recherche + grille multi-affiliés ===== */
.rf-search {
  max-width: 900px;
  margin: 10px auto 0;
  padding: 0 16px 10px;
  animation: fade-up 0.5s ease-out both;
}

.rf-search h2 {
  font-size: 1.2rem;
  margin: 8px 0 10px;
}

.rf-search__form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.rf-search__form input,
.rf-search__form button {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0 12px;
  font-size: 0.95rem;
}

.rf-search__form input[type="text"] {
  letter-spacing: 0.02em;
}

.rf-search__form button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

@media (max-width: 980px) {
  .rf-search__form {
    grid-template-columns: 1fr 1fr;
  }
  .rf-search__form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rf-search__form {
    grid-template-columns: 1fr;
  }
  .rf-search__form button {
    grid-column: auto;
  }
}

.rf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.rf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.rf-modal__box {
  position: relative;
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
}

.rf-modal__box h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.rf-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.rf-modal__list li {
  margin-bottom: 6px;
}

.rf-modal__list button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.rf-modal__list button:hover {
  background: #f3f4f6;
}

.rf-modal__close {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}

/* Ajout Autocomplete fix (résistance aux conflits JS) */
.rf-ac__list,
.rf-iata-list,
.rf-suggest,
.autocomplete-list {
  position: absolute !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.rf-search__form {
  overflow: visible !important;
}

/* Autocomplete - style épuré */
.rf-ac__item {
  background: transparent !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.rf-ac__item:hover,
.rf-ac__item.is-active {
  background: #f3f4f6 !important;
}

.rf-ac__code {
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  color: #111827 !important;
  min-width: 46px !important;
}

.rf-ac__name {
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: #111827 !important;
}

.rf-ac__meta {
  font-size: 0.78rem !important;
  color: #6b7280 !important;
}

.rf-search {
  position: relative;
  z-index: 50;
}

.cta-grid,
.section,
.card-grid {
  position: relative;
  z-index: 1;
}

.destination-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 15px;
  margin-bottom: 30px;
}

.destination-thumb {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .destination-block {
    flex-direction: column;
  }

  .destination-thumb {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* ===== Styles pour le HEADER DE RECHERCHE (search-header.html) ===== */
.rf-search-header {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.rf-search-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Onglets */
.rf-search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rf-search-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rf-search-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.rf-search-tab.active {
  background: white;
  color: #1e40af;
  border-color: white;
}

.tab-icon {
  font-size: 1.2rem;
}

/* Formulaires */
.rf-search-forms {
  position: relative;
}

.rf-search-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.rf-search-form.active {
  display: block;
}

.form-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.input-group {
  flex: 1;
  min-width: 180px;
}

.input-group.full-width {
  flex: 2;
  min-width: 300px;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: #333;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.rf-search-submit {
  padding: 0.75rem 2rem;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 50px;
}

.rf-search-submit:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rf-search-tip {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .form-fields {
    flex-direction: column;
  }

  .input-group,
  .input-group.full-width {
    min-width: 100%;
  }

  .rf-search-submit {
    width: 100%;
    justify-content: center;
  }

  .rf-search-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Suppression des doublons - NE PAS COPIER CE QUI SUIT */
/*
.rf-search-header (dupliqué)
.rf-search-type (ancien, remplacé par .rf-search-tabs)
.search-type-btn (ancien, remplacé par .rf-search-tab)
.rf-search-header .rf-search (ancien, inutile maintenant)
.rf-search-header .section-note (ancien, inutile maintenant)
.rf-search-header select (déjà inclus dans .input-group select)
*/
.logo-header {
    width: 70px;        /* Largeur fixe */
    height: 70px;       /* Hauteur fixe */
    vertical-align: middle; /* Aligne avec le texte */
    margin-right: 20px; /* Espace entre logo et texte */
    object-fit: contain; /* Garde les proportions */
}

/* Pour centrer proprement le h1 avec le logo */
.hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Remplace margin-right du logo */
}
/* ===== BOUTON MENU PERCUTANT ===== */
.rf-menu-button {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    margin-left: auto;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.rf-menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rf-menu-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

.rf-menu-button:hover::before {
    opacity: 1;
}

.rf-menu-button:active {
    transform: translateY(-1px) scale(1.02);
}

.menu-icon {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.menu-text {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-badge {
    font-size: 1rem;
    animation: sparkle 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Pour l'alignement */
.rf-search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .rf-menu-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .menu-icon {
        font-size: 1.1rem;
    }
}
.logo-circle {
  border-radius: 50%;
  overflow: hidden;
  width: 150px;
  height: 150px;
  border: 3px solid #3b82f6;
  padding: 5px;
  background: white;
}
/* Ajoutez à la fin de votre fichier CSS */
.card-placeholder {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.card-placeholder:hover {
  opacity: 1;
}

.placeholder-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  border-radius: 8px 8px 0 0;
}

.rf-site-alert {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px 20px;
  margin-top: 20px;
  background-color: #fff3cd;
  color: #856404;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #ffeeba;
  border-radius: 8px;
}

@keyframes rf-clignoter {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
