/* Style principal pour Casa Del Pizza - Refonte */

/* Variables CSS pour la cohérence des couleurs */
:root {
  --primary-color: #e30613; /* Rouge Casa Del Pizza */
  --secondary-color: #000000; /* Noir */
  --accent-color: #ffcc00; /* Jaune accent */
  --text-light: #ffffff; /* Texte clair */
  --text-dark: #333333; /* Texte foncé */
  --background-light: #f5f5f5; /* Fond clair */
  --background-dark: #1a1a1a; /* Fond sombre */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre standard */
}

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

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

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-light);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  color: var(--text-light);
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: transparent;
  color: var(--text-light);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--background-light);
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specialties Section */
.specialties {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 5rem 0;
}

.specialties h2 {
  color: var(--text-light);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.specialty-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-10px);
}

.specialty-image {
  height: 200px;
  overflow: hidden;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-image img {
  transform: scale(1.1);
}

.specialty-content {
  padding: 1.5rem;
}

.specialty-content h3 {
  color: var(--text-light);
}

.specialty-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 0.5rem;
}

/* Location Section */
.location {
  padding: 5rem 0;
}

.location-content {
  display: flex;
  gap: 3rem;
}

.location-info {
  flex: 1;
}

.location-map {
  flex: 1;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.hours-list {
  list-style: none;
}

.hours-list li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 5rem 0;
}

.testimonials h2 {
  color: var(--text-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  color: var(--text-light);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.rating {
  color: var(--accent-color);
  margin-top: 0.5rem;
}

/* Menu Page */
.menu-section {
  padding: 5rem 0;
}

.menu-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.menu-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.menu-category {
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  background-color: var(--background-light);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-category.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.menu-item {
  background-color: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item-image {
  height: 200px;
  overflow: hidden;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.menu-item-content {
  padding: 1.5rem;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.menu-item-title {
  margin: 0;
  font-size: 1.2rem;
}

.menu-item-price {
  font-weight: 700;
  color: var(--primary-color);
}

.menu-item-ingredients {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Gallery Page */
.gallery-section {
  padding: 5rem 0;
}

.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Reviews Page */
.reviews-section {
  padding: 5rem 0;
}

.reviews-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.reviews-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.average-rating {
  text-align: center;
  margin-right: 3rem;
}

.average-rating .rating {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.rating-stars {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.total-reviews {
  font-size: 0.9rem;
  opacity: 0.7;
}

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

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.contact-content {
  display: flex;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-map {
  flex: 1;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.delivery-info {
  margin-top: 3rem;
}

.delivery-zones {
  margin-top: 1rem;
}

.delivery-zone {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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

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

.bg-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.bg-dark {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.card {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-dark {
  background-color: var(--background-dark);
  color: var(--text-light);
}
