/* =====================================================================
   Feuille de style du site MyProdis.ch
   Reprend l'apparence du site WebDev (MP_Master, extra.css, palette-MyProdis.css).
   Points de rupture : Bootstrap « lg » (992 px) pour le menu mobile
   (WebDev utilisait 951 px et 481 px).
   ===================================================================== */

/* ----- Police Nunito Sans, hébergée sur le site ----- */
@font-face {
    font-family: "Nunito Sans";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/NunitoSans-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Nunito Sans";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/NunitoSans-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Nunito Sans";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("../fonts/NunitoSans-Bold.ttf") format("truetype");
}

/* ----- Palette (couleurs relevées sur le site d'origine) ----- */
:root {
    --mp-red: #E31D26;            /* rouge vif : titres, accents */
    --mp-red-dark: #AD2A37;       /* rouge foncé : bandeau et boutons d'origine */
    --mp-gray: #666C74;
    --mp-gray-light: #DEDEDE;
    --mp-text: #404852;           /* texte courant */
    --mp-footer-bg: #2E3133;      /* fond du pied de page */
    --mp-section-bg: #F7F5F5;     /* fond des sections grises */

    /* Couleur du bandeau en haut des pages (rouge foncé d'origine ; bleu pendant la migration, jusqu'à la phase 9) */
    --mp-banner: var(--mp-red-dark);

    --mp-navbar-height: 80px;
}

/* ----- Base ----- */
html {
    scroll-padding-top: var(--mp-navbar-height); /* les ancres (#histoire…) ne passent pas sous la barre fixe */
}

body {
    font-family: "Nunito Sans", Arial, sans-serif;
    color: var(--mp-text);
    background-color: #FFFFFF;
    padding-top: var(--mp-navbar-height); /* place pour la barre de navigation fixe */
    /* Pied de page toujours en bas de l'écran, même sur les pages courtes */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Largeur maximale du contenu : 1200 px, comme les pages WebDev */
.container {
    max-width: 1200px;
}

/* Le bandeau passe sous la barre de navigation transparente */
body.has-banner {
    padding-top: 0;
}

a {
    color: inherit;
}

/* ----- Barre de navigation ----- */
.site-navbar {
    min-height: var(--mp-navbar-height);
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--mp-gray-light);
    transition: background-color 300ms ease, border-color 300ms ease;
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

/*
    Texte « MyProdis » du logo (phase 10) : gris très foncé sur la barre blanche (accueil, et autres pages après
    défilement), blanc sur la barre transparente au-dessus du bandeau de couleur. Gris clair #DEDEDE à l'origine.
*/
.site-navbar .brand-text {
    font-size: 1.375rem;
    color: #333333;
    transition: color 300ms ease;
}

.site-navbar.navbar-transparent .brand-text {
    color: #FFFFFF;
}

.site-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mp-footer-bg);
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--mp-red-dark);
}

.site-navbar .dropdown-menu {
    border-radius: 0;
    border-color: var(--mp-gray-light);
}

/* Sous-menu Produits ouvert au survol de la souris sur grand écran, comme sur le site d'origine
   (le clic reste possible ; sur mobile et tablette tactile, il s'ouvre au toucher) */
@media (hover: hover) and (min-width: 992px) {
    .site-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* pas d'espace entre « Produits » et le sous-menu, sinon il se refermerait */
    }
}

.site-navbar .dropdown-item {
    font-size: 0.875rem;
    color: var(--mp-text);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item.active {
    color: var(--mp-red-dark);
    background-color: var(--mp-section-bg);
}

.site-navbar .navbar-toggler {
    border: 0;
    box-shadow: none;
}

.lang-switch {
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 22px;
    color: var(--mp-gray);
}

.lang-switch .lang-current {
    color: var(--mp-text);
}

/* Lien vers l'autre langue : même couleur que le texte du sélecteur, plus foncé au survol */
.lang-switch .lang-other {
    color: inherit;
    text-decoration: none;
}

.lang-switch .lang-other:hover {
    color: var(--mp-text);
}

.site-navbar.navbar-transparent .lang-switch .lang-other:hover {
    color: #FFFFFF;
}

.lang-switch .lang-separator {
    margin: 0 6px;
}

.btn-myprodisweb {
    display: inline-block;
    font-size: 0.875rem;
    padding: 7px 12px;
    border: 1px solid var(--mp-red-dark);
    border-radius: 2px;
    color: var(--mp-red-dark);
    cursor: default; /* sans action pendant la migration */
}

/* Barre transparente au-dessus du bandeau (classe navbar-transparent d'extra.css) */
.site-navbar.navbar-transparent {
    background-color: transparent;
    border-bottom-color: transparent;
}

.site-navbar.navbar-transparent .nav-link,
.site-navbar.navbar-transparent .lang-switch {
    color: rgba(255, 255, 255, 0.7);
}

.site-navbar.navbar-transparent .nav-link:hover,
.site-navbar.navbar-transparent .nav-link.active,
.site-navbar.navbar-transparent .lang-switch .lang-current {
    color: #FFFFFF;
}

.site-navbar.navbar-transparent .btn-myprodisweb {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.site-navbar.navbar-transparent .menu-toggler {
    filter: invert(1);
}

/* Menu mobile ouvert : fond plein pour rester lisible au-dessus du contenu */
@media (max-width: 991.98px) {
    .site-navbar.navbar-transparent:has(.navbar-collapse.show),
    .site-navbar.navbar-transparent:has(.navbar-collapse.collapsing) {
        background-color: var(--mp-banner);
    }

    .site-navbar .navbar-collapse {
        padding-bottom: 16px;
    }

    .site-navbar .nav-link {
        padding-left: 0 !important;
    }

    .lang-switch {
        margin: 8px 0 12px;
    }
}

/* ----- Bandeau de page ----- */
.page-banner {
    background-color: var(--mp-banner);
    color: #FFFFFF;
    min-height: 290px;
    /* Comme l'original (.pos58, .l-1, .l-2) : haut du titre à 140 px (barre 80 px + 60 px), ~95 px dessous */
    padding: calc(var(--mp-navbar-height) + 70px) 16px 95px;
    display: flex;
    align-items: flex-start; /* titre placé depuis le haut, pas centré */
    justify-content: center;
    text-align: center;
}

/* Téléphone : haut du titre à 115 px comme l'original */
@media (max-width: 480px) {
    .page-banner {
        padding-top: calc(var(--mp-navbar-height) + 35px);
    }
}

/* Comme le titre d'origine (classe l-2) : police NunitoSans- Bold (700), 35 px */
.page-banner h1 {
    font-size: 2.1875rem;
    font-weight: 700;
    margin: 0;
}

/* Texte centré sous le bandeau (page d'erreur ; servait aussi aux pages pas encore migrées) */
.migration-placeholder {
    padding-top: 75px;
    padding-bottom: 75px;
    text-align: center;
    color: var(--mp-gray);
}

/* ----- Pied de page ----- */
.site-footer {
    position: relative;
    background-color: var(--mp-footer-bg);
    color: #FFFFFF;
    padding-top: 75px;
    font-size: 0.875rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 46px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Colonnes régulières sur grand écran, comme sur le site d'origine */
@media (min-width: 992px) {
    .footer-links {
        column-gap: 0;
    }

    /* Largeur minimale de 125 px ; une colonne s'élargit si un texte est plus long
       (ex. « Erfahrungsberichte » en allemand), avec un espace minimal avant la colonne suivante */
    .footer-links ul {
        min-width: 125px;
        padding-right: 12px;
    }

    .footer-links ul:last-child {
        width: auto;
    }
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links .footer-title {
    margin-bottom: 14px;
}

.footer-links .footer-title-spaced {
    margin-top: 40px;
}

.contact-info-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.contact-info-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-info-line svg {
    flex-shrink: 0;
}

.footer-cubes {
    display: block;
    margin-top: 40px;
    max-width: 300px;
    height: auto;
}

.footer-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0;
    text-align: center;
    /* Plus lisible (phase 10) : 13 px et gris clair, contraste ~9:1 (11 px et #909090 à l'origine, ~4:1) */
    font-size: 0.8125rem;
    color: #C8C8C8;
}

@media (max-width: 991.98px) {
    .footer-grid {
        flex-direction: column;
    }

    .footer-cubes {
        margin-top: 24px;
    }

    .footer-bottom {
        position: static;
        padding: 8px 16px 16px;
    }
}

/* ----- Flèche « retour en haut » (bouton M54 de MP_Master, style l-100) ----- */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 40px;
    background-color: rgba(46, 49, 51, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease, background-color 300ms ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: rgba(46, 49, 51, 0.50);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================================
   Éléments communs aux pages (phase 4)
   ===================================================================== */

/* Bouton rouge (style l-50 de WebDev : #B12C37, plus foncé au survol) */
.btn-mp {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #B12C37;
    border-radius: 12px;
    background-color: #B12C37;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
}

.btn-mp:hover,
.btn-mp:active {
    background-color: #981C26;
    color: #FFFFFF;
}

.btn-mp:focus-visible {
    box-shadow: 0 4px 11px 0 rgba(177, 44, 55, 0.25);
    outline: 0;
}

/* Titre de section (style l-39 : 30 px, gras, centré) */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 50px;
}

/* Lignes dégradées rouge → gris en haut et en bas d'une section (classes .section / .sectionLineTop d'extra.css) */
.section-lines::before,
.section-lines::after,
.section-lines-top::before {
    display: block;
    content: "";
    width: 100%;
    height: 1px;
}

.section-lines::before,
.section-lines-top::before {
    background: linear-gradient(to right, var(--mp-red), var(--mp-gray-light), var(--mp-gray-light));
}

.section-lines::after {
    background: linear-gradient(to left, var(--mp-red), var(--mp-gray-light), var(--mp-gray-light));
}

/* =====================================================================
   Accueil (P_Home)
   ===================================================================== */

.home-hero {
    min-height: 675px;
    padding: 130px 16px 80px;
    background: url("../img/accueil_header.jpg") center top / cover no-repeat;
    color: #FFFFFF;
    text-align: center;
}

.home-hero-title {
    font-size: 2.1875rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 115px;
}

.home-hero-text {
    max-width: 795px;
    margin: 0 auto 70px;
    padding: 25px 45px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.70);
    color: #000000;
    line-height: 1.6;
}

.home-testimonials {
    padding: 75px 0 60px;
    background-color: var(--mp-section-bg);
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 70px;
}

.testimonial {
    max-width: 640px;
    margin: 0 auto;
}

.testimonial-quote {
    display: block;
    margin-bottom: 40px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 40px;
}

.testimonial-author {
    display: block;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.testimonial-role {
    display: block;
    font-size: 80%;
    font-weight: 700;
    color: #98999B;
    text-transform: uppercase;
}

/* Flèches : petits carrés blancs à gauche et à droite, centrés en hauteur */
.testimonials-carousel .testimonials-arrow {
    top: 50%;
    bottom: auto;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 1px solid var(--mp-gray-light);
    border-radius: 8px;
    background-color: #FFFFFF;
    opacity: 1;
}

.testimonials-carousel .testimonials-arrow:hover {
    background-color: var(--mp-gray-light);
}

/* Rangée des logos clients (styles l-40 à l-46) : gris et transparents, en couleur au survol et si actifs */
.testimonials-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 703px;
    margin: 20px auto 0;
    padding-top: 15px;
    border-top: 1px solid var(--mp-gray-light);
}

.testimonials-partners .partner {
    padding: 0;
    border: 0;
    background: none;
    opacity: 0.5;
    filter: grayscale(1);
    transition: filter 300ms ease-in-out, opacity 300ms ease-in-out;
    cursor: pointer;
}

.testimonials-partners .partner img {
    display: block;
    max-width: 110px;
    max-height: 58px;
}

.testimonials-partners .partner:hover,
.testimonials-partners .partner.partner-active {
    opacity: 1;
    filter: grayscale(0);
}

@media (max-width: 575.98px) {
    .home-hero-text {
        padding: 20px;
    }

    .testimonials-carousel {
        padding: 0 50px;
    }

    .testimonials-partners {
        justify-content: center;
    }
}

/* =====================================================================
   Entreprise (P_Company)
   ===================================================================== */

.company-stats {
    padding: 30px 0 70px;
    background-color: var(--mp-section-bg);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 145px;
    padding: 0 30px;
    border: 1px solid var(--mp-gray-light);
    border-radius: 16px;
    background-color: #FFFFFF;
}

.stat-value {
    font-size: 2.1875rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
    margin: 0 0 8px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Tablette : 3 cartes par ligne mais plus étroites ; contenu réduit pour que « 61'000 » tienne dans sa carte
   (débordement relevé par les captures de la phase 7) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .stat-card {
        gap: 14px;
        padding: 0 16px;
    }

    .stat-card img {
        width: 56px;
        height: 56px;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

.company-history .container {
    padding-top: 75px;
    padding-bottom: 50px;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.history-row img {
    flex: 0 0 80px;
    object-fit: contain;
}

.history-row p {
    margin: 0;
    text-align: justify;
    color: #000000;
}

.company-team {
    padding: 75px 0;
    background-color: var(--mp-section-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 213px);
    justify-content: center;
    gap: 20px 18px;
}

.team-card {
    padding: 18px 10px 20px;
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.team-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #000000;
    margin: 18px 0 6px;
}

.team-role {
    font-size: 0.8125rem;
    color: var(--mp-gray);
    margin: 0;
}

@media (max-width: 767.98px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 213px));
    }

    .history-row {
        gap: 20px;
    }
}

@media (max-width: 459.98px) {
    .team-grid {
        grid-template-columns: minmax(0, 260px);
    }
}

/* =====================================================================
   Clients (P_Customers) : styles .card d'extra.css, renommés customer-card
   (Bootstrap a aussi une classe .card)
   ===================================================================== */

.customers {
    padding: 35px 0 60px;
    background-color: var(--mp-section-bg);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    justify-content: center;
    gap: 20px 48px;
}

.customer-card {
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--mp-gray-light);
    border-radius: 16px;
    background: #FFFFFF;
    outline: 0;
}

.customer-card-thumb {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-color: #FFFFFF;
    transition: height 0.3s;
}

.customer-card-thumb img {
    width: 200px;
    max-height: 150px;
    object-fit: contain;
}

.customer-card-category {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.25rem; /* 20 px */
    padding-left: 40px;
    line-height: 1.25rem;
    font-size: 0.75rem; /* 12 px (11 px à l'origine, trop petit ; phase 10) */
    color: #FFFFFF;
    text-transform: uppercase;
    background-color: var(--mp-red-dark);
}

.customer-card-body {
    position: relative;
    height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: height 0.3s;
}

.customer-card-title {
    margin: 0;
    padding: 25px 0 5px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-red-dark);
    text-transform: uppercase;
}

.customer-card-subtitle,
.customer-card-description {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.2s, transform 0.2s;
}

.customer-card-subtitle {
    margin: 0;
    padding: 10px 0;
    font-size: 0.875rem; /* 14 px */
}

.customer-card-description {
    margin: 0;
    padding-left: 1.2em;
    font-size: 0.875rem; /* 14 px */
    line-height: 1.6875rem; /* 27 px */
    color: var(--mp-gray);
}

.customer-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 0.75rem; /* 12 px (11 px à l'origine, trop petit ; phase 10) */
}

.customer-card-arrow {
    margin-left: auto;
    opacity: 0.4;
    filter: invert(1);
    transition: transform 0.3s;
}

/* Carte ouverte : au survol (comme l'original), et au toucher ou au clavier (focus) */
.customer-card:hover .customer-card-thumb,
.customer-card:focus-within .customer-card-thumb {
    height: 0;
}

.customer-card:hover .customer-card-body,
.customer-card:focus-within .customer-card-body {
    height: 200px;
}

.customer-card:hover .customer-card-title,
.customer-card:focus-within .customer-card-title {
    animation: titleBlur 0.3s;
}

.customer-card:hover .customer-card-subtitle,
.customer-card:focus-within .customer-card-subtitle {
    animation: subtitleBlur 0.3s;
}

.customer-card:hover .customer-card-subtitle,
.customer-card:hover .customer-card-description,
.customer-card:focus-within .customer-card-subtitle,
.customer-card:focus-within .customer-card-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.customer-card:hover .customer-card-arrow,
.customer-card:focus-within .customer-card-arrow {
    transform: rotate(-180deg);
}

.customer-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(177, 44, 55, 0.35);
}

@keyframes titleBlur {
    0% { opacity: 0.6; text-shadow: 0 5px 5px rgba(0, 0, 0, 0.6); }
    100% { opacity: 1; text-shadow: 0 5px 5px transparent; }
}

@keyframes subtitleBlur {
    0% { opacity: 0.6; text-shadow: 0 5px 5px rgba(227, 26, 35, 0.6); }
    100% { opacity: 1; text-shadow: 0 5px 5px rgba(56, 196, 165, 0); }
}

@media (max-width: 991.98px) {
    .customers-grid {
        grid-template-columns: repeat(2, 280px);
        column-gap: 30px;
    }
}

@media (max-width: 629.98px) {
    .customers-grid {
        grid-template-columns: minmax(0, 320px);
    }
}

/* =====================================================================
   Emploi, Support, Protection des données, Plan du site
   ===================================================================== */

.job-offers {
    padding: 40px 0 100px;
    text-align: center;
}

.job-no-offer {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.job-empty {
    min-height: 340px;
    background-color: var(--mp-section-bg);
}

.support {
    padding: 155px 0 300px;
    text-align: center;
}

.support-teamviewer {
    display: inline-block;
}

.support-teamviewer img {
    width: 270px;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .support {
        padding: 80px 0 120px;
    }
}

.data-security {
    padding: 45px 0 70px;
}

.data-security .container {
    max-width: 1032px;
}

/* Titres : 24 px en gras, comme le texte riche d'origine (<p style="font-size:24px;font-weight:bold;">) */
.data-security h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
}

.data-security h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 50px 0 30px;
}

.data-security p {
    text-align: justify;
    color: #000000;
}

.data-security-signature {
    margin-top: 30px;
}

.sitemap {
    padding: 60px 0 80px;
}

.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
}

.sitemap-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 9px;
}

.sitemap-links .footer-title {
    font-weight: 700;
    margin-bottom: 14px;
}

.sitemap-links .footer-title-spaced {
    margin-top: 40px;
}

.sitemap-links a {
    color: var(--mp-text);
    text-decoration: none;
}

.sitemap-links a:hover {
    color: var(--mp-red-dark);
    text-decoration: underline;
}

/* =====================================================================
   Page Produits (P_Products) : cartes .card-products d'extra.css, renommées product-card
   ===================================================================== */

.products {
    padding: 35px 0 75px;
    background-color: var(--mp-section-bg);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1020px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    border-radius: 1rem;
    background-color: #FFFFFF;
    box-shadow: 0 0 0.625rem -0.1875rem rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: box-shadow 0.2s ease-in-out;
}

/* Bordure rouge légère au survol */
.product-card::before {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(227, 24, 34, 0.25);
    border-radius: 1rem;
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.product-card:hover::before,
.product-card:focus-visible::before {
    opacity: 1;
}

.product-card:hover {
    box-shadow: 0.1875rem 0.1875rem 0.625rem -0.125rem rgba(0, 0, 0, 0.15);
}

.product-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 202px;
    object-fit: cover;
}

/* Dégradé rouge et texte « Découvrir » sur la photo au survol */
.product-card-image::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(to top, rgba(227, 24, 34, 0.5) 0%, rgba(227, 24, 34, 0.3) 35%, rgba(118, 109, 244, 0) 100%);
    transition: opacity 0.3s ease-in-out;
}

.product-card-discover {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.product-card:hover .product-card-image::after,
.product-card:hover .product-card-discover,
.product-card:focus-visible .product-card-image::after,
.product-card:focus-visible .product-card-discover {
    opacity: 1;
}

.product-card-body {
    display: block;
    padding: 1.5rem;
    color: #677788;
    font-size: 0.9375rem; /* 15 px comme les pages produits (14 px à l'origine ; phase 10) */
}

.product-card-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mp-red);
}

.products-architecture {
    max-width: 640px;
    margin: 60px auto 0;
    padding: 30px 50px;
    border-radius: 16px;
    background-color: #FFFFFF;
    box-shadow: 0 0 0.625rem -0.1875rem rgba(0, 0, 0, 0.15);
}

.products-architecture h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.products-architecture ul {
    margin: 0;
    padding-left: 18px;
    color: #677788;
    font-size: 0.9375rem; /* 15 px comme les pages produits (14 px à l'origine ; phase 10) */
}

.products-architecture li {
    margin-bottom: 10px;
}

.products-video .container {
    padding-top: 75px;
    padding-bottom: 75px;
}

.products-text {
    text-align: center;
    color: #000000;
    font-size: 0.9375rem; /* 15 px comme les pages produits (14 px à l'origine ; phase 10) */
    margin-bottom: 40px;
}

.products-video-frame {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.products-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.products-concept {
    padding: 75px 0;
    background-color: var(--mp-section-bg);
    text-align: center;
}

/* Hauteur d'origine : 809 px, image réduite proportionnellement (champ image WebDev « homothétique ») */
.products-concept-image {
    max-width: 100%;
    max-height: 809px;
    width: auto;
    height: auto;
}

@media (max-width: 991.98px) {
    .product-card {
        flex-basis: 290px;
    }

    .products-architecture {
        padding: 25px;
    }
}

/* =====================================================================
   Pages produits (P_MyPro…) : classes .software-description et .functionality d'extra.css
   ===================================================================== */

.product-intro {
    padding: 35px 0 30px;
}

.product-description {
    max-width: 1100px;
    margin: 0 auto 70px;
    padding: 30px;
    border: 1px solid var(--mp-gray-light);
    border-radius: 16px;
    background-color: var(--mp-section-bg);
}

.product-description h2,
.product-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-red);
}

.product-description h2 {
    margin-bottom: 8px;
}

/* Texte des pages produits : 15 px (14 px à l'origine), aligné à gauche (phase 10) */
.product-description p {
    margin: 0;
    font-size: 0.9375rem;
    color: #000000;
}

/* Blocs « icône + titre + liste » : 3 par ligne */
.product-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-block {
    margin-bottom: 60px;
    padding-right: 30px;
}

.product-block img {
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
}

.product-block h3 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 0.5rem;
}

.product-block ul,
.product-group ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9375rem;
    color: #000000;
}

.product-details {
    background-color: var(--mp-section-bg);
}

.product-details .container {
    max-width: 1100px;
    padding-top: 60px;
    padding-bottom: 50px;
}

.product-details h2 {
    margin-bottom: 30px;
}

/* Paragraphes sur 2 colonnes (« Documents et processus ») */
.product-paragraphs {
    column-count: 2;
    column-gap: 40px;
    margin-bottom: 25px;
    font-size: 0.9375rem;
    color: #000000;
}

/* Aligné à gauche : justifié à l'origine, ce qui créait de grands trous entre les mots (phase 10) */
.product-paragraphs p {
    margin-bottom: 1rem;
}

/* Groupes de fonctionnalités sur 2 colonnes */
.product-columns {
    display: flex;
    gap: 40px;
}

.product-column {
    flex: 1 1 50%;
}

.product-group {
    margin-bottom: 20px;
}

.product-group h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.product-schema {
    padding: 60px 0;
    text-align: center;
}

/* Schémas SVG (Pages/Products/Schemas) : même taille que les images d'origine, 524 px de haut au plus */
.product-schema svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.schema-myprocess { max-width: 734px; } /* 910 × 650 réduit à 524 px de haut */
.schema-mypension { max-width: 527px; } /* 527 × 472 : taille d'origine */
.schema-myconnect { max-width: 537px; } /* 957 × 934 réduit à 524 px de haut */

.schema-shape,
.schema-icon-paper {
    fill: #919191;
}

.schema-line {
    fill: none;
    stroke: #919191;
    stroke-width: 3;
    stroke-linejoin: round;
}

.schema-arrow {
    fill: #c0c0c0;
}

.schema-ring {
    fill: #fff;
    stroke: #919191;
    stroke-width: 23;
}

.schema-label,
.schema-ring-text,
.schema-icon-text {
    fill: #fff;
    stroke: none;
    text-anchor: middle;
}

.schema-ring-text,
.schema-icon-text {
    dominant-baseline: central;
}

.schema-icon {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 950px) {
    .product-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-paragraphs {
        column-count: 1;
    }

    .product-columns {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .product-blocks {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-block {
        padding-right: 0;
    }
}

/* =====================================================================
   Contact (P_Contact)
   ===================================================================== */

.contact-form-section {
    padding: 45px 0 75px;
}

.contact-area {
    max-width: 490px;
    margin: 0 auto;
}

/* 4 états de la zone (plans WebDev) : un seul visible à la fois, selon data-state */
.contact-state,
.contact-area[data-state="sending"] .contact-form,
.contact-area[data-state="success"] .contact-form,
.contact-area[data-state="failure"] .contact-form {
    display: none;
}

.contact-area[data-state="sending"] .contact-sending,
.contact-area[data-state="success"] .contact-success,
.contact-area[data-state="failure"] .contact-failure {
    display: block;
}

.contact-sending {
    padding: 40px 0;
    text-align: center;
    color: var(--mp-red-dark);
}

.contact-success,
.contact-failure {
    padding: 40px 0 60px;
    text-align: center;
    font-size: 1.125rem;
}

.contact-field {
    margin-bottom: 24px;
}

/* Champs : libellé dans le champ, comme sur le site d'origine (hauteur 56 px) */
.contact-input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 17px;
    border: 1px solid var(--mp-gray-light);
    border-radius: 2px;
    background-color: #FFFFFF;
    color: var(--mp-text);
    font: inherit;
    transition: border-color 200ms ease-in-out;
}

.contact-textarea {
    height: 176px;
    padding-top: 14px;
    resize: vertical;
}

.contact-input::placeholder {
    color: var(--mp-gray);
}

.contact-input:focus {
    border-color: var(--mp-gray);
    outline: 0;
}

/* Champ en erreur (classe wbLibChampError d'origine) et message sous le champ */
.contact-input.contact-input-error {
    border-color: var(--mp-red);
}

.contact-error {
    margin: 6px 0 0;
    color: var(--mp-red);
    font-size: 0.875rem;
}

/*
    Champ piège anti-robots (Services/SpamGuard.cs) : hors de l'écran plutôt que display:none, que certains robots
    savent reconnaître pour ne pas remplir le champ
*/
.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    text-align: center;
}

.contact-submit .btn-mp {
    min-width: 150px;
    border-radius: 4px;
}

.contact-submit .btn-mp:disabled {
    opacity: 0.65;
}

/* Notre bureau : fond gris, coordonnées centrées (bloc _ContactInfo du pied de page, en texte foncé) */
.contact-office {
    padding: 75px 0;
    border-top: 1px solid #C8C8C8;
    background-color: var(--mp-section-bg);
}

.contact-office .contact-info {
    width: fit-content;
    margin: 0 auto;
    color: #000000;
}

.contact-office .contact-info a {
    color: #000000;
    text-decoration: none;
}

.contact-office .contact-info a:hover {
    color: var(--mp-red-dark);
}

.contact-office .contact-info-title {
    font-size: 1.25rem;
}
