
/* Base styles */
:root {
  --cream: #f3e7d2;
  --sand: #dab47b;
  --darkbrown: #4f371c;
  --caramel: #935f2d;
  --white: #ffffff;
  --black: #000000;
  --transparent-black: rgba(0, 0, 0, 0.7);
  --transparent-white: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
  color: var(--darkbrown);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

img {
  margin-top: 35px;
  margin-bottom: 5px;
  min-width: 350px;
  min-height: 350px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 1rem;
}

/* Utility classes */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

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

.bg-cream {
  background-color: var(--cream);
}

.bg-cream-light {
  background-color: rgba(243, 231, 210, 0.7);
}

.bg-gradient {
  background-image: linear-gradient(to bottom, var(--cream), rgba(218, 180, 123, 0.1));
}

.bg-gradient-dark {
  background-image: linear-gradient(to bottom, var(--darkbrown), var(--caramel));
  color: var(--white);
}

.text-sand {
  color: var(--sand);
}

.hidden {
  display: none;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--caramel);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: rgba(147, 95, 45, 0.8);
  transform: translateY(-2px);
}

.btn-form {
  width: 100%;
  background-color: var(--sand);
  color: var(--darkbrown);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-form:hover {
  background-color: rgba(218, 180, 123, 0.8);
  transform: translateY(-2px);
}

/* Navigation */
nav {
  transition: var(--transition);
}

nav.scrolled {
  background-color: rgba(243, 231, 210, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--sand);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.desktop-menu {
  display: none;
  justify-self: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  background-color: rgba(243, 231, 210, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow);
}

.mobile-link {
  display: block;
  padding: 0.5rem;
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--caramel);
}

.menu-icon, .close-icon {
  color: var(--white);
  transition: var(--transition);
}

nav.scrolled .menu-icon,
nav.scrolled .close-icon {
  color: var(--darkbrown);
}

nav.scrolled .logo-text {
  color: var(--caramel);
}

/* Hero section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to bottom, rgba(79, 55, 28, 0.7), rgba(79, 55, 28, 0.8)), url("src/assets/Sans\ titre-5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  padding: 1rem;
}

.hero-logo {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInDown 0.6s forwards;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
    margin-top: -90px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-top: -10px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.6s 0.4s forwards;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.hero-card {
  background-color: rgba(79, 55, 28, 0.4);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(218, 180, 123, 0.3);
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 0.5s 0.6s forwards;
}

.hero-card:hover {
  border-color: rgba(218, 180, 123, 0.6);
  transform: translateY(-8px);
}

.hero-card:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-card:nth-child(3) {
  animation-delay: 1s;
}

.hero-card-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(218, 180, 123, 0.2);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-icon svg {
  color: var(--sand);
}

.hero-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--sand);
}

.hero-card-text {
  color: var(--cream);
}

.hero-button-container {
  opacity: 0;
  animation: fadeIn 0.6s 1.2s forwards;
  margin-bottom: 25px;
}

/* Section styles */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-divider {
  width: 6rem;
  height: 4px;
  background-color: var(--sand);
  margin: 0 auto;
}

.section-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(79, 55, 28, 0.8);
}

/* Concept section */
.concept-features {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.concept-feature {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.concept-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--caramel);
}

.feature-description {
  color: rgba(79, 55, 28, 0.8);
  line-height: 1.7;
}

/* Menu section */
.menu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.menu-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
  border-top: 4px solid var(--caramel);
}

.menu-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-card:nth-child(2) {
  border-top-color: var(--sand);
}

.menu-card:nth-child(3) {
  border-top-color: var(--darkbrown);
}

.menu-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(147, 95, 45, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.menu-icon svg {
  color: var(--caramel);
}

.menu-icon-coffee {
  background-color: rgba(218, 180, 123, 0.1);
}

.menu-icon-coffee svg {
  color: var(--sand);
}

.menu-icon-plank {
  background-color: rgba(79, 55, 28, 0.1);
}

.menu-icon-plank svg {
  color: var(--darkbrown);
}

.menu-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--caramel);
}

.menu-title-coffee {
  color: var(--sand);
}

.menu-title-plank {
  color: var(--darkbrown);
}

.menu-items {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-item-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(218, 180, 123, 0.3);
  padding-bottom: 0.5rem;
  font-weight: 500;
}

.menu-item-title::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--sand);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.menu-item-desc {
  padding-left: 1rem;
  color: rgba(79, 55, 28, 0.8);
}

.drinks-items {
  gap: 0.75rem;
}

.drink-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(218, 180, 123, 0.2);
  transition: var(--transition);
}

.drink-item:hover {
  border-bottom-color: rgba(218, 180, 123, 0.4);
}

.menu-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  color: var(--caramel);
}

/* Gallery section */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.7s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--transparent-black);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.gallery-overlay p {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  transform: translateY(1rem);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info, .contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card, .services-card, .opening-card, .contact-form-card, .directions-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--sand);
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(0.25rem);
}

.contact-icon svg {
  color: var(--sand);
  margin-top: 25px;
  margin-right: 25px;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: center;
  background-color: rgba(218, 180, 123, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-item:hover {
  background-color: rgba(218, 180, 123, 0.2);
}

.service-item svg {
  margin-right: 0.75rem;
  color: var(--sand);
}

.contact-form-card {
  background-color: rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(218, 180, 123, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sand);
}

.map-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.opening-card, .directions-card {
  background-color: rgba(147, 95, 45, 0.4);
}

.opening-card h4, .directions-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

/* Footer */
.footer {
  background-image: linear-gradient(to bottom, rgba(147, 95, 45, 0.9), var(--darkbrown));
  color: var(--cream);
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-logo img {
  height: 5rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sand);
}

.footer-description {
  margin-top: 1rem;
  max-width: 20rem;
}

.footer-contact h4, .footer-links h4 {
  font-size: 1.25rem;
  color: var(--sand);
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-contact-item:hover {
  transform: translateX(0.25rem);
}

.footer-contact-item svg {
  margin-right: 0.5rem;
  color: var(--sand);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(218, 180, 123, 0.2);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: rgba(218, 180, 123, 0.3);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: var(--sand);
}

.footer-menu a::before {
  content: '';
  display: inline-block;
  height: 2px;
  width: 0.75rem;
  background-color: rgba(218, 180, 123, 0.5);
  margin-right: 0.5rem;
}

.copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(243, 231, 210, 0.2);
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { 
    opacity: 0;
    transform: translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries */
@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    gap: 1.5rem;
  }
  
  .mobile-menu-button {
    display: none;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .concept-feature {
    flex-direction: row;
  }

  .concept-image {
    width: 50%;
  }

  .concept-text {
    width: 50%;
  }

  .menu-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .concept-feature:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* Helper classes for alignment */
.md-flex {
  display: flex;
}

.md-flex-row {
  flex-direction: row;
}

.md-h-14 {
  height: 3.5rem;
}

.md-mb-0 {
  margin-bottom: 0;
}

.md-mr-4 {
  margin-right: 1rem;
}

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

.md-h-40 {
  height: 10rem;
}

.md-hidden {
  display: none;
}

.md-inline-block {
  display: inline-block;
}

@media (max-width: 767px) {
  .md-flex, .md-flex-row, .md-mb-0, .md-mr-4, .md-text-left, .md-h-14, 
  .md-h-40, .md-inline-block {
    /* These helpers only apply on md screens and up */
  }
  
  .sm-inline-block {
    display: none;
  }
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }
  
  .md-flex-row {
    flex-direction: row;
  }
  
  .md-mb-0 {
    margin-bottom: 0;
  }
  
  .md-mr-4 {
    margin-right: 1rem;
  }
  
  .md-text-left {
    text-align: left;
  }
  
  .md-h-14 {
    height: 3.5rem;
  }
  
  .md-h-40 {
    height: 10rem;
  }
  
  .md-hidden {
    display: none;
  }
  
  .md-inline-block {
    display: inline-block;
  }
}
.menu-item-header {
  display: flex;
  justify-content: space-between; /* Sépare titre et prix */
  align-items: center;
  gap: 40px; /* Espace visuel entre titre et prix */
}

.menu-price {
  font-weight: bold;
  font-size: 1.1em;
  margin-left: 20px; /* Petit décalage du prix */
  white-space: nowrap; /* Évite le retour à la ligne */
}
