:root {
    --primary: #4f46e5;
}

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    height: 100%;
    /* background-color: #F1F1F1; */
    background-color: #ebfaff;
}

section {
    width: 100%;
}

.container {
    width: 100%;
    height: auto;
}
.dflex {
    display: flex;
}
.jcsb {
    justify-content: space-between;
}
.jcsa {
    justify-content: space-around;
}
span {
    color: #4f46e5;
    font-weight: bold;
}

/*----------Fin des classes génériques  ---------------------*/

#header {
    height: 4em;
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 0.1em 0.8em;
}
.content-logo {
    width: fit-content;
    background-origin: content-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -3em;
}

.content-logo img {
    width: 150px; 
    height: auto;
    cursor: pointer;
}

.content-nav {
    width: 50%;
    height: 80%;
}

.content-nav ul {
    width: 100%;
    height: 100%;
}
.content-nav ul li {
    list-style: none;
    cursor: pointer;
    font-style: italic;
    font-weight: bold;
}
.content-nav ul li a:hover {
    text-decoration: underline;
}
#header.scrolled ul li a {
    text-decoration: none;
    /* color: var(--primary); */
    color: black;
}
.content-nav ul li:last-child {
    border-radius: 0.3em;
    background-color: var(--primary);
    padding: 0.4em;
}
#header.scrolled ul li:last-child a {
    color: #fff;
}

/* Fin des classes pour le header*/

#presentation {
    height: 8em;
    gap: 0.3em;
    background-color: #fff;
}

#presentation img {
    width: 6em;
    height: 3em;
    object-fit: cover;
}

#presentation p {
    font-weight: bolder;
}

/* ------------------ fin de la partie des presentation---------------------*/

#landing-items {
    height: 120em;
    padding-bottom: 25em;
    gap: 0.3em;
    /* margin: 7% 10% 7% 10%; */
}

.item {
    /* width: 100%; */
    height: 33%;
    margin-top: 5%;
    margin-bottom: 10%;
}

.item .item-content-description {
    width: 40%;
    height: 70%;
    padding: 0 0.8em;
    font-size: 22px;
    font-style: italic;
    margin-right: 5%;
}
.item .item-content-description p {
    font-size: 20px;
    margin-bottom: 5%;
}

ul {
    list-style: none;
}

.item .item-content-description ul {
    li::before {
        content: "•";
        color: blue;
        display: inline-block;
        font-size: 35px;
        width: 1em;
    }
}

.item .item-content-description ul {
    padding-left: 2%;
}

.item .item-content-description .item-content-button {
    width: 70%;
    height: 15%;
    justify-content: space-between;
    margin-right: 30%;
    gap: 20px;
}
.item .item-content-description .item-content-button button {
    cursor: pointer;
    font-size: 17px;
    padding: 0.8em;
    border: none;
    border-radius: 0.3em;
    transition-property: transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}
.item .item-content-description .item-content-button button:hover {
    transform: scale(1.05);
}
.item .item-content-description .item-content-button button:first-child {
    background-color: var(--primary);
    color: white;
}
/* .item .item-content-description .item-content-button button:last-child{
    background-color: #32354A;
    color: white;
} */

.item .item-content-img {
    /* width: 27%;
    height: 122%; */
    margin-left: 5%;
}

.item .item-content-img img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    /* padding: 155px 5px 155px 5px; */
}

.middle_text {
    margin-right: 7%; 
    height: 50%;
}
.middle_text p {
    margin-left: -20%;
}
.middle_text ul {
    margin-left: -30%;
}

.middle_image {
    margin-left: 7%; /* Ajoute une marge pour aligner avec les autres sections */
}

/* --------------------- fin des classes  ---------------------------*/
#content-card {
    height: 25em;
    gap: 0.8em;
    flex-wrap: wrap;
    margin-top: 3%;
    margin-bottom: 5%;
}

.card {
    width: 25%;
    height: 90%;
    min-width: 20em;
    margin: 20px;
    font-size: 17px;
    font-style: italic;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    border-radius: 0.8em;
}

.card div {
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card div h4 {
    margin: 0.2em;
    width: 100%;
    text-align: center;
}

.card div a {
    width: 60%;
    height: 40%;
    border: 0.1em solid white;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5em;
    cursor: pointer;
    transition-property: transform;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
    color: white;
}

.card div a:active {
    transform: scale(1.1);
}

.card div:first-child {
    position: relative;
}

.card div:first-child span {
    width: 2em;
    height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    border-radius: 50%;
    background-color: #f1f1f1;
    position: absolute;
    top: -30%;
    left: 40%;
    color: var(--primary);
}

/* Section #landing-items */
#landing-items .item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out;
}

#landing-items .item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section #content-card */
#content-card .card {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease-out;
}

#content-card .card.visible {
    opacity: 1;
    transform: scale(1);
}

/* ////////////////////////////////////// */

/* Section .image_scrolling */
.image_scrolling .scrolling-container {
    display: flex;
    gap: 1em;
    white-space: nowrap;
}

.image-slider {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible; /* Changé de hidden à visible */
    padding: 20px 0;
}

/* .scrolling-wrapper {
  display: flex;
  gap: 5em;
  padding: 20px;
  overflow-x: hidden;
} */

.scrolling-wrapper {
    display: flex;
    gap: 5em;
    height: 100%;
    /* padding: 20px; */
    overflow-x: auto;
    scroll-behavior: smooth;
    justify-content: space-evenly;
    align-items: center;
}

.scrolling-wrapper .partner {
    display: flex;
    gap: 7em;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 250px;
    padding-left: 2%;
  }

.image-item {
    width: 12em;
    height: auto;
    flex-shrink: 0;
    text-align: center;
    /* margin-bottom: 2em; */
}

.chroniqueur-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    padding: 1em;
}

.chroniqueur-card img {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ebfaff;
    object-position: center;
    padding-bottom: 10px;
}

.chroniqueur-card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    width: 100%;
    text-align: center;
    height: auto;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Tooltip (initialement caché) */
/* .chroniqueur-card h3::after */
 .chroniqueur-card h3::after{
    content: attr(data-fullname);
    position: absolute;
    bottom: -35px; 
    left: 50%;
    transform: translateX(-50%);
    background-color:var(--primary) ;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.chroniqueur-card h3:hover::after {
    visibility: visible;
    opacity: 1;
}


.chroniqueur-card p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    width: 100%;
    text-align: center;
}



  .grid-item{
    width: auto;
    height:100%;
  }

  .grid-item img {
    width: 200px;
    height: 100%;
    object-fit: cover;
  }
  
  .image-grid{
    display: flex;
    padding: 1em;
    justify-content: center;
    align-items: center;
  }


/* Styles pour les boutons de navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-nav:hover {
    background-color: #f8f9fa;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.image-slider {
    position: relative;
}

.scrolling-wrapper {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
