@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
:root {

    /* Colors: */
    --unnamed-color-ffffff: #FFFFFF;
    --unnamed-color-f4f4f4: #F4F4F4;
    --unnamed-color-80caf3: #80CAF3;
    --unnamed-color-0046ad: #0046AD;
    --unnamed-color-240078: #240078;
    --unnamed-color-51d2b6: #51D2B6;
    --unnamed-color-7000ff: #7000FF;
    --unnamed-color-000000: #000000;
    
    /* Font/text values */
    --unnamed-font-family-red-hat-text: Red Hat Text;
    --unnamed-font-style-normal: normal;
    --unnamed-font-weight-600: 600px;
    --unnamed-font-weight-normal: normal;
    --unnamed-font-size-17: 17px;
    --unnamed-font-size-20: 20px;
    --unnamed-font-size-34: 34px;
    --unnamed-font-size-40: 40px;
    --unnamed-character-spacing-0: 0px;
    --unnamed-line-spacing-25: 25px;
    --unnamed-line-spacing-26: 26px;
    --unnamed-line-spacing-43: 43px;
    --unnamed-line-spacing-48: 48px;
    }
    
    /* Character Styles */
    .-p-red-hat-text-—-16pt {
    font-family: var(--unnamed-font-family-red-hat-text);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-normal);
    font-size: var(--unnamed-font-size-17);
    line-height: var(--unnamed-line-spacing-25);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-000000);
    }
    .-h1-red-hat-text-—-40pt {
    font-family: var(--unnamed-font-family-red-hat-text);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-normal);
    font-size: var(--unnamed-font-size-40);
    line-height: var(--unnamed-line-spacing-48);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-80caf3);
    }
    .-h2-red-hat-text-—-34pt {
    font-family: var(--unnamed-font-family-red-hat-text);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-normal);
    font-size: var(--unnamed-font-size-34);
    line-height: var(--unnamed-line-spacing-43);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-0046ad);
    }
    .-h3-red-hat-text-—-20pt { 
    font-family: var(--unnamed-font-family-red-hat-text);
    font-style: var(--unnamed-font-style-normal);
    font-weight: var(--unnamed-font-weight-600);
    font-size: var(--unnamed-font-size-20);
    line-height: var(--unnamed-line-spacing-26);
    letter-spacing: var(--unnamed-character-spacing-0);
    color: var(--unnamed-color-000000);
    }
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Red Hat Text', sans-serif;
    overflow-x: hidden;
}

/* ===== Héros identique à la page IA ===== */
main {
    background: url(./images/PTI_header-pharma.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: max-content;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

/* Responsive pour le texte - Mobile First (copie IA) */
@media (max-width: 480px) {
    main .col-12 { flex-direction: column; padding: 0 15px; }
    main .col-5 { display: none; }
    main .col-7 { width: 100%; text-align: center; padding: 0 10px; }
    main h1 { font-size: 32px; line-height: 1.2;  }
    main p { font-size: 14px; line-height: 1.5; padding: 0; }
}

@media  (max-width: 768px) {
    main .col-12 { flex-direction: column; padding: 0 20px; padding-right: 0; }
    main .col-5 { display: none; }
    main .col-7 { width: 100%; text-align: center; padding: 0 15px; }
    main h1 { font-size: 36px !important; line-height: 1.2; }
    main p { font-size: 15px; line-height: 1.5; padding: 0;}
}

@media (min-width: 769px) and (max-width: 1024px) {
    main .col-12 { flex-direction: row; padding: 0 30px; }
    main .col-5 { width: 40%; display: block; }
    main .col-lg-8 { text-align: left; padding-right: 0; }
    main h1 { font-size: 42px; line-height: 1.2;  }
    main p { font-size: 16px; line-height: 1.6; padding: 0;  }
}

@media (min-width: 1200px) {
    main .col-12 { flex-direction: row; padding: 0 50px; }
    main .col-5 { width: 40%; display: block; }
    main .col-7 { width: 60%; text-align: left; }
    main h1 { font-size: 55px; line-height: 1.2; margin-bottom: 40px; }
    main p { font-size: 17px; line-height: 1.6; padding: 0;  }
}

main h1 { height: fit-content; color: #0046AD; font-weight: 400; margin-bottom: 40px; overflow-y: hidden; }
main p { padding: 50px 0px; font-size: 1rem !important; }

/* ===== Cartes identiques IA ===== */
.cards-container {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 20px;
    margin-top: 40px;
    margin-right: 10% !important;
    flex-wrap: wrap;
    height: max-content;
    align-items: flex-start;
    max-width: 1200px;
    
}

.card {
    background-color: #200973;
    border-radius: 0px !important;
    padding: 20px 20px;
    margin: 20px;
    min-width: 200px;
    max-width: 200px;
    height: 170px;
    overflow: visible;
    border-top: solid 8px #80CAF3;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    font-size: 17px !important;
}

.card:hover { height: 310px; transform: none; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.card-icon { margin-bottom: 10px; display: flex; justify-content: start; }
.card-icon img { width: 40px; height: 40px; }
.card-content { overflow-y: hidden; flex: 1; background: none; display: flex; flex-direction: column; justify-content: start; }
.card-text { overflow-y: hidden; color: #ffffff; font-family: 'Red Hat Text', sans-serif; font-size: 17px !important; font-weight: 500; line-height: 1.4; height: fit-content; }
.card-description { overflow-y: hidden; font-size: 17px !important; font-weight: 400; line-height: 1.4; margin-bottom: 10px; color: #80CAF3; }
.card-title { line-height: 1.3; z-index: 1000; position: relative; margin-bottom: 8px; font-weight: 400;font-size: 17px !important; }
.card-expanded-content { z-index: 1; position: relative; overflow-y: hidden; display: none; opacity: 0; transition: all 0.3s ease; margin-top: 0; padding: 0; border: none; justify-content: space-between; flex-direction: column; height: 100%; }
.card:hover .card-expanded-content { opacity: 1; display: flex; transform: translateY(0); height: 80%; }
.card-cta { overflow-y: hidden; margin-top: 15px; }
.cta-link {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    text-decoration: none;
    align-items: center;
    gap: 5px;
    text-align: left;
    justify-content: flex-start;
    position: relative; /* Needed for ::after to position absolutely */
    overflow: hidden;   /* Hide animated underline overflow */
    transition: color 0.3s ease;
}

.card-1 {
    margin-left: 0 !important;
}

@media (max-width: 1300px) {
    .card-1 {
        margin-left: 20px !important;
    }
}

@media (max-width: 768px) {
    .card-1 {
        margin-left: 20px !important;
        
    }
    
}

.cta-link:hover {
    color: #FFFFFF;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: 0; /* align underline with text base */
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.cta-link:hover::after, 
.cta-link:focus::after {
    width: 79%;
}


.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.cta-link:hover .arrow {
    transform: translateX(3px);
}


.card:hover .img-hov {
    display: block;
}

.img-hov1 {
    display: none;
}

.card:hover .img-hov {
    display: none;
    
}
.card:hover .img-hov1 {
    display: block;
}
/* Responsive cartes (copie IA) */
@media (max-width: 1024px) and (min-width: 769px) {
    .cards-container { flex-wrap: wrap; justify-content: center; gap: 15px; height: auto; max-width: 800px; margin: 50px auto 0; }
    .card { width: calc(33.333% - 10px); max-width: 220px; margin-bottom: 20px; flex-shrink: 0; }
    .card:hover { height: 280px; }
}
@media (max-width: 900px) and (min-width: 769px) { .cards-container { max-width: 600px; } .card { width: calc(50% - 10px); max-width: 250px; } }
@media (max-width: 768px) {
    .cards-container { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
        justify-content: center !important;
        height: auto;
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .cards-container.col-10 {
        width: 100% !important;
        max-width: 100% !important;
    }
    .card { 
        width: calc(50% - 7.5px) !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 0 calc(50% - 7.5px) !important;
        height: auto;
        min-height: 250px;
        padding: 20px;
        margin: 0 !important;
        margin-bottom: 20px !important;

        box-sizing: border-box;
    }
    .card:hover { height: auto; min-height: 250px; }
    .card-expanded-content { display: flex !important; opacity: 1 !important; position: static; height: auto; margin-top: 15px; flex-direction: column; justify-content: space-between; }
    .card-content { height: auto; display: flex; flex-direction: column; }
    .card-description { font-size: 14px; margin-bottom: 20px; color: #ffffff; }
    .card-cta { margin-top: 15px; }
    .card-title { font-size: 18px; margin-bottom: 10px; }
}
@media (max-width: 480px) {
    .cards-container { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 0 10px; 
        gap: 10px;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .cards-container.col-10 {
        width: 100% !important;
        max-width: 100% !important;
    }
    .card { 
        width: calc(50% - 5px) !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 0 calc(50% - 5px) !important;
        padding: 15px; 
        min-height: 220px;
        margin: 0 !important;
        box-sizing: border-box;
    }
    .card-icon img { width: 35px; height: 35px; }
    .card-title { font-size: 16px; margin-bottom: 8px; }
    .card-description { font-size: 13px; margin-bottom: 15px; font-weight: 400; }
    .card-cta { margin-top: 10px; }
}

/* Typo fluide */
main h1 { font-size: 55px; line-height: 1.15; }
main p { font-size: 17px !important; color: #000 !important; line-height: 24px; padding-top: 50px !important; padding-bottom: 50px !important; }
.card-text { font-size: 17px !important; }
.card-title { font-size: 17px !important; }
.card-description { font-size: 17px !important; }
.cta-link { font-size: 14px !important; }

.padding-top-custom {
    padding:0  !important;
    margin-top: 7rem !important;
    margin-bottom: 160px !important;
}
.padding-bottom-custom-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.padding-custom-2 {

}
/* ===== Section obligations (copiée depuis rgpd.css) ===== */
.section-obligations { background: #80CAF3; position: relative; overflow: visible; }
.rgpd-foreground { position: absolute; left: 20%; bottom: -12%; transform: translateX(-5%); z-index: 5; pointer-events: none; }
.rgpd-foreground-img { width: 600px; height: auto; }
.obligations-content { max-width: 1200px; padding: 15rem 5rem;  padding-right: 0 !important; margin: 0; margin-left: 14rem !important; margin-right: 0 !important; display: flex; flex-direction: column; justify-content: start; align-items: start; }
.section-obligations h2{ overflow-y: hidden; color: #fff; font-weight: 300; font-size: 20px;  margin-bottom: 8px !important;}
.section-obligations p{ color: #0046AD; font-weight: 400; font-size: 30px; line-height: 1.2; overflow-y: hidden; padding-top: 50px ; padding-bottom: 50px; margin-bottom: .5rem;}
.obligations-content .col-10 { float: right; }
.bg-obligations { background: url(./images/bg-pharma-2.png); width: 100%; height: 100% !important; max-width: 720px;  background-size: cover; background-position: center; background-repeat: no-repeat;  }
.obligations-list { list-style: none;  margin: 0 0 0 0 !important; }
.obligations-list li { font-size: 17px !important; line-height: 20px !important; color: #335161; position: relative; padding-left: 20px; font-weight: 100; overflow-y: hidden; }
.obligations-list li::before { content: ''; position: absolute; left: 0; top: .4rem; width: 8px; height: 8px; background-color: #0046AD; border-radius: 50%; }
.obligations-list strong { color: #335161; font-weight: 600; }
.consult-options-title {
    color: #335161;
    font-weight: 600;
    overflow-y: hidden;
    font-size: 20px;
    margin-bottom: 0 !important;
}

@media (min-width: 768px) { .obligations-content { padding: 40px 32px;  } .obligations-list li { font-size: 15px; padding-left: 22px; } }
@media (max-width: 768px) { .bg-obligations {display: none;} .obligations-content { margin:0px  !important; padding: 7rem !important; margin-left: 0px !important;  } }
@media (min-width: 992px) { .section-obligations .col-12.d-flex { flex-direction: row; } .bg-obligations { flex: 0 0 40%;  } .obligations-content { flex: 0 0 60%; padding: 160px 40px; padding-left: 6rem; }  }
@media (min-width: 1200px) { .obligations-content { padding-left: 5rem; } }
@media (max-width: 2200px) { .obligations-content { padding-right: 7rem !important; margin-left: 5rem !important; } }
@media (max-width: 768px) { .bg-obligations {display: none;} .obligations-content { margin:0px  !important; padding: 5rem !important; margin-left: 0px !important;  } }
@media (max-width: 576px) { .obligations-content { padding: 50px 16px 50px 16px !important; } }

/* ===== Bouton Demandez un devis (copie RGPD) ===== */
.btn-devis {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 10px; 
    padding: 5px 18px;
    margin-top: 1rem;
    border: 2px solid #1E63F0;
    color: #1E63F0 !important;
    background: none;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn-devis i, .btn-devis span { font-size: 17px; color: #1E63F0 !important; }
.btn-devis:hover { background: #1E63F0; color: #ffffff; }
.btn-devis:hover i, .btn-devis:hover span {
    color: #ffffff !important;
}
@media (max-width: 768px) { .btn-devis { align-self: center; float: none; } }

.section-pharma-promo {
    background: #F4F4F4;
}

.section-pharma-promo h2{
    color: #80CAF3;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: .5rem;
    overflow-y: hidden;
}



.section-pharma-promo p{ color: #0046AD; font-weight: 400; font-size: 30px !important; line-height: 1.2; overflow-y: hidden; padding-top: 50px ; padding-bottom: 50px; margin-bottom: .5rem;}

/* Mise en page exacte de la section promo */
.section-pharma-promo { position: relative; overflow: visible; z-index: 0; }
.section-pharma-promo .col-xl-7 { padding: 160px 12px 160px 12px; padding-right: 0; }
.section-pharma-promo .col-5 { padding: 6rem 2rem 3rem 0; }
.section-pharma-promo .obligations-list { margin-top: 1.25rem; }
.section-pharma-promo .btn-devis { margin-top: 1.5rem; }

/* Foreground décoratif PROPRE à la promo */
.pharma-promo-fg { position: absolute; right: -4%; top: -110px; z-index: 2147483646; pointer-events: none; }
.pharma-promo-fg-img { width: 640px; height: auto; opacity: 1; }

@media (max-width: 991.98px) {
    .section-pharma-promo .d-flex { flex-direction: column; }
    .section-pharma-promo .col-lg-7, .section-pharma-promo .col-5 { padding: 2rem 1rem !important; }
    .section-pharma-promo .btn-devis { align-self: center; }
    .pharma-promo-fg { display: none; }
}

@media (max-width: 1200px) {
    .pharma-promo-fg-img {
        display: none;
    }
    .section-pharma-promo .col-xl-7 { padding: 5rem !important; }

}

.section-pharma-commerce {
    padding: 160px 0;
    
    position: relative;
    z-index: 1000; /* au-dessus de la section précédente */
}

.section-pharma-commerce h2{
    color: #80CAF3;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: .5rem;
    overflow-y: hidden;
}



@media (max-width: 1400px) {
    .section-pharma-commerce {
        padding: 5rem !important;

    }
    .section-pharma-commerce-content { margin: 0px !important;  }
}

.section-pharma-commerce p{ color: #0046AD; font-weight: 400; font-size: 30px; line-height: 1.2; overflow-y: hidden; }
.section-pharma-commerce-p {
    padding-bottom: 50px;
    padding-top: 50px;
    margin-bottom: .5rem !important;
}
/* Foreground gauche PROPRE au bloc commerce */
.pharma-commerce-fg-left { position: absolute; left: -6%; top: -240px; z-index: 2147483647 !important; pointer-events: none; }
.pharma-commerce-fg-left-img { width: 520px; height: auto; opacity: 1; z-index: inherit; transform: translateZ(0); }
@media (max-width: 1200px) {
    .pharma-commerce-fg-left-img { display: none; }
}
@media (max-width: 991.98px) {
    .pharma-commerce-fg-left { display: none; }
}

@media (max-width: 576px) {
    .section-pharma-promo .col-xl-7 {
        padding: 50px 16px !important;
    }

    .section-pharma-commerce {
        padding: 50px 16px !important;
        
    }

    .consultance-pharma-p {
        font-size: 28px !important;
        line-height: 1.1;
    }

    .obligations-list-2 {
        margin-top: 0 !important;
    }

    .section-pharma-promo p {
        font-size: 28px !important;
        line-height: 1.1;
    }

    .section-pharma-commerce {
        padding: 5rem 2rem;
    }

    .section-pharma-commerce p {
        font-size: 28px !important;
        line-height: 1.1;
    }
}