/* ==========================================
   Responsive Design - Tablet
   ========================================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .site-header .brand {
        font-size: 3.5rem;
    }

    .hero-section {
        padding: 9rem 0 4rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

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

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

    .footer-brand-with-founder {
        grid-column: span 2;
    }

    .founder-info {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }

    .founder-photo-section {
        align-items: center;
    }

    .founder-photo {
        width: 90px;
        height: 90px;
    }

    .founder-details {
        gap: 0.1rem;
    }

    .founder-name {
        font-size: 0.75rem;
    }

    .founder-title {
        font-size: 0.65rem;
    }

    .founder-text {
        margin-left: 0;
    }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

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

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Site Header */
    .site-header {
        padding: 0.6rem 1rem;
    }

    .site-header .brand {
        font-size: 2rem;
    }

    .site-header .brand-baseline {
        font-size: 0.65rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

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

    /* Cas d'usage mobile */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .use-case-header h4 {
        font-size: 0.8rem;
    }

    .use-case-icon {
        width: 36px;
        height: 36px;
    }

    .pie-chart-static {
        width: 70px;
        height: 70px;
    }

    .time-before,
    .time-after {
        font-size: 0.7rem;
    }

    /* CTA bas de hero */
    .hero-bottom-cta {
        margin-top: 1.75rem;
        gap: 0.6rem;
    }

    .hero-cta-question {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .cta-booking-btn {
        font-size: 0.875rem;
        padding: 12px 20px;
        gap: 0.4rem;
        text-align: center;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }

    /* Advantages Section */
    .advantages-section,
    .formations-section,
    .compliance-section,
    .testimonials-section,
    .cta-section {
        padding: 4rem 0;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .advantage-card:nth-child(3) {
        grid-column: span 2;
    }

    .advantage-card {
        padding: 1.25rem;
    }

    .advantage-title {
        font-size: 1rem;
    }

    .advantage-description {
        font-size: 0.9rem;
    }

    /* Formations Section */
    .formations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .formation-card {
        padding: 1.5rem;
    }

    .formation-title {
        font-size: 1.1rem;
    }

    .formation-description {
        font-size: 0.95rem;
    }

    .formation-topics li {
        font-size: 0.9rem;
    }

    /* Compliance Section */
    .compliance-points {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .compliance-icon-svg {
        width: 80px;
        height: 80px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

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

    /* Section fondateur mobile - empilement vertical */
    .footer-brand-with-founder {
        grid-column: span 1;
    }

    .founder-info {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .founder-photo-section {
        align-items: center;
    }

    .founder-photo {
        width: 60px;
        height: 60px;
    }

    .founder-details {
        gap: 0.05rem;
    }

    .founder-name {
        font-size: 0.65rem;
    }

    .founder-title {
        font-size: 0.55rem;
    }

    .founder-text {
        margin-left: 0;
    }

    .founder-text h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .founder-text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

    .footer-bottom {
        padding-top: 1.5rem;
    }

    /* Form inputs */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ==========================================
   Small Mobile (480px and below)
   ========================================== */
@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advantage-card:nth-child(3) {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .use-case-header h4 {
        font-size: 0.75rem;
    }
}

/* ==========================================
   Small Mobile (375px and below)
   ========================================== */
@media (max-width: 375px) {
    .site-header .brand {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

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

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .use-case-icon {
        display: none;
    }
}

/* ==========================================
   Landscape Mobile
   ========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 5rem 0 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.6rem;
    }

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

    .advantages-section,
    .compliance-section,
    .testimonials-section,
    .cta-section {
        padding: 3rem 0;
    }
}

/* ==========================================
   Reduced motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    /* Allow vibrate-text animation even with reduced motion preference */
    *:not(.vibrate-text):not(.vibrating) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================
   High contrast
   ========================================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }

    .cta-primary,
    .cta-secondary {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   Print
   ========================================== */
@media print {
    .hero-section,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-title {
        font-size: 18pt;
    }
}
