/** 
 * public/css/home/home.css
 * Feuille de style pour a page d'accueil <HOME>.
 * 
 * @author SIMON Stephane <stephane@bvb-software.fr>
 * @version 1.1.0
 */
body {
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    font-style: normal;
    background-color: #FFFFFF;
}

/* =================================================
					Welcome Wrap
   ================================================= */

.welcome__wrap {
    display: flex;
    align-items: stretch;
    width: 100%; /* S'étend sur toute la largeur */
    max-height: 650px;
    background-image: url('../../images/home/new-showcase.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--secondary-easy);

}

.welcome__right-side {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    transform: translateX(8%);
}

.welcome__right-side img {
    max-width: 100%;
    max-height: calc(70vh);
    height: auto;
}

.welcome__left-side {
    display: flex;
    justify-content: center;
    margin-left: 8vw;
    flex-direction: column;
    flex-grow: 2;
    padding: 2rem 0;
}

.separation {
    display: flex;
    justify-content: left;
    align-items: center;
    min-height: 140px;
    position: relative;
    background: linear-gradient(to right, #2C4594, #5A9EDC, #5DD9C1) top,
    linear-gradient(to right, #2C4594, #5A9EDC, #5DD9C1) bottom;
    background-repeat: no-repeat;
    background-size: 100% 7px;
}


.separation__title {
    margin-left: 8.1vw;
    color: var(--secondary-mid);
    z-index: 50;
    position: relative;
    display: flex;
    justify-content: left;
}

.separation__title--h2 {
    font-family: 'BreeCYR', sans-serif;
    font-weight: 400;
    font-style: oblique;
    font-size: 2.5rem;
}

.quote__left {
    width: 45px;
    padding-bottom: -54px;
    color: var(--tertiary-main);
    position: absolute;
    top: -22px;
    left: -54px;

}

.blue {
    color: var(--primary-main);
    white-space: pre;
}


/* =================================================
				Welcome Wrap Textes
   ================================================= */

.title__wrap h1 {
    font-family: "BreeCYR", serif;
    font-weight: normal;
    font-size: 3.5rem;
    color: var(--secondary-mid);
}

/* -- Bordure de séparation -- */
.title__wrap::after {
    content: '';
    display: block;
    margin: 50px 0 50px 0;
    width: 100px;
    height: 2px;
    background-color: var(--secondary-mid);
}

.assurance {
    color: var(--primary-main);
}

.obseques {
    color: var(--text-main);
}

.welcome__wrap-paragraph p {
    font-family: "Poppins", sans-serif;
    color: var(--secondary-dark);
    font-weight: normal;
    font-size: 1.2rem;
}

.welcome__wrap-paragraph {
    max-width: 580px;
}

/* =================================================
				Welcome Wrap Buttons
   ================================================= */

.welcome__wrap-buttons {
    margin-top: 50px;
}

.button {
    margin-right: 30px;
}

.welcome__wrap-buttons a {
    width: 250px;
    color: var(--primary-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 48px;
    border: 2px solid var(--primary-main);
    padding: 0 80px 0 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: left;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background-color .3s ease-in, color .3s ease-in, border-color .3s ease-in;
}

.welcome__wrap-buttons a::before {
    content: "";
    background-color: #fff;
    transition: background-color .3s ease-in;
    height: 2px;
    width: 58px;
    transform: rotate(-70deg);
    position: absolute;
    top: 24px;
    right: 10px;
}

.welcome__wrap-buttons a:hover::before {
    background-color: var(--tertiary-mid);
}

.welcome__wrap-buttons a::after {
    content: "";
    position: absolute;
    background-image: url('../../images/icons/arrow-right-blue.svg');
    background-size: cover;
    background-color: transparent;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0);
    display: block;
    height: 24px;
    width: 17px;
    border: 0;
    transition: border-color .3s ease-in;
}

.welcome__wrap-buttons a.button--alt {
    border: 2px solid var(--tertiary-mid);
}

.welcome__wrap-buttons a.button--alt::after {
    background-image: url('../../images/icons/arrow-right-white.svg');
    z-index: 51;
}

.welcome__wrap-buttons a.button--alt::before {
    content: "";
    position: absolute;
    height: 130%;
    top: -15%;
    /* Ajustez en fonction de la hauteur de votre bouton */
    right: -33px;
    width: 90px;
    background-color: var(--tertiary-mid);
    /* votre couleur de fond */
    transform: rotate(115deg);
    border: 1px solid transparent;
    transition: background-color .3s ease-in;
    z-index: 50;
}

.welcome__wrap-buttons a.button--alt:hover {
    background-color: var(--tertiary-easy);
    color: var(--primary-dark);
}

.welcome__wrap-buttons a:hover {
    background-color: transparent;
    border-color: var(--tertiary-mid);
    color: var(--primary-main);
}

.mobile-welc-wrap {
    display: none;
}

.modal-etude {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wrap-text {
    display: flex;
}

.btn-para {
    margin-top: 40px;
    background-color: var(--primary-dark);
    border-radius: 5px;
    width: 300px;
    height: 55px;
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: inherit;
    border-color: transparent;
    box-shadow: 3px 4px 14px -2px rgba(0, 0, 0, 0.26);
    transition: border 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--primary-dark);
}

.btn-para:focus,
.btn-para:active,
.btn-para:hover {
    border: 2px solid var(--primary-dark);
    background-color: var(--primary-dark);
}

h1.text-para {
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}

.big-text {
    color: var(--primary-main);
    font-size: xx-large;
    font-weight: bold;
}

.cat-1-row,
.cat-2-row {
    z-index: 10;
    padding: 100px 0;
    display: flex;
    justify-content: center;
}

.par p {
    padding-top: 1em;
    padding-bottom: 1em;
}

.row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

.par-l h3 {
    color: var(--primary-main);
    font-family: BreeCYR, sans-serif;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.par-l h3 img {
    width: 2.5rem;
    margin-right: 0.5rem;
}

/* ------ CATEGORIE 1 ------ */
.cat-1-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

.commercial-1 {
    width: 420px;
    z-index: 10;
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    margin-left: 2.9rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
}

.content-com1 {
    max-width: 1150px;
}

.image-container,
.image-container2 {
    flex: 1;
    /* occupe 1/3 de l'espace disponible */
    max-width: calc(100% / 3);
    /* sur des écrans plus grands, cela limite la largeur à 1/3 de l'espace total */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container2 {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-right: 1rem;
}

.cat1-jpv-title {
    color: var(--primary-main);
    font-family: "BreeCYR", cursive;
    font-size: 1.8rem;
}

.check-icon {
    width: 30px;
}

.text-container {
    flex: 2;
    max-width: calc(2 * 100% / 3);
    padding: 1rem 1rem 1rem 2rem;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-left: 5px solid var(--primary-main);
}

/* ------ CATEGORIE 2 ------ */
.cat-1-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

#anchor2 {
    padding-bottom: 0;
}

.commercial-2 {
    width: 420px;
    max-height: 670px;
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23),
    0 3px 12px rgba(0, 0, 0, 0.16);
}

.text-container2 {
    flex: 2;
    max-width: calc(2 * 100% / 3);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-right: 5px solid var(--primary-main);
}

.content-com1 {
    font-size: 1.2rem;
    line-height: 2;
}

/* ------ INTER-CAT ------ */
.inter-cat {
    /* Espace à gauche */
    padding: 2rem 2rem;
    position: relative;
    display: flex;
    flex-wrap: wrap; /* Flexibilité pour les petits écrans */
    justify-content: space-around;
    gap: 20px;
    margin: 0 auto;
}


/* Chaque carte */
.inter-cat-card {
    flex: 0 1 calc(33.33% - 20px); /* Trois cartes alignées sur la même ligne */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--container-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    max-width: 420px;
}

/*.inter-cat-card:hover {*/
/*    transform: scale(1.05);*/
/*    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);*/
/*}*/

.icon-inter-cat {
    margin: 10px 0;
    height: 80px;
    width: auto;
}

.inter__cat-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.inter-cat .inter-cat-card:first-child .icon-inter-cat {
    margin-right: 13px;
    margin-top: 15px;
}

.inter-cat .inter-cat-card:nth-child(3) .icon-inter-cat {
    margin-left: 4px;
}

.text-card-inter {
    text-align: left;
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    font-style: normal;
    color: var(--primary-main);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* =================================================
                    SECTION 2
   ================================================= */

.section2 {
    min-height: 400px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.section2 img {
    width: 80px;
}

/* =================================================
				SECTION 2 Cards
   ================================================= */
.section2__card {
    background: rgb(225, 225, 225);
    border-radius: 15px;
    color: var(--primary-dark);
    max-width: 300px;
    height: 180px;
    z-index: 10;
    margin: 10px;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 0;
}

.section2__card-img {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    border-bottom: 2px solid #FFFFFF;
}

.team__img {
    width: auto !important;
    height: 80px;
}

.family__img {
    width: auto !important;
    height: 80px;
}

.card-body {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-dark);
}

/* ------------ STATS ------------ */
.stats-row {
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
}

.border-stats {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100vw;
    background-color: var(--container-bg);
}

.stats-row-icons {
    font-size: 40px;
    color: var(--primary-main);
}

.wrap-icons {
    width: 90%;
}

/* ------ PARALLAX ------- */
#parallax2 {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: 10;
    position: relative;
    width: 100%;
    height: 65vh;
    -webkit-transform: scale(-1, 1);
    /* Chrome, Safari, etc. */
    -moz-transform: scale(-1, 1);
    /* Firefox */
    -ms-transform: scale(-1, 1);
    /* IE 9 */
    -o-transform: scale(-1, 1);
    /* Opera */
    transform: scale(-1, 1);
    /* Standard syntax */
    transition: background-image 1s ease-in-out;
}

/* ------------ WEB VIEW ------------ */

@media all and (min-width: 2440px) {
    #parallax2 {
        height: 100vh;
    }
}

@media all and (max-width: 1800px) {
    .title__wrap h1 {
        font-size: 3rem;
    }

    .welcome__wrap-paragraph p {
        font-size: 1rem;
    }

    #parallax2 {
        height: 70vh;
    }
}

@media all and (max-width: 1590px) {
    .title__wrap h1 {
        font-size: 2.5rem;
    }

    .welcome__wrap-paragraph p {
        font-size: 1rem;
    }

    .cat-1-row,
    .cat-2-row {
        padding: 50px 0;
    }

    #parallax2 {
        height: 50vh;
    }
}

@media all and (max-width: 1290px) {
    .title__wrap h1 {
        font-size: 2rem;
    }

    .welcome__wrap-paragraph p {
        font-size: 1rem;
    }

    .welcome__left-side {
        margin-left: 2vw;
    }

    .title__wrap::after {
        margin: 30px 0 30px 0;
    }

    .welcome__wrap-buttons {
        margin-top: 30px;
    }

    .navbar-brand {
        width: 4em;
    }

    .navbar-nav li {
        font-size: 0.85rem;
        margin-left: 10px;
        margin-right: 10px;
    }

    .separation {
        min-height: 140px;
    }

}

@media all and (min-width: 991px) {
    .cloudfix {
        bottom: 0;
        height: auto;
        width: 100%;
        -webkit-transform: scale(-1, 1);
        /* Chrome, Safari, etc. */
        -moz-transform: scale(-1, 1);
        /* Firefox */
        -ms-transform: scale(-1, 1);
        /* IE 9 */
        -o-transform: scale(-1, 1);
        /* Opera */
        transform: scale(-1, 1);
        /* Standard syntax */
        margin-bottom: -10px;
    }

    .group-para {
        overflow: hidden;
        margin-top: 120px;
    }

    .par-l p {
        padding-left: 50px;
    }

    .text-container2 {
        margin-left: 7.5vw;
        font-size: 1.2rem;
    }

    .welcome__wrap {
        margin-top: 140px;
    }
}

@media all and (max-height: 1280px) {
    .separation__title {
        font-size: 2.2rem;
    }

    .separation__title--h2 {
        font-size: 2.2rem;
    }

    .quote__left {
        width: 45px;
        top: -22px;
        left: -54px;
    }
}


@media all and (max-height: 880px) {
    .welcome__left-side {
        margin-left: 4vw;
        padding: 1rem 0;
    }

    .title__wrap::after {
        margin: 20px 0 20px 0;
    }

    .welcome__wrap-buttons {
        margin-top: 20px;
    }
}

/* ------------ MOBILE VIEW ------------ */

/* Grands tablettes et petits laptops */
@media all and (max-width: 1024px) {
    .content-com1 {
        font-size: 1.1rem;
    }
}

@media all and (max-width: 991px) {

    .welcome__right-side img {
        display: none;
    }

    .welcome__wrap {
        background-image: none;
    }

    .navbar-nav li {
        display: none;
    }

    .navbar-nav .nav-item .nav-link:hover::after {
        width: 0;
        opacity: 0;
    }

    .navbar-nav .nav-item .nav-link a {
        font-size: 0.9rem;
    }

    #contactBtn {
        margin-right: 32px;
    }

    h1.text-para {
        font-size: 1.2rem;
    }

    .separation {
        justify-content: center;
        align-items: center;
        min-height: 145px;
    }

    .separation__title {
        margin-top: 8px;
        margin-left: 0;
    }

    .separation__title--h2 {
        font-size: 2rem;
    }

    .quote__left {
        width: 45px;
        padding-bottom: -54px;
        top: -31px;
        left: -63px;
    }

    /* ------ STATS ------- */
    .stats-row {
        font-size: 1rem;
        height: 100%;
    }

    .p1 {
        padding-top: 3em !important;
    }

    .dots {
        display: none;
    }

    .cat-1-row,
    .cat-2-row {
        margin-top: 0;
    }

    .cat-1-row {
        padding: 30px 0;
    }

    .inter-cat {
        flex-direction: column;
        padding-top: 2rem;
        padding-bottom: 2rem;
        line-height: 1.3rem;
    }

    /* Ajout d'une bordure bottom sous les 2 premieres Div de l'Inter Catégorie */
    .inter-cat .flex-container:nth-child(1)::after,
    .inter-cat .flex-container:nth-child(2)::after {
        content: "";
        display: block;
        height: 2px;
        background-color: white;
        width: 90%;
        /* margin left and right 10px et centrage horizontal */
        margin: 10px auto 1.5rem;
    }

    .text-card-inter {
        width: 90%;
        transform: translateX(5%);
    }

    .icon-inter-cat {
        font-size: 50px;
    }

    .image-container,
    .image-container2 {
        display: none;
    }

    .text-container,
    .text-container2 {
        max-width: 100%;
        flex: 1;
        /* reset du flex à une valeur égale */
    }

    .text-container {
        border-left: 10px solid var(--primary-dark);
        margin-left: 0;
    }

    .text-container2 {
        border-right: 10px solid var(--primary-dark);
    }

    .flex-container {
        width: 100%;
    }

    .inter-cat {
        margin-top: 0;
        align-content: center;
    }

    .commercial-2 {
        display: none;
    }

    .par p {
        padding-top: 0.3rem;
        padding-bottom: 0.6rem;
        max-width: 518px;
        margin: 0 auto 0 60px;
    }
}

@media (max-width: 768px) {
    .welcome__left-side {
        margin: 20px;
    }

    .title__wrap h1 {
        font-size: 2rem;
    }

    .welcome__wrap-paragraph p {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }

    .button {
        margin-bottom: 10px;
    }

    .button a {
        width: 200px;
    }

    .separation {
        justify-content: center;
        align-items: center;
        min-height: 114px;
    }

    .separation__title {
        font-size: 1.2rem;
        margin: 34px auto 0 auto;
    }

    .separation__title--h2 {
        font-size: 1.2rem;
        margin-bottom: 29px;
    }

    .welcome__wrap-buttons a {
        line-height: 40px;
    }

    .quote__left {
        width: 29px;
        top: -21px;
        left: -33px;
    }

    .cat-1-row {
        flex-direction: column;
    }

    .background-image {
        visibility: hidden;
    }

    .text-card-inter {
        transform: translateX(0%);
    }

    .par p {
        padding-top: 0.3rem;
        padding-bottom: 0.6rem;
        max-width: 518px;
        margin: 0 auto 0 49px;
    }

    #parallax2 {
        height: 30vh;
        margin-bottom: -1px;
    }

    .cat-1-row,
    .cat-2-row {
        padding: 0 0;
    }
}

@media (max-width: 420px) {
    .title__wrap h1 {
        font-size: 1.6rem;
    }

    .inter__cat-image {
        margin-bottom: 16px;
    }

    .section2__card {
        min-width: 280px;
    }

    .section2 img {
        width: 70px;
    }

    .family__img {
        height: 70px;
    }

    .team__img {
        height: 70px;
    }

    .inter-cat {
        padding-top: 1rem;
        padding-bottom: 0;
    }

    .text-card-inter {
        transform: translateX(2%);
        font-size: 0.95rem;
        padding-right: 15px;
    }

    .icon-inter-cat {
        height: 80px;
    }

    .par-l h3 img {
        width: 2rem;
        margin-right: 3px;
    }

    .par-l h3 {
        margin-left: -11px;
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .par p {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    #parallax2 {
        height: 45vh;
    }

    @media (max-width: 480px) {

    }
}