/* 
 * City Crêpe - Style Principal
 * Contient les variables CSS, styles de base et mise en page principale
 */

/* ====================================================
   VARIABLES
   ==================================================== */
   :root {
    /* Couleurs */
    --primary: #7B57B2;
    --primary-light: #9b7cc1;
    --turquoise: #4BBFBB;
    --turquoise-light: #7ad8d5;
    --white: #FFFFFF;
    --beige: #F5F0E6;
    --yellow: #FFC72C;
    --raspberry: #E63462;
    --chocolate: #3D2314;
    --gray: #666666;
    --light-gray: #f9f9f9;
    
    /* Espacement */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 2rem;    /* 32px */
    --spacing-lg: 3rem;    /* 48px */
    --spacing-xl: 5rem;    /* 80px */
    
    /* Bordures arrondies */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 999px;
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
  }
  
  /* ====================================================
     RESET ET STYLES DE BASE
     ==================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--beige);
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
  }
  
  h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
  }
  
  h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
  }
  
  h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--turquoise), var(--turquoise-light));
    border-radius: var(--radius-full);
  }
  
  h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }
  
  p {
    margin-bottom: var(--spacing-md);
  }
  
  a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-normal);
  }
  
  a:hover {
    color: var(--turquoise);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* ====================================================
     LAYOUT ET CONTENEURS
     ==================================================== */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
  }
  
  section {
    padding: var(--spacing-xl) 0;
    position: relative;
    text-align: center;
  }
  
  /* ====================================================
     CLASSES UTILITAIRES
     ==================================================== */
  .text-center {
    text-align: center;
  }
  
  .subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
  }
  
  .cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
  }
  
  .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--white);
  }
  
  .compose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--turquoise);
    color: white;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
  }
  
  .compose-btn:hover {
    background: var(--turquoise-light);
    transform: scale(1.03);
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  /* ====================================================
     HEADER
     ==================================================== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .logo {
    width: 90px;
    transition: transform 0.3s ease;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  .nav-menu {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .nav-menu li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    transition: var(--transition-normal);
  }
  
  .nav-menu li a:hover {
    color: var(--turquoise);
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* ====================================================
     HERO SECTION
     ==================================================== */
  .hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(123, 87, 178, 0.7), rgba(123, 87, 178, 0.9)), url('../assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 76px; /* Hauteur du header */
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    color: var(--white);
    max-width: 800px;
    padding: var(--spacing-md);
    position: relative;
    z-index: 2;
  }
  
  .hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .hero-section .subtitle {
    color: var(--beige);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
  }
  
  /* Effet de pluie de sucre */
  .sugar-rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  
  /* ====================================================
     MENU SECTION
     ==================================================== */
  .menu-section {
    background-color: var(--white);
    text-align: center;
  }
  
  .menu-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--white);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
  }
  
  .filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
  }
  
  .filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
  }
  
  .menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .menu-item {
    background-color: var(--beige);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: rotate(-2deg);
    transition: var(--transition-normal);
    position: relative;
  }
  
  .menu-item:nth-child(even) {
    transform: rotate(2deg);
  }
  
  .menu-item:hover {
    transform: rotate(0) translateY(-10px);
    box-shadow: var(--shadow-lg);
  }
  
  .menu-item-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
  }
  
  .menu-item:hover .menu-item-image img {
    transform: scale(1.1);
  }
  
  .menu-item-content {
    padding: var(--spacing-md);
    text-align: center;
  }
  
  .menu-item-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .menu-item-price {
    color: var(--raspberry);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .menu-item-description {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--turquoise);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    transform: rotate(5deg);
    z-index: 1;
  }
  
  /* ====================================================
     TESTIMONIALS SECTION
     ==================================================== */
/* Styles pour la section témoignages avec nom à côté de l'image */

.testimonials-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.testimonials-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #7B57B2;
  position: relative;
  display: block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  animation: float 8s ease-in-out infinite;
  position: relative;
}

/* Animation différente pour chaque carte */
.testimonial-card:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 1s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(0.5deg);
  }
  50% {
    transform: translateY(0px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(10px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.testimonial-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.testimonial-content {
  padding: 20px;
}

/* Nouveau style pour l'en-tête du témoignage avec profil et nom côte à côte */
.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Conteneur pour l'image et les infos auteur */
.author-profile {
  display: flex;
  align-items: center;
}

.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.author-image svg {
  width: 100%;
  height: 100%;
}

.author-info {
  /* Styles ajustés pour s'afficher correctement à côté de l'image */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-name {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.2;
}

.review-date {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.review-source {
  margin-left: auto;
}

.rating {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.stars {
  display: flex;
}

.star {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

.star:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z' fill='%23D8D8D8'/%3E%3C/svg%3E");
  background-size: contain;
}

.star.filled:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z' fill='%23FFC107'/%3E%3C/svg%3E");
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Ajout d'un effet de profondeur en arrière-plan */
.testimonials-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(123, 87, 178, 0.1) 0%, rgba(123, 87, 178, 0) 70%);
  z-index: 1;
}

/* Media queries pour la responsivité */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-section h2 {
    font-size: 1.75rem;
  }
  
  .testimonial-card {
    animation: none; /* Désactiver l'animation sur mobile */
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 480px) {
  .testimonial-content {
    padding: 15px;
  }
  
  .author-image {
    width: 35px;
    height: 35px;
  }
  
  .author-name {
    font-size: 0.9rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
}
  
  /* ====================================================
     ABOUT SECTION
     ==================================================== */
 /* Styles modifiés pour la section About avec image redimensionnée */

.about-section {
  background-color: var(--beige);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 0.8; /* Réduit par rapport au texte */
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: 15px 15px 0 var(--turquoise-light);
  max-width: 90%; /* Réduit de 90% à 70% */
  height: auto;
  object-fit: cover;
  display: block;
}

.about-text {
  flex: 1.2; /* Augmenté par rapport à l'image */
  text-align: left;
}

.about-text p:first-child::first-letter {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  float: left;
  line-height: 0.8;
  margin-right: 8px;
}

/* Version tablette */
@media screen and (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .about-image, .about-text {
    flex: none;
    width: 100%;
  }
  
  .about-image {
    margin-bottom: var(--spacing-md);
  }
  
  .about-image img {
    max-width: 60%; /* Encore plus petit sur tablette */
    margin: 0 auto;
  }
}

/* Version mobile */
@media screen and (max-width: 768px) {
  .about-section {
    padding: var(--spacing-lg) 0;
  }
  
  .about-image img {
    max-width: 50%; /* Encore plus petit sur mobile */
    box-shadow: 10px 10px 0 var(--turquoise-light); /* Ombre réduite */
  }
  
  .about-text p:first-child::first-letter {
    font-size: 2.5rem; /* Lettre capitale légèrement plus petite */
  }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
  .about-image img {
    max-width: 70%; /* Un peu plus large sur très petits écrans pour la lisibilité */
    box-shadow: 8px 8px 0 var(--turquoise-light); /* Ombre encore plus réduite */
  }
}
  
  /* ====================================================
     GALLERY SECTION
     ==================================================== */
  .gallery-section {
    background-color: var(--white);
    text-align: center;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transform: rotate(-3deg);
    transition: var(--transition-normal);
    height: 250px;
    width: 100%;
  }
  
  .gallery-item:nth-child(even) {
    transform: rotate(3deg);
  }
  
  .gallery-item:hover {
    transform: rotate(0) scale(1.05);
    z-index: 1;
    box-shadow: var(--shadow-md);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item:hover .gallery-caption {
    opacity: 1;
  }
  
  /* ====================================================
     FOOTER
     ==================================================== */
  .city-crepe-footer {
    position: relative;
    font-family: 'Open Sans', sans-serif;
    padding: 0 0 20px;
    color: var(--white);
    background: linear-gradient(to bottom, var(--primary), #9e6fde);
  }
  
  .footer-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 0;
  }
  
  .footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: var(--white);
    margin: 0 0 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
  
  .footer-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--white);
  }
  
  .footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    margin: 0 0 15px;
    text-transform: uppercase;
  }
  
  .contact-title, .hours-title, .social-title {
    margin-top: 25px;
  }
  
  .footer-address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--white);
  }
  
  .footer-email {
    color: var(--turquoise);
    margin-bottom: 5px;
  }
  
  .footer-phone,
  .footer-hours {
    margin: 0 0 5px 0;
    color: var(--white);
  }
  
  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-nav li {
    margin-bottom: 10px;
  }
  
  .footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-normal);
  }
  
  .footer-nav a:hover {
    color: var(--turquoise);
  }
  
  .footer-form .form-group {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding: 5px 0;
    position: relative;
  }
  
  .footer-form .form-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    padding: 5px;
  }
  
  .footer-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .footer-form .form-group .submit-arrow {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .footer-form .form-group .submit-arrow:hover {
    color: var(--turquoise);
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
  }
  
  .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 50%;
    transition: transform 0.3s ease;
  }
  
  .social-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: filter 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.1);
  }
  
  .social-icon:hover img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(100%) saturate(5000%) hue-rotate(180deg) brightness(100%) contrast(95%);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: var(--white);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-lg);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
 /* 
 * Correctifs pour City Crêpe - Ajouter à style.css
 * Ces styles fixent le problème de disparition des éléments au hover
 */

/* Corrections pour les éléments du menu */
.menu-section {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.menu-items {
  position: relative;
  z-index: 1;
}

/* Styles de base pour les éléments du menu */
.menu-item {
  transform: none;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  perspective: 1000px;
  will-change: transform;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Utilisez des classes au lieu de sélecteurs nth-child */
.menu-item.menu-item-odd {
  transform: rotate(-2deg);
}

.menu-item.menu-item-even {
  transform: rotate(2deg);
}

/* Effet de hover amélioré */
.menu-item:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
  z-index: 3;
}

/* Effet d'image animée */
.menu-item-image {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.menu-item-image img {
  transition: transform 0.5s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Contenu de la carte */
.menu-item-content {
  position: relative;
  z-index: 2;
  background-color: var(--beige);
  padding: var(--spacing-md);
  text-align: center;
}

/* Badge "Nouveau" */
.badge {
  z-index: 4;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
  .menu-item,
  .menu-item.menu-item-odd,
  .menu-item.menu-item-even {
    transform: none !important;
  }
  
  .menu-item:hover {
    transform: translateY(-5px) !important;
  }
}