/* =============================================================================
   PRODUIT.CSS — Pages produit / fonctionnalités
   Dépend de global.css pour les tokens, reset, composants de base.
   ============================================================================= */

body {
    background-color: var(--color-bg-page);
}


/* =============================================================================
   HEADER
   ============================================================================= */

header {
    position: relative;
    padding: 2rem;
}

.header_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: var(--width-content);
    margin: auto;
    margin-top: 10rem;
}

header h1 {
    width: var(--width-narrow);
}

header p {
    color: var(--color-text-secondary);
}

header b {
    font-weight: 500;
    color: var(--color-accent);
}

header .header_content p:last-of-type {
    width: var(--width-narrow);
}

@media (max-width: 900px) {
    .header_content {
        width: 100%;
    }

    header .header_content p:last-of-type {
        width: 100%;
    }

    header h1 {
        width: 100%;
    }
}


/* =============================================================================
   HEADER — LANDING FORM
   ============================================================================= */

.landing-form-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    width: var(--width-wide);
    margin: auto;
    margin-top: 10rem;
}

.landing-form .header_content {
    width: auto;
    flex: 1;
    padding: 2rem;
    margin-top: auto;
}

.landing-form .header_content * {
    width: auto !important;
}

.landing-form form {
    width: 30%;
    background-color: white;
    padding: 4rem;
    border-radius: 2rem;
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-form .form-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.form_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form_element {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

/* Les inputs héritent des styles global — on surcharge seulement ce qui est propre au landing */
.landing-form form input,
.landing-form form textarea {
    border-radius: 1rem;
    border: 1px solid var(--color-text-disabled);
    width: auto;
}

.landing-form form input:hover,
.landing-form form textarea:hover {
    border-color: var(--color-accent);
}

.landing-form form input:focus,
.landing-form form textarea:focus {
    box-shadow: 0 0 1rem .25rem var(--color-accent-light);
    border-color: var(--color-accent);
}

.landing-form form button {
    width: 100%;
    margin-top: 1rem;
}

/* Message d'erreur */
.error-message {
    display: none;
    color: var(--color-text-secondary);
    padding: .25rem 1rem;
    background-color: var(--color-bg-subtle);
    width: fit-content;
    border-radius: .5rem;
    margin-top: .5rem;
    font-size: var(--text-xs);
}

.form_element.error .error-message {
    display: block;
}

/* Label obligatoire */
.landing-form label.obligatoire {
    display: flex;
    align-items: center;
}

.landing-form .obligatoire::after {
    content: "*";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-left: .25rem;
}

@media (max-width: 900px) {
    .landing-form-container {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .landing-form form {
        width: auto;
    }
}


/* =============================================================================
   HEADER — PAGE CONTACT
   ============================================================================= */

.landing-form .header_content .contact_info {
    width: 100% !important;
}

.landing-form .header_content .contact_info iframe {
    width: 100% !important;
}

.contact_info-data {
    border: 1px solid var(--color-border-strong);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 1rem;
    background-color: var(--color-bg-subtle);
    gap: .5rem;
}

.contact_info-data p {
    color: var(--gray-800);
}

.contact_info-data p strong {
    font-weight: 400;
    color: var(--color-text-secondary);
}


/* =============================================================================
   MAIN + SECTIONS
   ============================================================================= */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    display: flex;
    padding: 4rem 0;
    flex-direction: column;
    align-items: center;
    gap: 3.75rem;
    width: var(--width-content);
}

.nav-mobile button {
    display: none;
}

@media (max-width: 900px) {
    section {
        width: 92%;
        border-bottom: 1px solid var(--color-border);
        padding: 2.5rem 0;
    }

    .nav-mobile button {
        display: flex;
    }
}


/* =============================================================================
   SECTION IMAGE — grille 2 colonnes / 2 lignes
   ============================================================================= */

.section-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "top right" "bottom right";
    gap: 1rem;
    height: 60vh;
}

.img-top {
    grid-area: top;
}

.img-bottom {
    grid-area: bottom;
}

.img-right {
    grid-area: right;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

.section-image>* {
    min-height: 0;
}

@media (max-width: 900px) {
    .section-image {
        height: 40vh;
    }
}


/* =============================================================================
SECTION TOGGLE
============================================================================= */

.toggle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    background-color: var(--color-bg-subtle);
    border-radius: 2rem;
    border: 1px solid var(--color-border);
    width: var(--width-wide);
    padding: 4rem;
    margin: auto;
    overflow: hidden;
}

/* Texture grille */
.dot {
    background-image:
        linear-gradient(to right, var(--color-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* En-tête */
.toggle-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    width: var(--width-narrow);
}

/* Contrôle toggle */
.toggle-control {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.toggle-label {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-default);
    transition: color .25s ease;
}

.toggle-label.is-inactive {
    color: var(--color-text-disabled);
}

/* Images */
.toggle-images {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.toggle-img {
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gray-600);
    transition: transform .5s ease, opacity .4s ease, z-index .3s;
}

.toggle-img:nth-child(1) {
    height: 44rem;
    width: auto;
    translate: 1rem 0;
}

.toggle-img:nth-child(2) {
    height: 48rem;
    width: auto;
    translate: -1rem 0;
}

.toggle-img.is-active {
    z-index: 2;
    transform: scale(1);
    opacity: 1;
}

.toggle-img.is-inactive {
    z-index: 1;
    transform: scale(.98);
    opacity: .5;
}

/* Responsive */
@media (max-width: 900px) {
    .toggle-section   { padding: 2rem; gap: 2rem; width: -webkit-fill-available; }
    .toggle-header    { width: 100%; }
    .toggle-control   { gap: 1rem; }

    .toggle-img:nth-child(1) { height: 20rem; translate: 4rem 0; }
    .toggle-img:nth-child(2) { height: 22rem; translate: -4rem 0; }
}


/* =============================================================================
SECTION FEATURES
============================================================================= */

.section-feature {
    width: var(--width-content);
    gap: 3.75rem;
}

.section-feature-produits {
    width: var(--width-narrow);
}

@media (max-width: 900px) {
    .section-feature-produits {
        width: 100%;
    }
}

.section-feature h2,
.section-feature-produits h2 {
    text-align: center;
    font-weight: 500;
}

.feature-bloc {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

.feature-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border-strong);
    align-items: center;
    padding: 2rem;
    border-radius: 2.5rem;
    gap: 3rem;
    flex: 1;
}

.feature-container-reverse {
    flex-direction: row-reverse;
}

.feature-img {
    background-color: var(--color-border);
    border: 1px solid var(--color-border-strong);
    flex: 1;
    border-radius: 2rem;
    display: flex;
    width: 100%;
    height: 24rem;
}

.feature-img img {
    align-self: center;
    margin: auto;
    object-fit: contain;
    height: 24rem;
    max-width: 84%;
    max-height: 84%;
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    text-align: center;
}

.feature-text p {
    color: var(--color-text-secondary);
}

.feature-text p:first-child {
    color: var(--color-accent);
}

/* Variantes layout */
.section-feature-column .feature-container {
    flex-direction: column;
    height: auto;
}

.section-feature-column .feature-bloc {
    flex-direction: row;
}

.lp .feature-text button {
    margin-top: 1rem;
}

.feature-bloc-column {
    flex-direction: column;
}

.feature-bloc-column .feature-container {
    flex-direction: row;
}

.feature-bloc-column .feature-container-reverse {
    flex-direction: row-reverse;
}

.feature-bloc-column .feature-text {
    text-align: left;
}

.produits .feature-bloc .feature-text {
    text-align: left;
}

@media (max-width: 900px) {
    .section-feature {
        gap: 2rem;
    }

    .feature-bloc {
        flex-direction: column;
    }

    .feature-container {
        gap: 2rem;
        flex-direction: column;
        height: auto;
    }

    .feature-text {
        align-items: flex-start;
        text-align: start;
    }

    .section-feature-column .feature-bloc {
        flex-direction: column;
    }

    .feature-bloc-column .feature-container {
        flex-direction: column;
    }
}


/* =============================================================================
   SECTION CUSTOM (marque blanche — pages produit)
   ============================================================================= */

.section-custom {
    width: var(--width-narrow);
}

@media (max-width: 900px) {
    .section-custom {
        width: 100%;
    }
}

.custom-container {
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: 2.5rem;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

.custom-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 60%;
    padding: 5rem 2.5rem;
}

.custom-container img {
    position: absolute;
    right: 4rem;
    top: 2rem;
    width: 24%;
    align-self: flex-end;
}

@media (max-width: 900px) {
    .custom-container {
        flex-direction: column;
        gap: 0;
    }

    .custom-text {
        width: calc(100% - 5rem);
        text-align: center;
        align-items: center;
    }

    .custom-container img {
        position: static;
        margin: auto;
        width: 60%;
    }
}


/* =============================================================================
   SECTION CHIFFRES
   ============================================================================= */

.section-chiffre p {
    color: var(--color-text-secondary);
}

.section-chiffre .cta-container p {
    width: var(--width-content);
}

.chiffre-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.chiffre-item {
    padding: 1.25rem;
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border-strong);
    border-radius: 1.25rem;
    gap: 1.25rem;
    display: flex;
    flex-direction: column;
}

.chiffre-item span {
    color: var(--color-accent);
    padding: .25rem 1.25rem;
    font-size: var(--text-2xl);
    font-family: var(--font-sans);
    /* Poppins retiré */
    background-color: var(--color-accent-light);
    border-radius: 1.25rem;
    width: fit-content;
}

.section-chiffre .icon {
    background-color: var(--color-accent-light);
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid var(--color-border-strong);
    display: flex;
    border-radius: 1rem;
}

.section-chiffre .icon svg {
    fill: var(--color-accent);
    width: 2rem;
    height: 2rem;
    margin: auto;
}

.chiffre-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--overlay-light-20);
}

@media (max-width: 900px) {
    .section-chiffre .cta-container p {
        width: 100%;
    }

    .chiffre-container {
        grid-template-columns: 1fr;
    }

    .chiffre-item span {
        font-size: var(--text-xl);
    }

    .section-chiffre .icon {
        display: none;
    }
}


/* =============================================================================
   SECTION CTA
   ============================================================================= */

.section-cta {
    /* Full-bleed — sort du padding body sur mobile */
    width: calc(100% - 4rem);
    border-bottom: none;
    background: linear-gradient(to top,
            var(--color-accent) 0%,
            var(--color-bg-page) 100%);
}

@media (max-width: 900px) {
    .section-cta {
        margin: 0;
        padding: 8rem 0 0 0;
        width: -webkit-fill-available;
    }
}

.section-cta h1 {
    width: var(--width-narrow);
}

.cta-container {
    width: var(--width-wide);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--overlay-light-20);
    padding-bottom: 4rem;
}

@media (max-width: 900px) {
    .cta-container {
        width: 92%;
    }
}

.section-cta .icon {
    background-color: var(--color-accent-light);
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid var(--color-border-strong);
    display: flex;
    border-radius: 1rem;
}

.section-cta .icon svg {
    fill: var(--color-accent);
    width: 2rem;
    height: 2rem;
    margin: auto;
}

/* Le footer sur ces pages est toujours bleu — le global.css l'a déjà défini */

footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (max-width: 900px) {
    .section-cta h1 {
        width: 100%;
    }

    .section-cta .icon {
        display: none;
    }
}

.footer_brand img {width: -webkit-fill-available;}

/* =============================================================================
SECTION CLIENTS
============================================================================= */

.clients-section {
    margin: 0 -2rem;
    padding: 4rem 2rem;
}

@media (min-width: 900px) {
    .clients-section {
        margin: 0;
        padding: 5rem 0;
    }
}

.clients-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

/* --- Marquee --- */
.logo-marquee {
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
    overflow: hidden;
}

.logo-marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-left 40s linear infinite;
    /* Supprime le fond blanc des PNG */
    mix-blend-mode: darken;
}

.logo-marquee-group {
    display: flex;
    align-items: center;
    gap: 5vw;
    padding-right: 5vw;
}

.logo-marquee-group img {
    width: clamp(80px, 9vw, 160px);
    height: 48px;
    object-fit: contain;

    transition: transform .4s ease;
    cursor: pointer;
}

/* Hover — vraies couleurs */
.logo-marquee-group img:hover {
    transform: scale(1.08);
}

/* Fondu latéral — masque les bords et assure la transition
   vers le fond de page (beige) */
.logo-marquee-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right,
            var(--color-bg-page) 0%,
            transparent 10%,
            transparent 90%,
            var(--color-bg-page) 100%);
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .logo-marquee-group img {
        width: clamp(60px, 20vw, 120px);
        height: 36px;
    }
}