/* 
 * City Crêpe - Styles Responsive
 * Contient les adaptations pour différentes tailles d'écran
 */

/* ====================================================
   TABLETTES (max-width: 992px)
   ==================================================== */
   @media screen and (max-width: 992px) {
    /* Tailles de police */
    h1 {
      font-size: 2.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .subtitle {
      font-size: 1.3rem;
    }
    
    /* Header & Navigation */
    .nav-menu {
      gap: var(--spacing-sm);
    }
    
    .nav-menu li a {
      font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero-section {
      min-height: 500px;
    }
    
    .hero-section h1 {
      font-size: 3rem;
    }
    
    .hero-section .subtitle {
      font-size: 1.7rem;
    }
    
    /* Menu section */
    .menu-items {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* About section */
    .about-content {
      flex-direction: column;
    }
    
    .about-image, .about-text {
      flex: none;
      width: 100%;
    }
    
    .about-image {
      margin-bottom: var(--spacing-lg);
    }
    
    /* Gallery section */
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Testimonials section */
    .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
      grid-template-columns: 1fr 1fr;
      grid-template-areas:
        "brand info"
        "links connect";
    }
    
    .brand-col {
      grid-area: brand;
    }
    
    .info-col {
      grid-area: info;
    }
    
    .links-col {
      grid-area: links;
    }
    
    .connect-col {
      grid-area: connect;
    }
  }
  
  /* ====================================================
     MOBILES (max-width: 768px)
     ==================================================== */
  @media screen and (max-width: 768px) {
    /* Espacement */
    section {
      padding: var(--spacing-lg) 0;
    }
    
    .container {
      width: 95%;
      padding: var(--spacing-md) 0;
    }
    
    /* Tailles de police */
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.8rem;
    }
    
    h3 {
      font-size: 1.3rem;
    }
    
    .subtitle {
      font-size: 1.2rem;
    }
    
    /* Header & Navigation */
    .header-content {
      padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .logo {
      width: 100px;
    }
    
    .nav-menu {
      position: fixed;
      top: 76px;
      left: 0;
      width: 100%;
      flex-direction: column;
      gap: 0;
      background-color: var(--white);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
    }
    
    .nav-menu.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }
    
    .nav-menu li {
      width: 100%;
      text-align: center;
      border-bottom: 1px solid rgba(123, 87, 178, 0.1);
    }
    
    .nav-menu li a {
      display: block;
      padding: var(--spacing-sm);
    }
    
    .menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 22px;
      background: none;
      border: none;
      cursor: pointer;
      position: relative;
      z-index: 1000;
    }
    
    .menu-toggle span {
      display: block;
      width: 100%;
      height: 3px;
      background-color: var(--primary);
      border-radius: var(--radius-full);
      transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
      transform: translateY(9.5px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
      transform: translateY(-9.5px) rotate(-45deg);
    }
    
    /* Hero section */
    .hero-section {
      min-height: 450px;
      margin-top: 60px; /* Hauteur du header en mobile */
    }
    
    .hero-section h1 {
      font-size: 2.2rem;
      margin-bottom: var(--spacing-sm);
    }
    
    .hero-section .subtitle {
      font-size: 1.5rem;
      margin-bottom: var(--spacing-md);
    }
    
    /* Menu section */
    .menu-filter {
      flex-wrap: wrap;
    }
    
    .filter-btn {
      flex: 1 0 40%;
      margin-bottom: var(--spacing-xs);
    }
    
    .menu-items {
      grid-template-columns: 1fr;
    }
    
    /* Testimonials section */
    .testimonials-grid {
      grid-template-columns: 1fr;
    }
    
    .testimonial-card {
      animation: none; /* Désactiver l'animation sur mobile */
    }
    
    .testimonial-card:hover {
      transform: translateY(-5px);
    }
    
    /* Form elements */
    .form-group input, .form-group textarea {
      padding: 12px;
    }
    
    .cta-button {
      padding: 12px 20px;
      font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
      grid-template-columns: 1fr;
      grid-template-areas:
        "brand"
        "info"
        "links"
        "connect";
      gap: 20px;
    }
  }
  
  /* ====================================================
     PETITS MOBILES (max-width: 480px)
     ==================================================== */
  @media screen and (max-width: 480px) {
    /* Tailles de police */
    h1 {
      font-size: 1.8rem;
    }
    
    h2 {
      font-size: 1.5rem;
    }
    
    h2:after {
      width: 60px;
      height: 4px;
    }
    
    .subtitle {
      font-size: 1.1rem;
    }
    
    /* Menu section */
    .filter-btn {
      flex: 1 0 100%;
      margin-bottom: var(--spacing-xs);
      font-size: 0.9rem;
      padding: 8px 16px;
    }
    
    /* Testimonials section */
    .testimonial-content {
      padding: 15px;
    }
    
    .author-image {
      width: 35px;
      height: 35px;
    }
    
    .author-name {
      font-size: 0.9rem;
    }
    
    .testimonial-text {
      font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
      width: 90%;
    }
    
    .footer-logo {
      font-size: 22px;
    }
    
    .footer-title {
      font-size: 12px;
    }
  }
  
  /* ====================================================
     ÉCRANS TRÈS COURTS (max-height: 600px)
     ==================================================== */
  @media screen and (max-height: 600px) {
    .hero-section {
      min-height: 400px;
    }
    
    .hero-section h1 {
      font-size: 2rem;
    }
    
    .hero-section .subtitle {
      font-size: 1.3rem;
    }
  }
  
  /* ====================================================
     STYLES POUR L'IMPRESSION
     ==================================================== */
  @media print {
    header, footer, .hero-section, .testimonials-section, .gallery-section {
      display: none;
    }
    
    .menu-section {
      padding: 0;
    }
    
    .menu-filter {
      display: none;
    }
    
    .menu-items {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    
    .menu-item {
      transform: none !important;
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    .menu-item-image {
      height: 120px;
    }
    
    .menu-item-content {
      padding: 10px;
    }
    
    body, .container {
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    h2 {
      font-size: 18pt;
      margin-bottom: 10pt;
    }
    
    h2:after {
      display: none;
    }
    
    .compose-btn {
      display: none;
    }
  }