/* ========================================
   SD Consulting & Formation - Responsive CSS
   ======================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .trust-banner {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-card {
        padding: 2rem;
    }
    
    .btn-nav-contact {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* Navigation */
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        background-attachment: scroll;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    .trust-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .trust-item {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    /* Cards */
    .expertise-card,
    .why-us-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .expertise-icon {
        width: 70px;
        height: 70px;
    }
    
    .expertise-icon i {
        font-size: 1.75rem;
    }
    
    .expertise-card h3 {
        font-size: 1.3rem;
    }
    
    /* Formation Cards */
    .formation-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .formation-footer .btn {
        width: 100%;
    }
    
    /* Certifications */
    .certifications-logos {
        gap: 2rem;
    }
    
    .cert-item i {
        font-size: 2rem !important;
    }
    
    /* CTA Section */
    .section-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .expertise-card,
    .why-us-card,
    .formation-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 150px 0 100px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-cta,
    .section-cta,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: none;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--primary-blue);
    }
    
    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
    
    .card,
    .expertise-card,
    .formation-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-outline-light {
        border: 2px solid currentColor;
    }
    
    .expertise-card,
    .formation-card,
    .testimonial-card {
        border: 2px solid var(--primary-blue);
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
