/**
 * PROJET   : PAGE SITE WEB : STYLE PAGE D'ACCUEIL
 * AUTEUR GRAPHISME : Valentin Merlault
 * AUTEUR   : Anne Potier
 * DATE     :: 
 * REFONTE  : 2023 1ER SEM
 * MISE EN LIGNE : 2023/06/21
 */

.home-body .cover-main {
    padding: 0;
    padding-bottom: 70px;
}

.home-section {
    width: 92%;
    margin-left: auto;
    display: flex;
    top: 50px;

}

main {
    box-shadow: none;
}


.home-haut {
    width: 80%;
    margin-left: auto;
    margin-right: 0;
    top: 20px;
    height: fit-content;       

}

.home-haut  .iso-container {
    display: flex;
    width: fit-content;
    flex-direction: row;
    margin-left: auto;
    margin-right: 6%;
    margin-bottom: 0;
    position: relative;
    justify-content: space-between;
    /*top: -15px;*/
}

.home-haut  .iso-container img {
    width: 105px;
    height: auto;
}

.home-haut  .iso-container img:nth-child(1) {
    width: 155px;
}

.home-haut  .iso-container img:nth-child(2) {
    margin-left: 25px;
}



.cirimat,
.presentation {
    margin: auto;

}

.presentation {
    /*max-width: 734px;*/
    
    margin-left: auto;
    margin-right: 0;
    top: 50px;
    height: fit-content;
}


.presentation .ciribar {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    top: 0;
}

.presentation .content {
    color: white;
    width: 80%;
    margin: auto;
    margin-top: 2px;
    background: linear-gradient(90deg,   #03669F 0%,   #03669F 100%);
    border-radius: 0px 0px 50px 50px;
    padding: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.content p {
    font-weight: 400;
    /*font-size: clamp(0.9rem, 0.9vw + .1rem, 1.5rem);*/
    line-height: 26px;
}

.presentation .content .container {
    margin-top: 10px;
    overflow-y: auto;
    height: 200px;
}

.content h1 {
    text-align: center;
    /*font-size: clamp(1.3rem, 1.5vw + .1rem, 2.5rem);*/
    margin-bottom: 30px;
}

.content h3 {
    margin: 0;
    /*font-size: clamp(0.9rem, 0.9vw + .1rem, 1.5rem);*/
}

.content a {
    font-weight: 700;
    /*font-size: clamp(1rem, 0.9vw + .1rem, 1.5rem);*/
    line-height: 26px;
    /* or 160% */
    text-decoration-line: underline;
    cursor: pointer;
    transition: all 0.3s;
}

.content a:hover {
    color: #351111;
}

.cirimat {
    margin: auto;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1));
}

.cirimat h3 {
    font-weight: 700;
    /*font-size: clamp(0.8rem, 0.75vw + .1rem, 1.3rem);*/
    line-height: 15px;
    /* identical to box height, or 120% */
    text-transform: uppercase;
    color: #03669F;
}

.cirimat h1 {
    font-weight: 700;
    /*font-size: clamp(3rem, 4.5vw + .1rem, 5rem);*/
    line-height: 88px;
    text-transform: uppercase;
    /* or 130% */
    color: #351111;
    margin: 0;
}

.cirimat p {
    width: 80%;
    font-weight: 400;
    /*font-size: clamp(1rem, 1vw + .1rem, 3rem);*/
    line-height: 26px;
}

.home-buttons-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    margin-top: 25px;
    gap: 25px;
}

.home-buttons-container div {
    transition: all 0.3s;
}

.home-buttons-container a {
    font-weight: 700;
    /*font-size: clamp(0.8rem, 1vw + .1rem, 1.4rem);*/
    line-height: 25px;
    border-radius: 0px 10px 10px 10px;
    cursor: pointer;
}

.home-buttons-container div:nth-child(1) {
    display: inherit;
}

.home-buttons-container a {
    display: block;
    margin: auto;
    text-decoration: none;
}

.home-buttons-container div:hover {
    transform: translate3d(0px, 0px, 0px) scale3d(1.02, 1.02, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.home-buttons-container div:nth-child(1) a {
    padding: 8px 19.6094px 8px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #111235;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.home-buttons-container div:nth-child(2) a {
    padding: 8px 19.6094px 8px;
    background: linear-gradient(90deg,   #03669F 0%,   #03669F 100%),   #03669F;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0px 10px 20px rgba(222, 49, 75, 0.2);
    color: white;
}

.actus-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: auto;
}

.actu-content a {
    font-weight: 700;
    /*font-size: clamp(0.7rem, 0.7vw + .1rem, 1rem);*/
    line-height: 15px;
    text-transform: uppercase;
    color:   #03669F ;
    margin-top: auto;
    text-decoration: none;
}


/* ICI LE TEST DU CAROUSSEL OU DU DÉFILEMENT.*/

.home-body .cirimat {
    width: 33%;
    /*max-width: 300px;*/

    padding-top: 50px;
    margin-top: 70px;
}

.cirimat p {
    width: 80%;
}

.home-body .cirimat {
    padding-bottom: 50px;
}

.home-body .presentation {
    width: 60%;
    position: relative;
    top: 20px;
    margin-top: 0;
}

.title-actu {
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 2px solid  #03669F ;
    /*font-size: clamp(2rem, 1.8vw + .1rem, 4rem);*/
}

.home-body .presentation .content {
    height: fit-content;
}

.home-body .presentation .content .container {
    height: 170px;
}

.actus-scrollable {
    user-select: none;
    display: flex;
    justify-content: space-between;
}

.more {
    font-weight: 700;
    /*font-size: clamp(1rem, 0.9vw + .1rem, 3rem);*/
    line-height: 15px;
    /* identical to box height, or 96% */
    text-align: center;
    text-decoration-line: underline;
    text-transform: uppercase;
    color:   #03669F ;
    cursor: pointer;
    transition: all 0.3s;
}

.more:hover {
    transform: translate3d(0px, 0px, 0px) scale3d(1.02, 1.02, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.anim {
    border-bottom: 2px solid #D9D9D9;
}

.presentation .anim {
    border-bottom: 1px solid #D9D9D9;
}

.f1 {
    display: flex;
    width: 100%;
    background: #F5F5F5;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.f1-wrapper {
    width: 40%;
    padding: 2% 0;
    margin-left: auto;
}

.triangle {
    width: 55%;
    background-image: linear-gradient(to bottom right, transparent 50%,   #03669F 0);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left, right;
}


@media (max-width: 767px) {
    .triangle {
        display: none;
    }
    .f1-wrapper {
        width: 90%;
        margin: auto;
    }
}

.f1 h1 {
    font-weight: 700;
    /*font-size: clamp(2rem, 2.5vw + .1rem, 4rem);*/
    line-height: 58px;
    /* identical to box height, or 130% */
    color: #351111;
}

.logo-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5%;
}

.logo-container img {
    max-width: 289.55px;
    height: 83.57px;
}

.f2 {
    background:  #03669F;
    margin: 0;
}

.f2-wrapper {
    width: 90%;
    margin: auto;
    color: white;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1%; /*4*/
}

.c1 a,
.c2 a {
    font-weight: 700;
    /*font-size: clamp(1rem, 1.1vw + .1rem, 2rem);*/
    line-height: 32px;
    color: white;
    text-decoration: none;
}

.c1 * {
    margin-bottom: 25px;
}

.c2 a {
    margin-bottom: 50px;
}

.c2 {
    text-align: center;
}

.c2 h3 {
    font-weight: 500;
    /*font-size: clamp(0.8rem, 0.9vw + .1rem, 2rem);*/
    line-height: 26px;
    text-align: center;
}

.c1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 50px
}

#responsive-presentation-btn {
    display: none;
    margin-left: auto;
    border: 0;
    background-color: transparent;
    color: white;
    font-weight: 700;
    /*font-size: clamp(1rem, 0.9vw + .1rem, 1.5rem);*/
    line-height: 26px;
    cursor: pointer;
}

@keyframes animate-menu {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.icons-container {
    display: flex;
    flex-direction: column;
}

.icons-container i {
    color: white;
    /*font-size: 25px;*/
    cursor: pointer;
    transition: all 0.3s;
}

.icons-container i:hover {
    transform: translate3d(0px, 0px, 0px) scale3d(1.05, 1.05, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.icons-container i:not(:last-child) {
    margin-bottom: 25px;
}


/* ADAPTATION TELEPHONE */

#rep-1 {
    display: none; 
}

.actus-container {
    width: 85%;
    margin: auto;
    margin-bottom: 50px;
}

.scrollable-div {
    display: flex;
    flex-direction: row;/**/
    width: 100%;
    overflow-x: auto;
    padding-bottom: 25px;
    padding-left: 25px;
}

.cover {
    top: 0;
    height: fit-content;
    border-radius: 0px 0px 46px 0px;
    background-color: #F5F5F5;
    border-radius: 0px 0px 60px 0px;
    padding: 20px;
}

.scrollable-div .actu-bloc {
    display: flex;
    
    /**/

    border-radius: 10px;
    filter: drop-shadow(0 5px 10px 0 #ffffff);
    min-width: 300px;/**/
    max-width: 400px;
    height: fit-content;
    position: relative;
    z-index: 0;
    background-color:   #03669F;
    overflow-y: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 0px 0px 46px 0px;
    margin-right: 50px;
    user-select: none;
    /* Ajout d'une marge en bas pour espacer les blocs */
}

.actu-bloc .actu-content {
    display: flex;
    flex-direction: row;
}

.actu-content div p,
.actu-content div h2 {
    line-height: 24px;
    height: fit-content;
    /*max-lines: 2; ???*/
    color: #351111;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp:6 ;/**/
    -webkit-box-orient: vertical;
}

.actu-content div p {
    line-height: 26px;
    width: 100%;
}

.scrollable-div .actu-bloc img {
    width: 200px;
    height: 200px;
    margin-right: 25px;
    object-fit: cover;
    border-radius: 10px;
}

.actu-bloc:hover {
    padding-right: 7px;
}

.actu-bloc a {
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.actu-bloc:hover a {
    color: white;
}

.actu-content .container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.actu-content .text {
    position: relative;
}

.actu-content .text::before {
    content: attr(data-text);
    position: absolute;
    color: #fff;
    width: 0;
    overflow: hidden;
    transition: 0.6s;
}

.actu-content .container::before {
    content: "";
    width: 0%;
    height: 100%;
    position: absolute;
    background:  #03669F;
    left: 0;
    top: 0;
    transition: 0.2s;
}

.actu-bloc:hover .actu-content .text::before,
.actu-bloc:hover .container::before {
    width: 100%;
}

@media (max-width: 767px) {
    #responsive-presentation {
        display: none;
    }
    #responsive-presentation-btn {
        display: block;
    }
    .presentation-active {
        display: block !important;
    }
    .home-section {
        width: 100%;
        flex-direction: column;
    }
    .home-body .presentation {
        width: 100%;
        margin: 0;
    }
    .presentation .content {
        padding: 5%;
        border-radius: 0px 0px 0px 50px;
    }
    .presentation .content .container {
        margin-top: 15px;
    }
    .content h1 {
        text-align: left;
        margin-bottom: 15px;
    }
    .home-body .cirimat {
        width: 80%;
        margin: auto;
    }
    .cirimat p {
        width: 100%;
    }
    .home-buttons-container div {
        margin-left: auto;
    }
    .home-haut .iso-container {
        display: none;
    }
    .actu-bloc {
        min-width: 90%;
    }
    .logo-container {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 20px;
    }
    .f2-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .more {
        margin-bottom: 30%;
    }
    .animations .container {
        margin-top: 15%;
    }
    .home-body .cirimat {
        margin-top: auto;
    }
    .actus-container {
        margin-top: 25px;
    }
}