/*
Theme Name: Bar Basque
Theme URI: https://example.com/bar-basque
Author: ChatGPT
Author URI: https://example.com
Description: Thème WordPress simple, réactif et entièrement éditable pour Le Bar Basque (bar festif, tapas & cocktails à Toulouse).
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bar-basque
*/

:root {
  --bb-red: #b71c1c;
  --bb-dark: #111111;
  --bb-bg: #faf4ef;
  --bb-white: #ffffff;
  --bb-max-width: 1200px;
  --bb-radius: 10px;
  --bb-font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bb-font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--bb-font-main);
  color: var(--bb-dark);
  /*background-color: #050505;*/
  line-height: 1.6;
}

a {
  color: var(--bb-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bb-container {
  max-width: var(--bb-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 45, 46, 0.5);
  backdrop-filter: blur(10px);
  color: var(--bb-white);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.site-title a {
  font-family: var(--bb-font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bb-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Menu */

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  color: var(--bb-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--bb-red);
}

.header-reserver {
  background-color: var(--bb-red);
  color: var(--bb-white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
}

.header-reserver:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background-color: var(--bb-white);
}

/* Hero */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: var(--bb-white);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(183, 28, 28, 0.65), transparent 50%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.01))
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 16px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #ffccbc;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--bb-font-title);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 12px 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-buttons {
  flex-wrap: wrap;
  gap: 12px;
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bb-btn-primary {
  background-color: var(--bb-red);
  color: var(--bb-white);
  border-color: var(--bb-red);
}

.bb-btn-secondary {
  background-color: transparent;
  color: var(--bb-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.bb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Sections */

.bb-section {
  padding: 70px 0;
  background-color: #2d2d2e;
  color: var(--bb-white);
}

.bb-section-alt {
  background-color: var(--bb-bg);
  color: var(--bb-dark);
}

.bb-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.bb-section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--bb-red);
  margin-bottom: 6px;
}

.bb-section-title {
  font-family: var(--bb-font-title);
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.bb-section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Esprit */

.esprit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.esprit-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.esprit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esprit-text h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.esprit-text p {
  margin-bottom: 12px;
}

/* Icon grid */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.icon-card {
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: var(--bb-radius);
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-section-alt .icon-card {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
}

.icon-emoji {
  font-size: 1.0rem;
  margin-bottom: 6px;
}

.icon-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.icon-text {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Incontournables cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Galerie */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  opacity: 0.9;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Réservation CTA */

.resa-cta {
  text-align: center;
}

.resa-cta p {
  margin-bottom: 20px;
}

/* Contact / accès */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 32px;
}

/* Footer */

.site-footer {
  background-color: #000000;
  color: #f5f5f5;
  padding: 32px 16px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 20px;
}

.footer-title {
  font-family: var(--bb-font-title);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.site-footer a {
  color: #f5f5f5;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--bb-red);
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 4px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Formulaires */

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: inherit;
  font-size: 0.95rem;
}

form textarea {
  min-height: 120px;
}

form button[type="submit"] {
  margin-top: 10px;
}

/* Layout page & single */

.page-wrapper,
.single-wrapper {
  padding: 40px 0;
}

.page-title,
.single-title {
  font-family: var(--bb-font-title);
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Responsive */

@media (max-width: 960px) {
  .esprit-grid,
  .cards-grid,
  .icon-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding-inline: 12px;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    padding: 12px 16px 16px;
    display: none;
  }

  .main-navigation.open {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 8px;
  }

  .burger {
    display: flex;
  }

  .header-reserver {
    display: none;
  }

  .esprit-grid,
  .cards-grid,
  .icon-grid,
  .contact-grid,
  .footer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .bb-section {
    padding: 50px 0;
  }

  .hero-inner {
    padding-top: 100px;
  }
}
