/* ===========================
   Responsive Design
   =========================== */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 1rem 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .slider-container {
        max-width: 700px;
    }

    .slide {
        min-height: 350px;
        max-height: 500px;
    }

    .slide img {
        max-height: 500px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
    }

    .slider-btn-prev {
        left: 15px;
    }

    .slider-btn-next {
        right: 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

/* Tablettes portrait et mobiles paysage */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .phone-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .phone-link svg {
        width: 14px;
        height: 14px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 12rem 1rem 5rem;
    }

    .hero-content {
        padding: 1rem;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2rem;
        text-align: center;
    }

    .hero-logo-wrapper {
        order: -1;
    }

    .hero-logo {
        max-width: 200px !important;
        margin: 0 auto;
    }

    .hero-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    .hero-title {
        text-align: center !important;
    }

    .hero-cta {
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }

    .title-small {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    section {
        padding: 3rem 0;
    }
    
    .presentation-section {
        padding-top: 8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .section-description {
        font-size: 1rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .presentation-text p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .presentation-content {
        gap: 2rem;
    }

    .presentation-image {
        order: -1;
    }

    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .slider-container {
        max-width: 100%;
    }

    .slide {
        min-height: 300px;
        max-height: 450px;
    }

    .slide img {
        max-height: 450px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .slider-dots {
        margin-top: 1rem;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 24px;
    }

    .contact-wrapper {
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-value {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .btn-full {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-logo {
        font-size: 1.3rem;
    }
}

/* Mobiles portrait */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a:not(.phone-link) {
        font-size: 0.85rem;
    }

    .phone-link {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    .hero {
        padding: 7rem 0.5rem 3rem;
    }

    .title-small {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.9rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

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

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .slide {
        min-height: 250px;
        max-height: 400px;
    }

    .slide img {
        max-height: 400px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-btn-prev {
        left: 8px;
    }

    .slider-btn-next {
        right: 8px;
    }

    .slider-dots {
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 20px;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:not(:placeholder-shown) + label,
    .form-group input:focus + label,
    .form-group textarea:focus + label {
        font-size: 0.75rem;
    }

    .btn-full {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-full svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-brand p,
    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-contact a {
        font-size: 1.1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .hero {
        padding: 6rem 0.5rem 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }

    .contact-value {
        font-size: 1rem;
    }
}

/* Améliorations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        animation: none;
    }

    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mode sombre (si l'utilisateur préfère) */
@media (prefers-color-scheme: dark) {
    /* Le site garde son thème clair pour l'identité de marque,
       mais vous pouvez ajouter un mode sombre ici si nécessaire */
}

/* Impression */
@media print {
    .navbar,
    .hero-cta,
    .scroll-indicator,
    .footer {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem;
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 6rem 1rem 2rem;
    }

    .hero-stats {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 2rem 0;
    }
}
