/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f7f7;
    overflow-x: hidden;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header.hero {
    background: url('medias/image/hero-bg.jpg') center/cover no-repeat;
    height: 100vh;
    position: relative;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    /* Ajustez selon vos besoins */
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
}

.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
}

.section {
    padding: 4rem 2rem;
    background: #fff;
}

.section:nth-child(even) {
    background: #f0f0f0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
}

.card {
    background: #fff;
    flex: 1 1 280px;
    max-width: 340px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #00A4B4;
}

.picto-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    justify-content: flex-start;
}

.picto-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 1.5rem;
}

.picto {
    width: 64px;
    height: 64px;
    stroke: url(#yaiel-gradient);
    transition: transform 0.3s ease;
}

.card:hover .picto {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #0066cc;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #222;
    color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 2rem 0;
        text-align: center;
        width: 100%;
    }

    .burger {
        display: flex;
        z-index: 100;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .hero-content p {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .cards {
        gap: 1.5rem;
        padding: 0;
    }
}