/* ----------------------------------------------
   VARIABLES
---------------------------------------------- */
:root {
    --color-primary: #e62d38;
    --color-secondary: #ef83b3;
    --color-gray-light: #e9ecef;
    --color-header: #e62d38;
    --color-title: #e62d38;
    --color-text: #212529;
}

/* ----------------------------------------------
   RESET / BASE
---------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    color: var(--color-text);
}

img { max-width: 100%; display: block; }

ul, ol { padding-left: 1.3rem; }

section { padding: 1.5rem 0; }

@media (min-width: 768px) {
    section { padding: 2rem 0; }
    #plagiat-row-5 {
        margin-top: 5rem!important;
    }
}

@media (min-width: 1200px) {
    section { padding: 3rem 0; }
}

/* ----------------------------------------------
   HEADER
---------------------------------------------- */
.navbar-brand{
    background: #fff;
    margin-top:-10px;
    border-radius:0 0 15px 15px;
    padding: 10px 20px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.menu {
    background-color: var(--color-header);
    padding: 1rem 2rem;
    border-radius: 15px;
    position: sticky;
    top: 0;
}

.menu .nav-link {
    display: inline-block;
}

.menu .nav-link {
    color: #fff !important;
    font-size: 1.2rem;
    padding: 0 .9rem;
}

.menu .nav-link.active {
    font-weight: bold;
}

.menu .menu-lang {
    margin-top: 10px;
    margin-left: 10px;
}

@media (min-width: 992px) {
    .menu .menu-lang {
        margin-top: 0;
    }
}

.menu .menu-lang .dropdown-menu{
    min-width: 20px;
}

.menu .menu-lang > .nav-link{
     background: #fff;
    border-radius: 5px;
    color: var(--color-primary) !important;
}

/* ----------------------------------------------
   TITRES / TEXTES
---------------------------------------------- */
h1, .h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--color-title);
}

h2,.h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-title);
    margin-bottom: 1.5rem;
}

h3,.h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: .6rem;
}

.text {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ----------------------------------------------
   BLOCS GÉNÉRIQUES
---------------------------------------------- */
.block { position: relative; }

.block-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-primary);
}

.block-image img {
    width: 100%;
    border-radius: 25px;
    object-fit: cover;
}
.block-image.h-100 img {
    width: auto;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* Boîtes grises */
.box {
    background-color: var(--color-gray-light);
    border-radius: 20px;
    padding: 2rem;
}

/* Cartes */
.card {
    border-radius: 25px;
    padding: 2rem;
}

.card--primary {
    background-color: var(--color-primary);
    color: #fff;
}

/* Cercles */
.circles ul{
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 0;
}
.circles ul li {
    width: 200px;
    height: 200px;
    position: relative;
    background-color: #e1e4eb;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    text-align: center;
    font-size: 1.1rem;
    /* margin: 0 auto; */
    line-height: 1.35rem;
}

@media (min-width: 1400px) {
    .circles ul li {
        width: 230px;
        height: 230px;
        padding: 1.2rem;
        font-size: 1.3rem;
    }
}

.circles ul li:first-child {
    position: relative;
}

.circles ul li:first-child::before {
    content: "";
    position: absolute;
    bottom: 20px;
    left: -70px;
    width: 200px;
    height: 50px;
    background: url(../media/bulle.svg) no-repeat center center;
    background-size: contain;
    z-index: -1;
}

.circle--lg {
    width: 260px;
    height: 260px;
    padding: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

/* ----------------------------------------------
   HERO
---------------------------------------------- */
#hero {
    overflow: hidden;
}

#hero .container{
    position: relative;
}
#hero .container:before{
    content:"";
    position: absolute;
    top: 0;
    left: -100%;
    width: 160%;
    height: 100%;
    background-color: var(--color-gray-light);
    border-radius: 20px;
    z-index: -1;
 }

#hero .row > div:first-child > div:first-child{
    padding: 4rem 3rem 0 3rem;
}

#hero .row div:first-child div h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--color-title);
}

@media (min-width: 768px) {
    #hero .row div:first-child div h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    #hero .row div:first-child div h1 {
        font-size: 2.8rem;
    }
}

#hero .row div:first-child div ul{
    list-style: none;
    padding:3rem 0 0 4rem;
    position: relative;
}

#hero .quote{
    right: -50px;
    position: relative;
    z-index: 1;
    font-size: 1.40rem;
}
#hero .quote:before {
    content:"";
    display: block;
    position: absolute;
    left:-2rem;
    top:0rem;
    width: 80px;
    height: 80px;
    -webkit-mask: url("../media/quote.svg") no-repeat center / contain;
    mask: url("../media/quote.svg") no-repeat center / contain;
    background-color: var(--color-text);
}

#hero .row img {
    border-radius: 15px;
    position: relative;
    top: 40px;
    z-index: 2;
    min-height: 400px;
    max-height: 400px;
    object-fit: cover;
}

/* ----------------------------------------------
   SANCTIONS / FORMATIONS LISTS
---------------------------------------------- */
#sanctions {
    overflow-x: clip;
}

.list {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-primary);
}

.list a { color: var(--color-primary); text-decoration: underline; }

/* ----------------------------------------------
   FORMATIONS OVERLAY
---------------------------------------------- */
.photo-block {
    position: relative;
    z-index: 2;
}

.photo-block img {
    border-radius: 25px;
    object-fit: cover;
}

.text-block {
    background-color: var(--color-gray-light);
    padding:1rem 2rem;
    padding-top: 75px;
    margin-top: -50px;
    border-radius: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .photo-block {
        width: 40%;
        left: 25px;
    }
    .text-block {
        width: 95%;
        margin-bottom:20px;
    }
}

@media (min-width: 1400px) {
    .photo-block {
        left: 0;
    }
    .text-block {
        width: 80%;
        padding-top: 1rem;
        padding-left: 13rem;
        max-height: 300px;
        margin-top: -150px;
        margin-left: 10%;
    }
}

.text-block p {
    margin-bottom: 0px;
}

/* flèche */
.arrow {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-right: .75rem;
}

/* Responsive : désactive chevauchement sur mobile */
@media (max-width: 767.98px) {
    .formations-overlay {
        margin-top: 1rem;
        margin-left: 0;
        padding-left: 2rem;
    }
}

#plagiat .card{
    font-size: 1.30rem;
    align-items: center;
    justify-content: center;
}

#plagiat .block-image {
    height: 100%;
}

#plagiat .block-image img {
    height: 100%;
}

/* -----------------------------------------------------------
   MENU BURGER
----------------------------------------------------------- */

/* Desktop : comportement normal */
@media (min-width: 992px) {
    #burger-btn {
        display: none;
    }

    #header-menu {
        display: block !important;
    }
}

/* Mobile : burger actif */
@media (max-width: 991.98px) {

    /* Bouton burger */
    #burger-btn {
        font-size: 2rem;
        cursor: pointer;
        color: var(--color-primary);
    }

    /* Menu masqué par défaut */
    #header-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--color-header);
        border-radius: 15px;
        padding: 1rem;
        z-index: 9999;
    }

    /* Liste verticale */
    #header-menu .nav {
        flex-direction: column;
        width: 100%;
        gap: .8rem;
    }

    #header-menu .nav-link {
        padding: .7rem 0 !important;
        font-size: 1.1rem !important;
        text-align: left;
    }

    /* Container header positionné pour le dropdown */
    #header .container {
        position: relative;
    }
}

/*--- CUSTOM CSS ---*/
a{
    text-decoration: underline;
    color: var(--color-primary);
    transition: all .5s ease-in-out;
}
a:hover{
    color: var(--color-secondary);
}

.link_more{
    display: flex;
    color: var(--color-primary);
    text-decoration: none;
    align-items: center;
}
.link_more:before{
    content:"";
    display: inline-block;
    width: 40px;
    height: 40px;
    -webkit-mask: url("../media/chevron.svg") no-repeat center / contain;
    mask: url("../media/chevron.svg") no-repeat center / contain;
    background-color: var(--color-primary);
    transition: all .5s ease-in-out;
}
.link_more:hover:before{
    animation: move 1s ease-in-out infinite;
    background-color: var(--color-secondary);
}
.link_more p{margin:0;}

@keyframes move {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
    100% {
        transform: translateX(0);
    }
}

.shape-left,
.shape-right,
.section-shape-left .container,
.section-shape-right .container
{
    position:relative;
}
.shape-left:before,
.shape-right:after,
.section-shape-left .container:before,
.section-shape-right .container:after {
    content:"";
    position:absolute;
    top:-5%;
    height: 110%;
    width:100%;
    background:var(--color-gray-light);
    z-index:-1;
    border-radius: 25px;
}

.shape-left:before,
.section-shape-left .container:before{
    left: -95%;
}

.shape-right:after,
.section-shape-right .container:after{
    right: -95%;
}

#detection-row-1 {
    margin-bottom: 6rem !important;
}

#detection-row-2 #detection-col-txt-d {
    position: relative;
}

#detection-row-2 #detection-col-txt-d:before, #etudiant #etudiant-row-2:before {
    content:"";
    position: absolute;
    bottom: -40px;
    right: -50px;
    width: 325px;
    height: 325px;
    -webkit-mask: url("../media/quote.svg") no-repeat center / contain;
    mask: url("../media/quote.svg") no-repeat center / contain;
    background-color: #e1e4eb;
    transform: rotate(155deg) scaleX(-1);
    z-index: 0;
}

#etudiant #etudiant-row-2:before {
    right: -110px;
}

#detection-row-2 #detection-col-txt-d>div{
    position: relative;
    z-index: 1;
}

#etudiant #etudiant-row-2 > div {
    position: relative;
    z-index: 1;
}

#etudiant, #detection-row-2 #detection-col-txt-d {
    overflow: hidden;
}

#formations ul, #formations p{
    margin-bottom: 2rem !important;
}

#formations .link_more p {
    margin-bottom: 0px !important;
}

ul li p {margin-bottom: 0px;}

#etudiant-row-1 {
    margin-bottom: 25px;
    align-items: stretch;
}

#etudiant-row-1 #etudiant-col-img .block-image,
#etudiant-row-1 #etudiant-col-img .block-image img {
    height: 100%;
}

#etudiant-row-1 #etudiant-col-txt {
    padding-top: 20px;
}

#etudiant.section-shape-left .container::before {
    top: 5%;
    height: 100%;
}

#etudiant #etudiant-row-2 {
    padding-left: 70px;
}

#footer{
    text-align: center;
    background-color: var(--color-primary);
    color:#fff;
    padding: 2rem 0;
}

#footer .info-footer a {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}

#footer .info-footer a:hover {
    opacity: 0.7;
}

@media (max-width: 991.99px) {
    .shape-left:before,
    .section-shape-left .container:before {
        left: -70%;
    }
    .shape-right:after,
    .section-shape-right .container:after {
        right: -70%;
    }
    .shape-left::before,
    .shape-right::after {
        top: inherit;
        bottom: -3%;
        height: 30%;
    }
    #etudiant.section-shape-left .container::before {
        top: -3%;
        height: 30%;
    }
    #etudiant #etudiant-row-2 {
        padding-left: 0px;
    }
    #ethique {
        margin-bottom: 1rem!important;
    }
    #ethique #ethique-row #ethique-col-img,
    #plagiat #plagiat-col-img,
    #detection #detection-col-img {
        order: 2;
        margin-top: 25px;
    }
    #ethique #ethique-row #ethique-col-txt,
    #plagiat #plagiat-col-txt,
    #detection #detection-col-txt {
        order: 1;
    }
    #detection #detection-row-2 {
        margin-bottom: 0!important;
    }
    #detection #detection-row-2 #detection-col-txt-g,
    #detection #detection-row-2 #detection-col-txt-d {
        margin-bottom: 1rem;
    }
    #detection-row-2 #detection-col-txt-d:before, #etudiant #etudiant-row-2:before {
        display: none;
    }
    #etudiant .etudiant-row-1 {
        margin-bottom: 1rem!important;
    }
    #etudiant .etudiant-row-1 .block-image {
        margin-bottom: 25px;
    }
    #sanctions .block-image {
        padding-top: 25px;
    }
}

@media (min-width: 992px) {
    #ethique #ethique-row #ethique-col-txt,
    #plagiat #plagiat-col-txt,
    #detection #detection-col-txt {
        padding-left: 25px;
    }
    .section-shape-left .container .p-80,
    .section-shape-right .container .p-80 {
        padding-left: 80px;
    }
}
