<link rel="preload" href="/wp-content/themes/ton-theme/fonts/SailorsCondensed.woff2" as="font" type="font/woff2" crossorigin>

/*
Theme Name: no-fee-stay v1
Description: Theme personnalisé pour réservation directe sans commission.
Version: 1.0.0
*/
/* ========== RESET & BASE ========== */

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding-top: 40px; /* Pour header fixe */
}
.site-content {
  margin-top: 80px;
}
/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 10000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
}
/* === STRUCTURE GLOBALE === */
.main-navigation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center; /* Centré en desktop */
  align-items: center;
  position: relative;
}
/* Menu normal */
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-menu li.menu-item a {
  text-decoration: none;
  color: #222;
  font-weight: 500; /* ❌ corrigé : pas en gras épais */
  font-size: 16px;
  transition: color 0.2s ease;
}
.nav-menu li.menu-item a:hover {
  color: #0073aa;
}
/* Burger caché par défaut */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 10001;
}
/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
  .main-navigation {
    justify-content: space-between;
  }
  .menu-toggle {
    display: block; /* ✅ Affiché uniquement en mobile */
    margin-left: 10px;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
  }
  .nav-menu.menu-open {
    transform: translateY(0);
  }
  .nav-menu li.menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  .nav-menu li ul.sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9990;
    display: none;
  }
  .menu-overlay.visible {
    display: block;
  }
}
/* ========== BOUTON RECHERCHE ========== */
.btn-search {
  background-color: #00CEE3;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.btn-search:hover {
  background-color: #00B8CB;
}

/* ===== Footer Styling ===== */
.site-footer {
  margin-top: 80px;         /* espace avant le footer */
  padding: 8px 0;          /* respiration haut/bas */
  text-align: center;       /* centré */
  background: #f9f9f9;      /* léger fond clair (optionnel) */
  border-top: 1px solid #eee; /* fine ligne séparatrice */
  color: #666;              /* gris doux pour le texte */
  font-size: 14px;          /* plus discret */
}
body {
  margin: 0;
  padding: 0;
}

.site-footer {
  margin-bottom: 0;   /* pas d'espace après */
  padding-bottom: 20px; /* juste un peu de respiration interne */
}

/* Structure pour sticky footer */
html, body {
  height: 100%;   /* occuper toute la hauteur */
  margin: 0;
}

.site-content {
  min-height: calc(100vh - 120px); /* espace dispo = hauteur écran - hauteur footer */
}

.site-footer {
  margin-top: 40px;  /* espace avant footer (à ajuster) */
}

.single-listing h1 {
  margin-top: 80px; /* espace au-dessus du titre */
}

/* Container global listings */
.single-listing .listing-main {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;   /* même largeur que le reste du site */
  margin: 0 auto;      /* centre */
  padding: 0 20px;     /* marges gauche/droite équilibrées */
  gap: 60px;           /* espace entre contenu et sidebar */
}

/* Contenu texte flexible */
.single-listing .listing-content {
  flex: 1;             /* prend tout l’espace dispo */
  min-width: 0;        /* évite débordements */
}

/* Sidebar moins large */
.single-listing .listing-sidebar {
  flex: 0 0 300px;     /* largeur fixe raisonnable */
  max-width: 320px;    /* limite max */
}


/* 1) Même gouttières partout : le container centre et gère les marges */
.listing-container{
  max-width:1050px;
  margin:40px auto;
}

/* 2) La galerie suit exactement la largeur du container (pas de re-centre double) */
.listing-gallery{
  margin:0 0 40px;     /* pas de margin-left/right:auto */
  padding:0;           /* pas de padding interne */
  max-width:none;      /* laisse le container décider */
}

/* 3) Surtout : on retire tout padding ajouté sur .listing-main qui casse l’alignement */
.listing-main{
  padding:0 !important;
}

@font-face {
  font-family: 'Sailors Condensed';
  src: url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/SailorsCondensed.woff2') format('woff2'),
       url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/SailorsCondensed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* === CTA Business en bleu === */
.nav-menu > li.menu-business > a {
  background: linear-gradient(45deg, #0073aa, #3399cc);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all .2s ease;
}

.nav-menu > li.menu-business > a:hover {
  background: linear-gradient(45deg, #005f8a, #2b88b3);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,115,170,.25);
}

.nav-menu > li.menu-business.current-menu-item > a,
.nav-menu > li.menu-business.current_page_item > a {
  color: #fff !important;
  background: linear-gradient(45deg, #0073aa, #3399cc);
}

.site-footer a {
  color: inherit;        /* prend la couleur du texte parent */
  text-decoration: none; /* enlève le soulignement */
}

.site-footer a:hover {
  text-decoration: underline; /* si tu veux un effet au survol */
}

