:root {
    --color-primary: #3F5CAB;
    --color-bg: #f9fafb;
    --color-text: #111827;
    --color-logo: #3C3C3C;
    --color-white: #ffffff;
    --color-section-bg: #E8ECF8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

header {
    background: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--color-logo);
}

    .logo img {
        width: 36px;
        height: 36px;
    }

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-desktop ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-desktop li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--color-text);
    }

.menu-mobile {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    flex-direction: column; /* essentiel */
    transition: left 0.3s ease-in-out;
    /*box-shadow: 2px 0 8px rgba(0,0,0,0.2);*/
    z-index: 2000;
}

    .menu-mobile.open {
        left: 0;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }

    .menu-mobile ul {
        list-style: none;
        padding: 2rem;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem; /* si tu veux espacer les liens entre eux */
    }

    .menu-mobile a {
        text-decoration: none;
        color: var(--color-text);
        font-size: 1.2rem;
        font-weight: 500;
    }

        .menu-desktop a.active,
        .menu-mobile a.active {
            font-weight: 700; /* optionnel pour plus de visibilité */
            color: var(--color-primary); /* ou une autre couleur */
        }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    display: none;
}

    .menu-overlay.active {
        display: block;
    }

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.menu-logo {
    text-align: left;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd; /* optionnel, pour une séparation */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-logo);
}

    .menu-logo img {
        max-width: 60px; /* ajuste selon la taille souhaitée */
        height: auto;
        display: inline-block;
    }


.menu-contact {
    margin-top: auto; /* pousse en bas */
    padding: 1.5rem 1.5rem 8rem 1.5rem;
    background-color: #f3f4f6;
    border-top: 1px solid #ddd;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
}

    .menu-contact a {
        color: var(--color-text);
        text-decoration: none;
    }

        .menu-contact a:hover {
            text-decoration: underline;
        }

@media (max-width: 1050px) {
    .menu-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

.target-div {
    /*background-color: white;*/
}

.target-sections {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.target-section {
    flex: 1 1 45%; /* prend 45% largeur max */
    min-width: 280px;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
}

    .target-section .container {
        width: 100%; /* container fait 100% pour le contenu */
    }

/* Fond neige */
.deneigement {
    background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url('/images/snow.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #2f4f7f;
}

/* Fond pelouse */
.pelouse {
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('/images/pelouse.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #2d5a2d;
}

    .pelouse h2 {
        color: #205823;
    }

/* Responsive : empilement sur petits écrans */
@media (max-width: 768px) {
    .target-section {
        flex: 1 1 100%;
    }
}

/* Langue */
.langSelector {
    user-select: none;
    cursor: default;
}

    .langSelector .lang-option {
        cursor: pointer;
        color: #6b7280; /* gris foncé */
        transition: color 0.3s ease;
    }

        .langSelector .lang-option:hover {
            color: #4f46e5; /* violet plus foncé au hover */
        }

        .langSelector .lang-option.active {
            font-weight: 700;
            text-decoration: underline;
            color: #4f46e5;
            cursor: default;
        }

    .langSelector .separator {
        color: #9ca3af; /* gris clair */
        user-select: none;
        cursor: default;
    }

.fonctionnalites {
    background-image: url('/images/background_fonctionnalites.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #2C5EAB; /* Couleur de fond fallback */
    position: relative;
}

    .fonctionnalites h2 {
        color: var(--color-white);
    }

@media (hover: none) and (pointer: coarse) {
    .fonctionnalites {
        background-attachment: scroll;
        background-image: none;
        background-color: #2C5EAB;
    }
}

/* Désactiver l'effet "fixed" sur mobile */
@media (max-width: 1024px) {
    .fonctionnalites {
        background-attachment: scroll;
        background-image: none;
        background-color: #2C5EAB;
    }
}

/* Google Play */
.app-section {
    background-image: url('/images/android_background4.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #335E81; /* Couleur de fond fallback */
    position: relative;
    color: var(--color-white);
    padding: 4rem 1rem;
}

.app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-shadow: 0 0 10px black;
}

    .app-container h2 {
        font-size: 2rem;
        color: var(--color-white);
        margin-bottom: 1rem;
    }

.app-image img {
    border: 3px solid var(--color-white);
}

.app-text {
    flex: 1 1 500px;
    min-width: 280px;
    /*font-weight: bold;*/
}
    .app-text h3 {
        color: var(--color-white);
        font-weight: 800;
        text-align: left;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }

    .app-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

.play-btn img {
    max-height: 100px;
    max-width: 250px;
}

.app-image {
    flex: 1 1 300px;
    min-width: 280px;
    text-align: center;
}

    .app-image img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 0.5rem;
    }

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        text-align: center;
    }

    .app-section {
        padding: 2rem 1rem;
    }

    .app-text {
        flex: 1 1 100% !important;
    }

    .app-text h2 {
        font-size: 1.6rem;
    }

    .app-text p {
        font-size: 1rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .app-section {
        background-attachment: scroll;
    }
}

/* Désactiver l'effet "fixed" sur mobile */
@media (max-width: 1024px) {
    .app-section {
        background-attachment: scroll;
    }
}

/* Témoignages */
.testimonial-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.testimonial-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-dots {
    margin-top: 1rem;
    text-align: center;
}

    .testimonial-dots .dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
    }

        .testimonial-dots .dot.active {
            background: var(--color-primary);
        }

.testimonial-slide {
    display: none;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

    .testimonial-slide.active {
        display: block;
    }

    .testimonial-slide p {
        font-style: italic;
        margin-bottom: 1rem;
    }

    .testimonial-slide strong {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--color-primary);
    }

    .testimonial-slide img {
        height: auto;
        max-height: 80px;
        max-width: 150px;
        object-fit: contain;
        border-radius: 0;
    }

.testimonial-arrow {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.author-company {
    font-size: 0.9rem;
    color: var(--color-primary);
}


/* En-tête */
.hero-banner {
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-text {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 1rem;
}

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

.image-rapport {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
}

.image-fan {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateX(-180px); /* << Décalage vers la gauche */
}

.image-fan-wrapper {
    position: relative;
    width: 600px; /* largeur centrée autour des 5 images */
    height: 500px;
    overflow: visible;
}

.image-fan img {
    position: absolute;
    top: 0;
    left: 50%; /* centré dans le wrapper */
    width: 360px;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border-radius: 4px;
    transform-origin: center top;
}

    /* Décalage à partir du centre */
    .image-fan img:nth-child(1) {
        transform: translateX(-220px) rotate(-10deg);
        z-index: 1;
    }

    .image-fan img:nth-child(2) {
        transform: translateX(-110px) rotate(-5deg);
        z-index: 2;
    }

    .image-fan img:nth-child(3) {
        transform: translateX(0px) rotate(0deg);
        z-index: 3;
    }

    .image-fan img:nth-child(4) {
        transform: translateX(110px) rotate(5deg);
        z-index: 4;
    }

    .image-fan img:nth-child(5) {
        transform: translateX(220px) rotate(10deg);
        z-index: 5;
    }

@media (max-width: 820px) {
    .image-fan-wrapper {
        transform: scale(0.8);
        height: 460px;
    }
}

@media (max-width: 700px) {
    .image-fan-wrapper {
        transform: scale(0.7);
        height: 420px;
    }
}

@media (max-width: 640px) {
    .image-fan-wrapper {
        transform: scale(0.6);
        height: 380px;
    }
}

@media (max-width: 550px) {
    .image-fan-wrapper {
        transform: scale(0.5);
        height: 340px;
    }
}

@media (max-width: 450px) {
    .image-fan-wrapper {
        transform: scale(0.4);
        height: 300px;
    }
}

/* Section */
section {
    padding: 4rem 1rem;
}

    section h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        font-size: 2rem;
        color: var(--color-primary);
    }

    section h3 {
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
        color: #4B5563; /* gris doux */
        margin-bottom: 2rem;
    }

.section-alt {
    background-color: var(--color-section-bg);
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.contact-title {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
}

.contact-image {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

    .contact-image img {
        width: 100%;
        border-radius: 0.5rem;
        object-fit: cover;
        max-height: 260px;
        margin-bottom: 1rem;
    }

.contact-info p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #444;
    white-space: nowrap;
}

    .contact-info p > * {
        font-size: 0.95rem; /* la taille souhaitée */
        display: inline-block;
    }

.contact-form {
    flex: 1 1 500px;
}

.contact-social {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #444;
}

    .contact-social a.facebook-link {
        color: #1877f2;
        text-decoration: none;
        font-weight: bold;
    }

        .contact-social a.facebook-link:hover {
            text-decoration: underline;
        }

.contact-info a[href^="tel:"] {
    text-decoration: none;
    color: inherit;
}

    .contact-info a[href^="tel:"]:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-image, .contact-form {
        max-width: 100%;
    }

        .contact-image img {
            max-height: none;
        }

    .contact-info {
        text-align: center;
    }
}

textarea {
    resize: vertical; /* seulement la hauteur */
    min-height: 150px; /* hauteur minimale */
    height: 150px; /* hauteur initiale */
    width: 100%;
    max-width: 100%;
}

form input, form textarea, form button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .form-row .half {
        flex: 1 1 48%;
    }

        .form-row .half:first-child input {
            margin-bottom: 0;
        }

@media (max-width: 640px) {
    .form-row .half {
        flex: 1 1 100%;
    }
}

.grid-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

    .feature-box h3 {
        margin-bottom: 0.5rem;
        color: var(--color-primary);
    }

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.icon-grayscale {
    /*filter: grayscale(100%);
    /*opacity: 0.7; /* facultatif, pour un effet adouci */
    transition: filter 0.3s ease;
}

.icon-grayscale:hover {
    filter: none;
    opacity: 1;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.image-box {
    flex: 1 1 30%;
    text-align: center;
}

    .image-box img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .image-box p {
        margin-top: 0.5rem;
        font-weight: 500;
    }

@media (max-width: 820px) {
    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

        .image-box img {
            width: 100%;
        }
}

@media (max-width: 1024px) {
    .grid-feature {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-feature {
        grid-template-columns: 1fr;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.site-footer {
    background-color: #f3f4f6;
    color: #6b7280;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

    .site-footer p {
        margin: 0;
    }
