/* =========================================================
   /produits — Corporate refresh matching the rest of the site.
   Hero blue + 3 product cards (clean) + final CTA.
   Scoped under #products.produits-page.
   ========================================================= */

#products.produits-page {
    color: #1a2a3a;
    background: #fff;
    padding: 0;
    margin: 0;
}

#products.produits-page .container {
    max-width: 1140px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------- Hero ---------- */
.produits-hero {
    background: linear-gradient(135deg, #00549a 0%, #003d72 100%);
    color: #fff;
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.produits-hero::after {
    content: "";
    position: absolute;
    right: -160px; top: -160px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(74, 168, 255, 0.28), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.produits-hero .container { position: relative; z-index: 1; }

.produits-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a8d4ff;
    margin-bottom: 20px;
}
.produits-hero h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 auto 22px;
    color: #fff;
    letter-spacing: -0.01em;
    max-width: 860px;
}
.produits-hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto;
    max-width: 720px;
}

/* ---------- Cards section ---------- */
.produits-main {
    padding: 80px 0;
    background: #fff;
}
/* Force 3-column grid for both the cards row and the details row */
#products.produits-page .produits-main .row:not(.pricedet) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}
#products.produits-page .produits-main .row:not(.pricedet) > [class^="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
#products.produits-page .produits-main .row:not(.pricedet)::before,
#products.produits-page .produits-main .row:not(.pricedet)::after {
    display: none !important;
}

/* Tablet: 2 columns */
@media (max-width: 920px) {
    #products.produits-page .produits-main .row:not(.pricedet) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Mobile: stack and interleave each card with its detail block.
   The cards row and the details row are 2 separate <div class="row">,
   so we use display:contents to flatten them and order to interleave. */
@media (max-width: 640px) {
    /* Container becomes flex column to host all 6 flattened children */
    #products.produits-page .produits-main .container {
        display: flex;
        flex-direction: column;
    }
    /* Rows become transparent — their children become children of .container */
    #products.produits-page .produits-main .row:not(.pricedet) {
        display: contents !important;
    }
    /* Force flex children styling on the 6 cols (cards + details) */
    #products.produits-page .produits-main .row:not(.pricedet) > [class^="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 22px !important;
        padding: 0 !important;
    }
    /* Interleave order: card1, detail1, card2, detail2, card3, detail3, then pricedet last */
    #products.produits-page .produits-main .row:nth-of-type(1) > [class^="col-"]:nth-child(1) { order: 1; }
    #products.produits-page .produits-main .row.produits-details > [class^="col-"]:nth-child(1) { order: 2; }
    #products.produits-page .produits-main .row:nth-of-type(1) > [class^="col-"]:nth-child(2) { order: 3; }
    #products.produits-page .produits-main .row.produits-details > [class^="col-"]:nth-child(2) { order: 4; }
    #products.produits-page .produits-main .row:nth-of-type(1) > [class^="col-"]:nth-child(3) { order: 5; }
    #products.produits-page .produits-main .row.produits-details > [class^="col-"]:nth-child(3) { order: 6; }
    /* Price disclaimer stays at bottom — its row is NOT display:contents,
       but it is a child of the flex container, so it needs an order > 6. */
    #products.produits-page .produits-main .row.pricedet {
        order: 99;
        margin-top: 24px !important;
    }
    /* Slight breathing room between each card and its detail block */
    #products.produits-page .produits-main .row.produits-details > [class^="col-"] {
        margin-top: 18px !important;
        padding: 0 12px !important;
    }
    #products.produits-page .produits-details {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    #products.produits-page .produits-details__col h4 {
        text-align: left;
        margin-top: 0;
    }
}

/* Desktop: top margin on each detail col so they don't feel directly glued to the cards.
   Uses !important to override the generic ".row > col" reset that sets margin:0. */
#products.produits-page .produits-main .row.produits-details > .produits-details__col {
    margin-top: 28px !important;
}

/* ----- Multi-device composition inside cards (same recipe as home.css) ----- */
#products.produits-page .blockinfo .prod-compose {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0 auto 20px;
    background: transparent;
}
#products.produits-page .blockinfo .prod-layer {
    object-fit: contain;
    display: block;
    width: auto;
    height: auto;
}

/* Solo: phone centered */
#products.produits-page .blockinfo .prod-compose--solo {
    display: flex;
    align-items: center;
    justify-content: center;
}
#products.produits-page .blockinfo .prod-compose--solo .prod-layer--phone {
    max-height: 100%;
    max-width: 50%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* Team: laptop + tablet + phone */
#products.produits-page .blockinfo .prod-compose--team .prod-layer {
    position: absolute;
}
#products.produits-page .blockinfo .prod-compose--team .prod-layer--laptop {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 56%;
    max-width: 88%;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}
#products.produits-page .blockinfo .prod-compose--team .prod-layer--tablet {
    left: -2%;
    bottom: 2%;
    max-height: 54%;
    max-width: 56%;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}
#products.produits-page .blockinfo .prod-compose--team .prod-layer--phone {
    right: 0;
    bottom: 0;
    max-height: 78%;
    max-width: 32%;
    z-index: 3;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.26));
}

/* Chat: screen + tablet */
#products.produits-page .blockinfo .prod-compose--chat .prod-layer {
    position: absolute;
}
#products.produits-page .blockinfo .prod-compose--chat .prod-layer--screen {
    top: 0;
    left: 12%;
    max-height: 78%;
    max-width: 64%;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}
#products.produits-page .blockinfo .prod-compose--chat .prod-layer--tablet {
    right: -2%;
    bottom: 2%;
    max-height: 60%;
    max-width: 56%;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

/* "Nouveau" badge variant for IPAchat */
#products.produits-page .blockinfo .special.special--new {
    background: #ffe500 !important;
    color: #1a2a3a !important;
    box-shadow: 0 2px 10px rgba(255, 229, 0, 0.45);
}

/* Card reset & restyle */
#products.produits-page .blockinfo {
    background: #fff !important;
    border: 1px solid #e3ebf3 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 6px 20px rgba(0, 84, 154, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}
#products.produits-page .blockinfo:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(0, 84, 154, 0.14) !important;
    border-color: #c7d7e6 !important;
}

/* The .prodlink anchor wraps most of the card content */
#products.produits-page .blockinfo a.prodlink {
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 26px 24px !important;
    color: inherit !important;
    text-decoration: none !important;
    flex: 1;
    background: transparent !important;
}
#products.produits-page .blockinfo a.prodlink:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Product badge (.special) — reset legacy absolute positioning and restyle as pill */
#products.produits-page .blockinfo .special {
    display: inline-block;
    align-self: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    background: rgba(0, 84, 154, 0.08) !important;
    background-color: rgba(0, 84, 154, 0.08) !important;
    color: #00549a !important;
    padding: 5px 14px !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 999px !important;
    margin: 0 0 16px !important;
    z-index: auto !important;
    width: auto !important;
}

/* Card title — reset legacy absolute + blue band */
#products.produits-page .blockinfo h3 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #1a2a3a !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
    line-height: 1.3 !important;
    z-index: auto !important;
}

/* Product signature line — between title and image */
#products.produits-page .blockinfo .prodsig {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00549a;
    text-align: center;
    margin: -10px 0 18px;
}

/* Reset the legacy first-paragraph margin-top:100px that made room for the absolute h3 band */
#products.produits-page .blockinfo p:first-of-type {
    margin-top: 0 !important;
}
#products.produits-page .blockinfo p {
    padding-left: 0 !important;
    margin: 0 0 18px !important;
}
#products.produits-page .blockinfo p span {
    position: static !important;
    color: inherit !important;
    font-size: inherit !important;
}

/* Overflow: hidden legacy clipped the pills — allow visible */
#products.produits-page .blockinfo {
    overflow: visible !important;
}

/* Product image */
#products.produits-page .blockinfo img {
    max-width: 180px;
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 20px !important;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 84, 154, 0.1));
}

/* Description paragraph */
#products.produits-page .blockinfo p {
    font-size: 14.5px;
    line-height: 1.55;
    color: #586b7d !important;
    text-align: center;
    margin: 0 0 18px !important;
}

/* Feature bullets (from content2 / content3 lang keys) */
#products.produits-page .blockinfo ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px !important;
}
#products.produits-page .blockinfo ul li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #3a4a5c;
    text-align: left;
}
#products.produits-page .blockinfo ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 16px;
    height: 16px;
    background: #00549a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 4.3-4.3 1.1 1.1z'/></svg>") center/10px no-repeat;
    border-radius: 50%;
}

/* CTA button */
#products.produits-page .blockinfo .btn-primary2.btn {
    display: block;
    width: 100%;
    background: #28a745 !important;
    color: #fff !important;
    border: 2px solid #28a745 !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: auto 0 12px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}
#products.produits-page .blockinfo:hover .btn-primary2.btn {
    background: #22913c !important;
    border-color: #22913c !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Footer price row — override legacy absolute positioning.
   min-height assures all 3 cards have the same footer box height
   (freq2 wraps on 2 lines, freq1/freq3 don't) so buttons align. */
#products.produits-page .blockinfo .foot {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 14px 26px !important;
    margin: auto -26px -24px !important;
    background: #f6f9fc !important;
    border-top: 1px solid #eef2f7 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 88px !important;
}
#products.produits-page .blockinfo .foot .part {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    font-size: 11px !important;
    font-style: italic !important;
    font-weight: 500 !important;
    color: #7a8a9a !important;
    line-height: 1.3 !important;
    order: 0;
}
#products.produits-page .blockinfo .foot .price {
    position: relative !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    color: #00549a !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    gap: 1px !important;
    order: 1;
    margin: 0 !important;
}
#products.produits-page .blockinfo .foot .price > span {
    position: static !important;
    top: auto !important;
    left: auto !important;
    color: #00549a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 2px 0 0 !important;
    line-height: 1 !important;
}
#products.produits-page .blockinfo .foot .price .cent {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #00549a !important;
    line-height: 1 !important;
    margin: 0 !important;
}
#products.produits-page .blockinfo .foot .price .freq {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-block !important;
    color: #586b7d !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-left: 10px !important;
    line-height: 1.2 !important;
}

/* "+" link pointing to product detail page */
#products.produits-page .blockinfo a.portfolio-link.plus {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 84, 154, 0.08);
    color: #00549a !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.15s;
    z-index: 2;
}
#products.produits-page .blockinfo a.portfolio-link.plus:hover {
    background: #00549a;
    color: #fff !important;
    transform: rotate(90deg);
}

/* Price details block */
#products.produits-page .pricedet {
    margin-top: 40px;
    padding: 20px;
    background: #f6f9fc;
    border-radius: 10px;
    text-align: center;
    color: #586b7d;
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.produits-cta {
    background: linear-gradient(135deg, #00549a 0%, #003d72 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.produits-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 14px;
    line-height: 1.25;
}
.produits-cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto;
    max-width: 620px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .produits-hero { padding: 100px 0 60px; }
    .produits-hero h1 { font-size: 32px; }
    .produits-main .row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
    .produits-hero h1 { font-size: 26px; }
    .produits-main .row { grid-template-columns: 1fr; gap: 18px; }
}

/* ----- Product details below the cards, split in two columns ----- */
#products.produits-page .produits-main .row.produits-details {
    margin-top: 50px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5eaf0;
}
#products.produits-page .produits-details__col {
    padding: 0 24px;
}
#products.produits-page .produits-details__col h4 {
    font-size: 22px;
    font-weight: 700;
    color: #00549a;
    margin: 0 0 16px;
    text-align: center;
}
#products.produits-page .produits-details__col p {
    color: #1a2a3a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}
#products.produits-page .produits-details__col ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
#products.produits-page .produits-details__col ul li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a2a3a;
}
#products.produits-page .produits-details__col ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 14px;
    height: 14px;
    background: #00549a;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #00549a;
}

@media (max-width: 767px) {
    #products.produits-page .produits-details {
        margin-top: 40px;
        padding-top: 32px;
    }
    #products.produits-page .produits-details__col {
        padding: 0 12px;
        margin-bottom: 28px;
    }
}
