/* ========================================
   RESPONSIVE STYLES - Lanaé Rénovation
======================================== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Tablettes portrait */
@media (max-width: 768px) {
  /* Typography */
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 32px !important;
  }
  
  h2 {
    font-size: 26px !important;
  }
  
  h3 {
    font-size: 20px !important;
  }
  
  /* Header */
  .header-top {
    font-size: 13px;
  }
  
  .header-top .container > div {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .header-main {
    flex-wrap: wrap;
    padding: 15px 0;
  }
  
  .site-logo img {
    max-height: 50px;
  }
  
  .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
    order: 3;
  }
  
  .main-navigation {
    display: none;
    width: 100%;
    order: 4;
    margin-top: 15px;
  }
  
  .main-navigation.active {
    display: block;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-navigation li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .main-navigation a {
    display: block;
    padding: 15px 0;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* Single Post */
  .single-post .main-column,
  .service-content-wrapper {
    grid-template-columns: 1fr !important;
  }
  
  .sidebar,
  .service-sidebar {
    margin-top: 40px;
  }
  
  .service-sidebar .service-cta-box {
    position: static !important;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    font-size: 14px;
  }
  
  /* Section padding */
  .section-padding {
    padding: 50px 0;
  }
  
  /* Section titles */
  .section-title h2 {
    font-size: 28px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  
  /* Breadcrumbs */
  .breadcrumbs ul {
    font-size: 14px;
  }
  
  /* Forms */
  .contact-form {
    padding: 30px 20px;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  /* Testimonials */
  .testimonial-item {
    padding: 30px 20px;
  }
  
  .testimonial-text {
    font-size: 16px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 15px;
  }
  
  /* Typography */
  h1 {
    font-size: 28px !important;
  }
  
  h2 {
    font-size: 24px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  /* Header */
  .header-top a {
    display: block;
    margin: 5px 0;
  }
  
  .site-logo img {
    max-height: 40px;
  }
  
  /* Hero */
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-content h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 15px;
  }
  
  /* Services */
  .service-icon {
    font-size: 50px;
  }
  
  .service-card h3 {
    font-size: 20px;
  }
  
  /* Blog cards */
  .blog-image {
    height: 200px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 18px;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-group label {
    font-size: 15px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  /* Section padding */
  .section-padding {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .section-title p {
    font-size: 15px;
  }
  
  /* Footer */
  .site-footer {
    padding: 40px 0 15px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .footer-bottom {
    font-size: 13px;
    padding-top: 15px;
  }
  
  /* Back to top */
  .back-to-top {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  /* Service process */
  .service-process > div > div {
    flex-direction: column;
    text-align: center;
  }
  
  .service-process > div > div > div:first-child {
    margin: 0 auto 15px;
  }
}

/* Petits mobiles */
@media (max-width: 360px) {
  h1 {
    font-size: 24px !important;
  }
  
  h2 {
    font-size: 20px !important;
  }
  
  h3 {
    font-size: 17px !important;
  }
  
  .hero-content h1 {
    font-size: 22px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .section-padding {
    padding: 30px 0;
  }
}

/* Paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 50px 0;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .back-to-top,
  .breadcrumbs,
  .contact-form,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
  }
}

/* Accessibilité - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --text-dark: #000;
    --text-light: #333;
    --bg-light: #fff;
    --border-color: #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
}

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

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
  /* Décommenter pour activer le mode sombre
  :root {
    --primary-color: #4a9d4a;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #1a1a1a;
    --white: #0d0d0d;
    --border-color: #333;
  }
  
  body {
    background-color: #0d0d0d;
    color: #e0e0e0;
  }
  */
}
