/* ========================================
   RESPONSIVE IMPROVEMENTS FOR PATRIMOINE
   Améliorations du design responsive
   ======================================== */

/* Améliorations pour tablettes (768px - 1024px) */
@media (max-width: 1024px) {
  .slider_section h1 {
    font-size: 3rem;
  }
  
  .heading_container h2,
  .bo {
    font-size: 2.2rem;
  }
  
  .service_section .box {
    margin-bottom: 2rem;
  }
  
  .col .p-lg-1 {
    margin-bottom: 1.5rem;
  }
  
  .containere {
    left: 50px;
  }
  
  .video-background {
    width: 1200px;
    height: 500px;
  }
}

/* Améliorations pour mobiles (576px - 768px) */
@media (max-width: 768px) {
  /* Header */
  .header_section .navbar-brand img {
    width: 200px;
  }
  
  /* Slider */
  .slider_section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .slider_section p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .slider-link {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  /* Titres */
  .heading_container h2,
  .bo {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Services */
  .service_section .box {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service_section .box .img-box img {
    width: 60px;
    height: 60px;
  }
  
  .service_section .box .location {
    font-size: 1.2rem;
  }
  
  /* Réalisations */
  .col .p-lg-1 {
    margin-bottom: 1.5rem;
  }
  
  .col .p-lg-1 img {
    height: 200px;
  }
  
  .col .p-lg-1 .sam {
    font-size: 1rem;
    padding: 1rem;
  }
  
  /* Blog */
  .blog_section .box .img-box img {
    height: 180px;
  }
  
  .blog_section .box .detail-box {
    padding: 1.2rem;
  }
  
  .blog_section .box .detail-box h5 {
    font-size: 1.2rem;
  }
  
  /* Équipe */
  .client_section .box {
    padding: 1.5rem;
  }
  
  .client_section .box .img-box img {
    width: 120px;
    height: 120px;
  }
  
  .samuel, .gade {
    font-size: 1.3rem !important;
  }
  
  .dg {
    font-size: 1rem !important;
  }
  
  /* Contact */
  .contact_section .form_container {
    padding: 1.5rem;
  }
  
  .contact_section .form_container input,
  .contact_section .form_container .message-box {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  /* Vidéo */
  .containere {
    left: 20px;
  }
  
  .video-background {
    width: 600px;
    height: 400px;
  }
  
  .kompany {
    width: 400px;
    left: -50px;
  }
}

/* Améliorations pour petits mobiles (max-width: 576px) */
@media (max-width: 576px) {
  /* Header */
  .header_section .navbar-brand img {
    width: 150px;
  }
  
  /* Slider */
  .slider_section h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .slider_section p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .slider-link {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  /* Titres */
  .heading_container h2,
  .bo {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .heading_container h2::before,
  .bo::before {
    width: 50px;
    height: 3px;
  }
  
  /* Services */
  .service_section .box {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
  }
  
  .service_section .box .img-box img {
    width: 50px;
    height: 50px;
  }
  
  .service_section .box .location {
    font-size: 1.1rem;
  }
  
  .service_section .box .voir,
  .service_section .box .voir2,
  .service_section .box .voir3 {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  /* Réalisations */
  .col .p-lg-1 {
    margin-bottom: 1.2rem;
  }
  
  .col .p-lg-1 img {
    height: 180px;
  }
  
  .col .p-lg-1 .sam {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  
  /* Blog */
  .blog_section .box .img-box img {
    height: 160px;
  }
  
  .blog_section .box .detail-box {
    padding: 1rem;
  }
  
  .blog_section .box .detail-box h5 {
    font-size: 1.1rem;
  }
  
  .blog_section .box .detail-box p {
    font-size: 0.9rem;
  }
  
  /* Équipe */
  .client_section .box {
    padding: 1.2rem;
  }
  
  .client_section .box .img-box img {
    width: 100px;
    height: 100px;
  }
  
  .samuel, .gade {
    font-size: 1.2rem !important;
  }
  
  .dg {
    font-size: 0.9rem !important;
  }
  
  .sg, .gade1 {
    font-size: 0.9rem !important;
  }
  
  /* Contact */
  .contact_section .form_container {
    padding: 1.2rem;
  }
  
  .contact_section .form_container h2 {
    font-size: 1.8rem;
  }
  
  .contact_section .form_container input,
  .contact_section .form_container .message-box {
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .contact_section .form_container button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  /* À propos */
  .about_section .detail-box h2 {
    font-size: 1.8rem;
  }
  
  .res {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  /* Vidéo */
  .containere {
    left: 10px;
  }
  
  .video-background {
    width: 400px;
    height: 300px;
  }
  
  .kompany {
    width: 350px;
    left: -80px;
    padding: 15px;
  }
  
  /* Footer */
  .info_section {
    padding: 2rem 0;
  }
  
  .info_section h4,
  .info_section h5 {
    font-size: 1.1rem;
  }
  
  .info_section p {
    font-size: 0.9rem;
  }
  
  .info_section .info_contact a {
    font-size: 0.9rem;
  }
}

/* Améliorations pour très petits écrans (max-width: 400px) */
@media (max-width: 400px) {
  /* Header */
  .header_section .navbar-brand img {
    width: 120px;
  }
  
  /* Slider */
  .slider_section h1 {
    font-size: 1.8rem;
  }
  
  .slider_section p {
    font-size: 0.9rem;
  }
  
  .slider-link {
    padding: 8px 16px;
    font-size: 0.7rem;
  }
  
  /* Titres */
  .heading_container h2,
  .bo {
    font-size: 1.6rem;
  }
  
  /* Services */
  .service_section .box {
    padding: 1rem;
  }
  
  .service_section .box .img-box img {
    width: 40px;
    height: 40px;
  }
  
  .service_section .box .location {
    font-size: 1rem;
  }
  
  /* Réalisations */
  .col .p-lg-1 img {
    height: 150px;
  }
  
  .col .p-lg-1 .sam {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
  
  /* Blog */
  .blog_section .box .img-box img {
    height: 140px;
  }
  
  .blog_section .box .detail-box {
    padding: 0.8rem;
  }
  
  .blog_section .box .detail-box h5 {
    font-size: 1rem;
  }
  
  .blog_section .box .detail-box p {
    font-size: 0.8rem;
  }
  
  /* Équipe */
  .client_section .box {
    padding: 1rem;
  }
  
  .client_section .box .img-box img {
    width: 80px;
    height: 80px;
  }
  
  .samuel, .gade {
    font-size: 1.1rem !important;
  }
  
  .dg {
    font-size: 0.8rem !important;
  }
  
  .sg, .gade1 {
    font-size: 0.8rem !important;
  }
  
  /* Contact */
  .contact_section .form_container {
    padding: 1rem;
  }
  
  .contact_section .form_container h2 {
    font-size: 1.6rem;
  }
  
  .contact_section .form_container input,
  .contact_section .form_container .message-box {
    padding: 8px;
    font-size: 0.7rem;
  }
  
  .contact_section .form_container button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  /* À propos */
  .about_section .detail-box h2 {
    font-size: 1.6rem;
  }
  
  .res {
    font-size: 0.8rem !important;
  }
  
  /* Vidéo */
  .containere {
    left: 5px;
  }
  
  .video-background {
    width: 360px;
    height: 250px;
  }
  
  .kompany {
    width: 320px;
    left: -100px;
    padding: 10px;
  }
}

/* Améliorations pour l'orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .slider_section h1 {
    font-size: 2rem;
  }
  
  .slider_section p {
    font-size: 1rem;
  }
  
  .heading_container h2,
  .bo {
    font-size: 1.8rem;
  }
  
  .layout_padding {
    padding: 60px 0;
  }
  
  .service_section .box {
    padding: 1rem;
  }
  
  .col .p-lg-1 {
    margin-bottom: 1rem;
  }
  
  .client_section .box {
    padding: 1rem;
  }
  
  .contact_section .form_container {
    padding: 1rem;
  }
}

/* Améliorations pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header_section .navbar-brand img,
  .service_section .box .img-box img,
  .client_section .box .img-box img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Améliorations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Améliorations pour le mode sombre (si supporté) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --accent-color: #F39C12;
    --light-bg: #2C3E50;
    --dark-text: #ECF0F1;
    --light-text: #BDC3C7;
    --white: #34495E;
  }
}

/* Améliorations pour l'impression */
@media print {
  .header_section,
  .contact_section,
  .info_section,
  .footer_section,
  .carousel_btn_box,
  .carousel_btn-container {
    display: none !important;
  }
  
  .slider_section,
  .service_section,
  .blog_section,
  .client_section {
    page-break-inside: avoid;
  }
  
  .col .p-lg-1,
  .service_section .box,
  .blog_section .box,
  .client_section .box {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
