/* page particuliers    */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HERO */

.hero {
    width: 100%;
    height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('images/partenaire-sunny-flex.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 650px;
    margin-left: 8%;
}

.hero-content p {
    color: #F5F5F5;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 20px;
}

.solar-btn {
    display: inline-block;
    padding: 12px 28px;
    background: white;
    color: #2f7d32;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
}

@media screen and (min-width: 1024px) {
    .hero h1 {
        width: 700px !important;
    }
}


/* partner section */

.partner-section {
    background: #efede7;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.partner-container {
    max-width: 1200px;
    margin: auto;
}

.partner-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* TEXTE */

.partner-text {
    flex: 1;
}

.partner-text h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #111;
}

.partner-text p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

/* LISTE */

.partner-list {
    margin: 30px 0;
    padding-left: 20px;
}

.partner-list li {
    margin-bottom: 12px;
    font-size: 17px;
}

/* BOUTON */

.partner-btn {
    display: inline-block;
    margin-top: 20px;
    background: #3d7f2a;
    color: white;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.partner-btn:hover {
    background: #2e611f;
}

/* IMAGE */

.partner-image {
    flex: 1;
}

.partner-image img {
    width: 100%;
    border-radius: 20px;
    height: 420px;
    object-fit: cover;
}

/* RESPONSIVE TABLET */

@media (max-width:1024px) {

    .partner-content {
        gap: 40px;
    }

    .partner-text h2 {
        font-size: 38px;
    }

}

/* RESPONSIVE MOBILE */

@media (max-width:768px) {

    .partner-content {
        flex-direction: column;
    }

    .partner-image img {
        height: 320px;
    }

    .partner-text h2 {
        font-size: 32px;
    }

    .partner-btn {
        width: 100%;
        text-align: center;
    }
}

/* model section */

.model-section {
    background: #efede7;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.model-container {
    max-width: 1200px;
    margin: auto;
}

.model-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #111;
}

.model-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

/* IMAGE */

.model-image {
    flex: 1;
}

.model-image img {
    width: 100%;
    border-radius: 20px;
    height: 500px;
    object-fit: cover;
}

/* TEXTE */

.model-text {
    flex: 1;
}

.model-text p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

.model-text strong {
    font-weight: 600;
}

/* LISTE */

.model-list {
    margin: 25px 0;
    padding-left: 20px;
}

.model-list li {
    margin-bottom: 12px;
    font-size: 17px;
}

/* BOUTON */

.model-btn {
    display: inline-block;
    margin-top: 20px;
    background: #3d7f2a;
    color: white;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.model-btn:hover {
    background: #2e611f;
}

/* TABLET */

@media (max-width:1024px) {

    .model-title {
        font-size: 38px;
    }

    .model-content {
        gap: 40px;
    }

}

/* MOBILE */

@media (max-width:768px) {

    .model-content {
        flex-direction: column;
    }

    .model-image img {
        height: 320px;
    }

    .model-title {
        font-size: 32px;
    }

    .model-btn {
        width: 100%;
        text-align: center;
    }
}

/* sunny section */

.sunny-role {
    background: #efede7;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.sunny-container {
    max-width: 1200px;
    margin: auto;
}

/* TITRE */

.sunny-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.sunny-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #444;
}

/* STRUCTURE */

.sunny-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* IMAGE */

.sunny-image {
    flex: 1;
}

.sunny-image img {
    width: 100%;
    border-radius: 20px;
    height: 520px;
    object-fit: cover;
}

.solar-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.solar-overlay p {
    margin: 8px 0;
    color: #ffffff;
}

/* TEXTE */

.sunny-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* BLOCS */

.sunny-block h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #111;
}

/* LISTE */

.sunny-block ul {
    list-style: none;
    padding: 0;
}

.sunny-block li {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

/* TABLET */

@media (max-width:1024px) {

    .sunny-title {
        font-size: 38px;
    }

    .sunny-content {
        gap: 40px;
    }

}

/* MOBILE */

@media (max-width:768px) {

    .sunny-content {
        flex-direction: column;
    }

    .sunny-title {
        font-size: 32px;
    }

    .sunny-image img {
        height: 400px;
        width: 100vh;
    }

    .sunny-block h3 {
        font-size: 26px;
    }

}

/* partner section 2 */

.partner-section {
    background: #efede7;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.partner-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    border-top: solid 1px #7a7a7a;
    padding-top: 40px;
}

/* LEFT */

.partner-left {
    flex: 1.2;
}

.partner-left h2 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #111;
}

.partner-intro {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #111;
}

.partner-left p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

/* RIGHT */

.partner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

/* cards */

.partner-card {
    background: #cfc9be;
    padding: 35px;
    border-radius: 18px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
}

/* TABLET */

@media (max-width:1024px) {

    .partner-left h2 {
        font-size: 38px;
    }

    .partner-card {
        font-size: 26px;
    }

}

/* MOBILE */

@media (max-width:768px) {

    .partner-container {
        flex-direction: column;
        gap: 50px;
    }

    .partner-left h2 {
        font-size: 32px;
    }

    .partner-intro {
        font-size: 20px;
    }

    .partner-card {
        font-size: 22px;
        padding: 25px;
    }

}

/* EVOLUTION */

.evolution-section {
    background-color: #fcfaf5;
    padding: 40px 20px;
    text-align: center;
}

.main-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    color: #2a2a2a;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-item {
    max-width: 220px;
}

.feature-item p {
    margin-top: 20px;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.5;
}

.icon-par {
    width: 70px;
    height: 70px;
    margin: auto;
    color: #2f6e21;
    border: solid 1px #2f6e21;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-par svg {
    width: 40px;
    height: 40px;
}

.bottom-text p {
    font-size: 18px;
    color: #1a1a1a;
    margin: 10px 0;
}

/* RESPONSIVE */

@media (max-width:1024px) {

    .hero h1 {
        font-size: 42px;
    }

    .main-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
    }

}

@media (max-width:768px) {

    .hero {
        height: 80vh;
    }

    .hero-content {
        margin: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta {
        height: 350px !important;
        background-size: cover !important;
    }

    .cta h2 {
        font-size: 28px !important;
    }

}

/* CTA section final */

.cta {
    height: 500px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/puissance_solaire.avif');
    background-size: 100%;
    background-position: 50% 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0px 20px;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    border: solid 1px #ffffff;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Défilement partenaire */

/* SECTION PRINCIPALE */
.partners {
    width: 100%;
    padding: 60px 0;
    background: #f4f1eb;
    overflow: hidden;
    border-top: 1px solid #e5e0d8;
    border-bottom: 1px solid #e5e0d8;
}

/* LE CONTENEUR AVEC LES FONDUS */
.partners-wrapper {
    position: relative;
    /* Indispensable pour placer les fondus */
    width: 100%;
    overflow: hidden;
}

/* FONDU GAUCHE */
.partners-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    /* Largeur du dégradé */
    height: 100%;
    z-index: 2;
    background: linear-gradient(to right, #f4f1eb, transparent);
}

/* FONDU DROITE */
.partners-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 150px;
    /* Largeur du dégradé */
    height: 100%;
    z-index: 2;
    background: linear-gradient(to left, #f4f1eb, transparent);
}

/* LE RAIL DE DÉFILEMENT */
.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

/* PAUSE AU SURVOL */
.partners-track:hover {
    animation-play-state: paused;
    /* L'animation s'arrête net quand la souris passe dessus */
    cursor: pointer;
}

/* LES GROUPES ET IMAGES */
.track-group {
    display: flex;
    align-items: center;
    gap: 100px;
    padding-right: 100px;
}

.track-group img {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* PETIT EFFET SUR LES LOGOS AU SURVOL (Optionnel) */
.track-group img:hover {
    transform: scale(1.1);
}

/* L'ANIMATION */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {

    .partners-wrapper::before,
    .partners-wrapper::after {
        width: 50px;
        /* On réduit le fondu sur mobile */
    }

    .track-group img {
        height: 45px;
    }

    .track-group {
        gap: 50px;
        padding-right: 50px;
    }
}