/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', sans-serif;
    background-color: #f6f7f8;
    color: #333;
    line-height: 1.6;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #ddd;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 5px;
}

.logo h2 {
    font-size: 1.2rem;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00a896;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    z-index: 101;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 35, 50, 0.75) 0%,
            rgba(13, 157, 110, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    line-height: 1.7;
    color: #f5f5f5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Container et Cards === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00a896;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.card-description {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00a896;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(4px);
}

/* === Footer === */
.footer {
    background-color: #1a2332;
    color: #ffffff;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    color: #a8b3c1;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0d9d6e;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a8b3c1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #0d9d6e;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a8b3c1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0d9d6e;
}

.newsletter {
    margin-top: 24px;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #7d8a9a;
}

.newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #0d9d6e;
}

.newsletter-btn {
    padding: 12px 24px;
    background-color: #0d9d6e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #0a7a56;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #7d8a9a;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #7d8a9a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #0d9d6e;
}

/* ========================================= */
/* === RESPONSIVE MEDIA QUERIES === */
/* ========================================= */

/* Tablets et petits écrans (992px et moins) */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        height: 400px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .card-content {
        padding: 25px;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 35px;
    }
}

/* Mobile (768px et moins) */
@media (max-width: 768px) {
    .nav-container {
        padding: 12px 15px;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .container {
        padding: 30px 15px 50px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        margin-bottom: 15px;
    }

    .card-description {
        margin-bottom: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Très petits mobiles (480px et moins) */
@media (max-width: 480px) {
    .logo img {
        height: 35px;
        width: 35px;
    }

    .logo h2 {
        font-size: 0.95rem;
    }

    .hero-section {
        height: 300px;
    }

    .container {
        padding: 25px 12px 40px;
    }

    .cards-grid {
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 14px;
    }

    .read-more {
        font-size: 14px;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-container {
        gap: 30px;
    }

    .category-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }
}