/* ============================================
   PARIS BACHATA SCHOOL - Styles Responsive
   ============================================ */

/* === TABLETTE LARGE (max 1024px) === */
@media screen and (max-width: 1024px) {
  :root {
    --spacing-xl: 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .story-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-list {
    gap: var(--spacing-xs);
  }

  .nav-link {
    padding: var(--spacing-xs);
    font-size: 0.875rem;
  }
}

/* === TABLETTE (max 900px) === */
@media screen and (max-width: 900px) {
  /* Navigation - passer en menu burger */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: var(--spacing-sm);
    font-size: 1.125rem;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    font-size: 1.125rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Team Flip Cards - passer en 1 colonne */
  .team-flip-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .team-flip-card {
    height: auto;
    min-height: 480px;
  }

  .team-flip-inner,
  .team-flip-front,
  .team-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 480px;
  }

  .team-flip-image {
    width: 250px;
    height: 250px;
  }

  .team-flip-bio {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .team-flip-back {
    overflow-y: auto;
    justify-content: center;
    padding: var(--spacing-sm);
  }

  .team-flip-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
  }
}

/* === MOBILE LARGE (max 768px) === */
@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Cacher la flip card hero sur mobile */
  .hero-image {
    display: none;
  }

  /* Afficher le bouton démo sur mobile */
  .hero-demo-btn {
    display: inline-flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Grids */
  .features-grid,
  .pricing-grid,
  .team-grid,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  /* Story */
  .story-timeline {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  /* Planning */
  .planning-days-row,
  .planning-table {
    grid-template-columns: 55px repeat(3, 1fr);
    gap: 6px;
  }

  .planning-day-pill {
    font-size: 0.85rem;
    padding: 6px 8px;
  }

  .planning-time-pill {
    font-size: 0.7rem;
    padding: 6px 4px;
  }

  .course-block {
    padding: 5px 6px;
  }

  .course-block .course-time {
    font-size: 0.7rem;
  }

  .course-block .course-name {
    font-size: 0.75rem;
  }

  .course-block .course-location {
    font-size: 0.6rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  /* CTA Section - double padding XL en mobile */
  .cta-section {
    padding: calc(var(--spacing-xl) * 2) var(--spacing-md);
  }

  /* Carousel */
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .testimonial-text {
    font-size: 1.125rem;
  }

  /* Pricing */
  .pricing-card.featured::before {
    font-size: 0.75rem;
    padding: 4px 35px;
    top: 15px;
    right: -35px;
  }

  /* Boutons Acheter des cartes - 80% largeur en mobile */
  .pricing-footer .btn {
    width: 80% !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }

  /* Level cards */
  .level-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .level-number {
    margin: 0 auto var(--spacing-sm);
  }

  /* Inscription tabs */
  .inscription-tabs .tabs-nav {
    grid-template-columns: 1fr;
  }

  .inscription-tabs .tab-btn {
    padding: var(--spacing-md);
  }

  .tab-icon {
    font-size: 2rem;
  }

  .tarifs-grid-mini {
    justify-content: center;
  }

  /* Team Flip Cards - image un peu plus petite */
  .team-flip-image {
    width: 220px;
    height: 220px;
  }
}

/* === MOBILE (max 480px) === */
@media screen and (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
  }

  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Header */
  .header-container {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* Hero */
  .hero-tagline {
    font-size: 0.875rem;
  }

  /* Buttons */
  .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
  }

  /* Cards */
  .card-content,
  .location-content {
    padding: var(--spacing-sm);
  }

  /* Features */
  .feature-card {
    padding: var(--spacing-md);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Story */
  .story-timeline {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--spacing-md);
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-text::before {
    font-size: 2rem;
  }

  /* Team Flip Cards */
  .team-flip-grid {
    max-width: 100%;
  }

  .team-flip-card {
    min-height: 420px;
  }

  .team-flip-inner,
  .team-flip-front,
  .team-flip-back {
    min-height: 420px;
  }

  .team-flip-image {
    width: 200px;
    height: 200px;
  }

  .team-flip-name {
    font-size: 1.1rem;
  }

  .team-flip-bio {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .team-flip-back {
    padding: var(--spacing-sm);
    overflow-y: auto;
    justify-content: center;
  }

  /* Tabs */
  .tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  /* Planning tabs */
  .planning-tabs {
    flex-direction: column;
  }

  .planning-tab {
    width: 100%;
  }

  /* Accordion */
  .accordion-header {
    padding: var(--spacing-sm);
    font-size: 1rem;
  }

  /* Pricing */
  .pricing-price {
    font-size: 2rem;
  }

  /* Form */
  .form-input,
  .form-textarea {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Page Header */
  .page-header {
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg);
  }

  /* CTA - double spacing XL */
  .cta-section {
    padding: calc(var(--spacing-xl) * 2) var(--spacing-sm);
  }

  /* CTA buttons */
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
  }

  .footer-logo {
    height: 50px;
  }

  /* Planning dynamique */
  .schedule-nav {
    gap: var(--spacing-xs);
  }

  .schedule-week-label {
    font-size: 0.95rem;
    min-width: auto;
    flex: 1;
  }

  .schedule-nav-btn {
    width: 38px;
    height: 38px;
  }

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

  .schedule-cancelled-item {
    flex-wrap: wrap;
  }

  .schedule-cancelled-day {
    min-width: auto;
    width: 100%;
  }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === PRINT === */
@media print {
  .header,
  .footer,
  .nav,
  .btn,
  .carousel-nav,
  .carousel-btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
