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

body {
    font-family: "Inter", Arial, sans-serif;
    background: #262c39;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    height: 150px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background: linear-gradient(to right, black, rgba(255,255,255,0)), url('./img/camion_2.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(2px);
}

#title {
    display: flex;
    align-items: center;
    gap: 14px;
}

#title img {
    height: 150px;
    width: auto;
}

#brand-name {
    font-size: 60px;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.3px;
    color: whitesmoke;
}

#news {
    width: 100%;
    height: 50px;
    background-color: green;
    display: flex;
    justify-content: center;
    align-items: center;
}

#news > a {
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: yellow;
}

#news > a:hover {
    text-decoration: underline;
    color: rgb(223, 248, 0);
}

main {
    flex: 1;
}

#presentation {
    margin-top: 50px;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
}

.card {
    width: 400px;
    height: 400px;
    background-color: #fef08a;
    border: 2px solid black;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s linear;
}

.card:hover {
    transform: scale(1.1);
}

#presentation:has(.card:hover) .card:not(:hover) {
    transform: scale(0.9);
}

.cardTitle {
    text-align: center;
    padding: 10px;
    color: black !important;
}

.cardImg {
    flex: 1;
    width: 100%;
    object-fit: contain;
    display: block;
}

/* NEWS */

#hero-section {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 60px 32px;
    text-align: center;
}

#hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

#hero-section p {
    font-size: 24px;
    font-weight: 400;
}

.content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 32px;
}

.content-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.content-section > p {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
}

.energy-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.energy-card {
    width: 350px;
    background-color: #fef08a;
    border: 2px solid black;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s linear;
    padding: 30px;
}

.energy-card:hover {
    transform: scale(1.05);
}

.energy-grid:has(.energy-card:hover) .energy-card:not(:hover) {
    transform: scale(0.95);
}

.energy-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    text-align: center;
}

.energy-card p {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.6;
    text-align: center;
}

.benefits-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.benefits-list li {
    background: #1a202c;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefits-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.benefits-list strong {
    color: #10b981;
    font-size: 18px;
}

.sdg-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.sdg-list li {
    background: #fef08a;
    border: 2px solid black;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    color: #1a202c;
    font-weight: 600;
    text-align: center;
}

#cta-section {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 80px 32px;
    text-align: center;
    margin-top: 60px;
}

#cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fef08a;
}

@media (max-width: 768px) {
    #hero-section h1 {
        font-size: 32px;
    }

    #hero-section p {
        font-size: 18px;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .energy-card {
        width: 100%;
    }

    #brand-name {
        font-size: 40px;
    }
}

footer {
    margin-top: 50px;
    padding: 20px;
    background-color: #1a202c;
    color: #f8fafc;
    text-align: center;
    width: 100%;
}