* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 90px;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid rgba(88, 80, 69, 0.8);
    background-color: rgba(200, 175, 143, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header a img {
    height: 60px;
    width: auto;
    outline: 1px solid transparent;
    outline-offset: 10px;
    transition: all 0.5s;
    border-radius: 20%;
}

header a img:hover {
    outline-color: black;
    outline-offset: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: red;
}

nav ul li:not(:last-child)::after {
    content: "|";
    color: #999;
    margin-left: 2rem;
    pointer-events: none;
    font-size: 1.5rem;
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== TITLES SECTION ========== */
section > h2 {
    font-size: 2.5rem;
    color: rgb(16, 16, 16);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: rgb(16, 16, 16);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem;
    color: rgb(50, 50, 50);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: normal;
}

.hero img {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgb(40, 40, 40);
    max-width: 100%; 
    margin: 0 auto;
    text-align: justify;
    font-size: 1.5rem;
    line-height: 2;
}

/* ========== BANNER SECTION ========== */
.banner-section {
    margin: 3rem 0;
}

.banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #000;
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.3);
}

.banner-image {
    position: relative;
    width: 100%;
    height: 400px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 2rem 4rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.banner-text h3 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.banner > p {
    text-align: center;
    padding: 2rem;
    color: rgb(16, 16, 16);
    font-size: 1.3rem;
    background-color: rgba(200, 175, 143, 0.3);
    border-radius: 0 0 20px 20px;
}

/* ========== GRID SECTION ========== */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.grid > h2 {
    font-size: 2.5rem;
    color: rgb(16, 16, 16);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    width: 100%;
}

.grid a {
    flex: 1;
    min-width: 280px;
    text-decoration: none;
    color: inherit;
}

.grid article {
    background-color: rgba(200, 175, 143, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 3px solid #000;
}

.grid article:hover {
    background-color: rgba(200, 175, 143, 0.6);
    box-shadow: 2px 3px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.grid article h3 {
    font-size: 1.8rem;
    color: rgb(16, 16, 16);
    margin-bottom: 1rem;
}

.grid article img {
    border-radius: 15px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.grid article p {
    color: rgb(30, 30, 30);
    line-height: 1.6;
    font-weight: normal;
    font-size: 1.4rem;
}

/* ========== FOOTER ========== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5rem;
    padding: 3rem 2rem 2rem 2rem;
    border-top: 2px solid rgba(88, 80, 69, 0.8);
    background-color: rgba(200, 175, 143, 0.3);
    gap: 3rem;
}

footer > div:first-child {
    display: flex;
    align-items: flex-start;
}

footer img {
    height: 80px;
    width: auto;
    border-radius: 5%;
}

.footer-contenu {
    display: flex;
    gap: 4rem;
    flex: 1;
    justify-content: center;
}

.section h3 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: rgb(16, 16, 16);
}

.section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgb(40, 40, 40);
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section ul li {
    margin-bottom: 0.5rem;
}

.section a {
    color: rgb(30, 30, 30);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.section a:hover {
    color: red;
    transform: translateX(5px);
}

.section:last-child a {
    display: block;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: right;
    align-self: flex-start;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgb(40, 40, 40);
}

.back-to-top {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(200, 175, 143, 0.8);
    color: rgb(16, 16, 16);
    border: 2px solid rgb(88, 80, 69);
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-to-top:hover {
    background-color: rgba(200, 175, 143, 1);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    /* Header responsive */
    .hamburger {
        display: flex;
    }

    nav ul li:not(:last-child)::after {
        content: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    nav ul li {
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    header a img {
        height: 50px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    /* Main content */
    main {
        padding: 1.5rem;
    }

    section > h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .banner-text h2 {
        font-size: 1.8rem;
    }

    .banner-text {
        padding: 1.5rem 2rem;
    }

    .grid {
        flex-direction: column;
    }

    .grid article h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        padding: 2.5rem 1.5rem;
    }

    footer > div:first-child {
        justify-content: center;
    }

    footer img {
        height: 70px;
    }

    .footer-contenu {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .section {
        width: 100%;
    }

    .section a:hover {
        transform: scale(1.05);
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 0.8rem 1rem;
    }

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

    header a img {
        height: 40px;
    }

    section > h2 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .banner-image {
        height: 250px;
    }

    .banner-text {
        padding: 1rem 2rem;
    }

    .banner-text h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .grid article h3 {
        font-size: 1.3rem;
    }

    .grid article img {
        height: 200px;
    }

    footer {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    footer img {
        height: 60px;
    }

    .footer-contenu {
        gap: 2rem;
    }

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

    .section p,
    .section a {
        font-size: 0.85rem;
    }

    .copyright p {
        font-size: 0.8rem;
    }
}
