/* ============================================
   RESPONSIVE CSS - Media queries globales
   ============================================ */

/* Breakpoints */
/* Mobile : < 768px */
/* Small Mobile : < 480px */
/* Tablet : 768px - 1024px */
/* Desktop : > 1024px */

/* Small Mobile - Très petits écrans */
@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        padding: 1rem 3% 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero .tagline {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Sections */
    .section {
        margin: 0 auto 3rem;
        padding: 0 3%;
    }

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

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

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

    /* Carousel */
    .carousel-container {
        margin: 0 auto 3rem;
        padding: 0 3%;
    }

    .carousel-slide {
        padding: 2rem 1.5rem 2.5rem;
    }

    .carousel-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .carousel-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
    }

    .carousel-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        max-height: 380px;
        margin: 0 auto;
        object-fit: contain;
        aspect-ratio: 2/3;
    }

    .carousel-text {
        text-align: left;
    }

    .carousel-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .carousel-text .badge {
        display: block;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        text-align: center;
        margin: 0 auto 1rem;
        width: fit-content;
        max-width: 90%;
    }

    .carousel-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        text-align: left;
    }

    .carousel-text .cta-button {
        font-size: 0.8rem;
        padding: 0.65rem 1.3rem;
        min-width: auto;
    }

    .carousel-text > div[style*="display: flex"] {
        justify-content: center !important;
        margin-top: 1.2rem !important;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        margin-bottom: 0;
    }

    .blog-content {
        padding: 1.5rem 1.5rem 1.8rem;
    }

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

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    /* Author Section */
    .author-section {
        margin: 0 auto 3rem;
        padding: 0 3%;
    }

    .author-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tab-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .bio-text h3 {
        font-size: 1.5rem;
    }

    .bio-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Buttons */
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
        min-height: 44px; /* Minimum pour le touch */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer */
    footer {
        padding: 2rem 3%;
    }

    .social-links {
        gap: 1rem;
    }

    /* News Ticker */
    .news-ticker {
        padding: 0.5rem 0;
    }

    .ticker-content {
        animation: scroll 8s linear infinite; /* Vitesse accélérée sur mobile */
    }

    .ticker-item {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .ticker-label {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }
}

/* Mobile - Navigation */
@media (max-width: 768px) {
    /* Header responsive */
    header {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        height: 36px;
    }

    /* Menu mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(20,20,35,0.95);
        padding: 0.75rem 1.5rem;
        border-radius: 0 0 0 var(--radius-main);
        border-left: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 12px 40px rgba(0,0,0,0.5);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        width: 100%;
        left: 0;
        right: 0;
    }

    .nav-links.mobile-open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0;
        min-height: 36px; /* Minimum pour le touch */
        display: flex;
        align-items: center;
        line-height: 1.2;
    }

    .mobile-toggle {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
    }

    /* Footer responsive */
    footer {
        padding: 2rem 3%;
    }

    .social-links {
        gap: 1.5rem;
    }

    /* News Ticker */
    .news-ticker {
        padding: 0.6rem 0;
    }

    .ticker-content {
        animation: scroll 8s linear infinite; /* Vitesse accélérée sur mobile */
    }

    .ticker-item {
        font-size: 0.85rem;
    }

    .ticker-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* Améliorations générales */
    .carousel-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
    }

    .carousel-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        max-height: 400px;
        margin: 0 auto;
        object-fit: contain;
        aspect-ratio: 2/3;
    }

    .carousel-text {
        text-align: left;
    }

    .carousel-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .carousel-text .badge {
        display: block;
        text-align: center;
        margin: 0 auto 1rem;
        width: fit-content;
    }

    .carousel-text p {
        text-align: left;
        line-height: 1.7;
    }

    .carousel-text .cta-button {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem;
        min-width: auto;
    }

    .carousel-text > div[style*="display: flex"] {
        justify-content: center !important;
        margin-top: 1.5rem !important;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Buttons touch-friendly */
    .cta-button,
    .read-more,
    .share-button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        font-size: 1.7rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

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

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

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

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

