/* ----------------------------------

Design : CFLC - Centre de Formation en langue Chinoise à Madagascar
Développeur : Olga Andriamiharisoa
Version : 1.0
Création : 11.2024
Main Font : Roboto Mono et League Spartan

-------------------------------------
[table des contenus]    

    01. Définitions générales
    02. Mes bouttons de naviguation rapide
    03. Section Hero + En-tête 
    04. Section A propos de nous
    05. Section nos offres
    06. Section Niveaux 
    07. Sections bourses extérieurs
    08. Section voyage organisé
    09. Section Contact
    10. Section des partenaires
    11. Footer
    12. Responsive
    
*/

/* Général*/
  body {
    margin: 0;
    padding: 0;
    font-family: 'League Spartan';
  }

  h2 {
    font-size: 2rem;
    font-weight: bold;
  }

  .titre-encadre {
    background-color: #f5f5f5;
    display: inline-block;
    padding: 0 1rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
  }


/* ------------------------------------ Mes bouttons de naviguation rapide  ------------------------------------ */

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #FFC107; 
  color: #000;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.floating-btn:hover {
  background-color: #000;
  color: #FFC107;
  transform: scale(1.1);
}

.floating-btn.home-btn {
  border: 2px solid #000;
}

.floating-btn.contact-btn {
  border: 2px solid #FFC107;
}


/*  ------------------------------------ Section Hero + En-tête ------------------------------------ */

#cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Arrière-plan semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Priorité haute */
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.popup-content button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-content button:hover {
  background-color: #0056b3;
}


.hero-section {
    height: 100vh; 
    background-image: url('../medias/fond3.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.home {
  font-size: 1.5vw;
}

.hero-text{
  font-family: 'League Spartan';
}

.hero-text .display-1 {
  font-size: 8vw; 
}

nav{
  font-family: 'Roboto Mono', monospace;
}

.navbar-nav .nav-link {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #FFC107;
}

.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  padding: 10px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  color: #202B59;
  padding: 10px 20px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dropdown-item:hover {
  background-color: #FFC107;
  color: #ffffff;
}


/* ------------------------------------ Section A propos de nous ------------------------------------ */
  .about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    height: 100vh;
  }
  .about .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .about .text {
    flex: 1;
    padding-right: 20px;
    position: relative;
  }
  
  .about .image {
    flex: 1;
  }
  
  .about .image img {
    max-width: 100%;
    height: auto;
  }
  
  .red-text {
    color: red; 
  }
  
  .text p{
      text-align: justify;
  }

  #about p{
  font-family: 'Roboto Mono', monospace;
  } 
  
  .image {
    position: relative;
    flex: 1;
  }

  .image img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      opacity: 0;
      transition: opacity 1s ease-in-out;
  }

  .image img.current {
      opacity: 1;
      position: relative;
  }

  
/* ------------------------------------ Section nos offres ------------------------------------ */

.offres {
  height: 100vh; 
  background-color: #f5f5f5; 
}

.content-offres{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  position: relative;
  width: 450px; 
  height: 450px;
}

.center-image {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 75%; 
}

.icon-with-text {
  position: absolute; 
  display: flex;
  align-items: center; 
  gap: 10px; 
}

.icon-with-text .small-image {
  width: 100px; 
  height: 100px;
  transform: translate(0, 0); 
}

.icon-with-text .icon-text {
  font-size: 14px; 
  width: 160px;
  font-family: 'Roboto Mono', monospace;
}

.icon-left {
  flex-direction: row-reverse; 
}

.icon-left .small-image {
  margin-left: -30px; 
}

.icon-left .icon-text {
  margin-right: -35px; 
}

.icon-left .text-icone1{
  margin-right: -20px;
}

.icon-left .text-icone2{
  margin-right: 25px;
}

.img1 {
  top: 50%;
  left: 123%;
  transform: translate(-50%, -50%);
}

.img2 {
  top: 25%;
  left: 115%;
  transform: translate(-50%, -50%);
}

.img3 {
  top: 50%;
  left: -7%;
  transform: translate(-50%, -50%);
}

.img4 {
  top: 75%;
  left: -5%;
  transform: translate(-50%, -50%);
}

.img5 {
  top: 75%;
  left: 115%;
  transform: translate(-50%, -50%);
}

.img6 {
  top: 25%;
  left: -1%;
  transform: translate(-50%, -50%);
}


/* ------------------------------------ Section Niveaux ------------------------------------ */

.niveaux {
  background-image: url('../medias/fond5.jpg');
  background-size: cover; 
  height: 100vh; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
}

figure img {
  border-radius: 1rem; 
  transition: transform 0.3s ease; 
}

figure img:hover {
  transform: scale(1.05); 
}

figure figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.niveau-text {
  color: #f5f5f5; 
  text-align: center;
  margin-top: 1rem;
}

.niveau-text div {
  font-size: 5rem; 
  font-weight: bold;
}

.col-md-4 {
  padding: 0 4rem; 
}


/* ------------------------------------ Sections bourses extérieurs ------------------------------------ */

.bourses {
  background-image: url('../medias/fond6.jpg'); 
  background-size: cover; 
  background-position: center;
  position: relative;
  height: auto;
}

.tags {
  top: 15%;
  left: 25%;
}

.tag {
  display: inline-block;
  padding: 0 5px;
  color: #fff;
  transform: rotate(-10deg); 
  border-radius: 5px;
  margin-right: -20px; 
  position: relative;
}

.tag-yellow {
  top:-4rem;
  background-color: #ffcc00;
  z-index: 2;
}

.tag-blue {
  top: 0rem;
  left: -3rem;
  background-color: #007bff;
  z-index: 2;
}

.tags span{
  font-size: 3vw;
  font-family: 'League Spartan';
  font-weight: bold;
}

.box-list {
  width: 80%;
  margin-left: 0;
  padding: 0.5rem;
  background-color:  #ffcc00;
  position: relative;
  z-index: 1;
}

.box-list .hero-text div {
  margin-bottom: 3rem; 
  margin-top: 1rem;
  margin-left: 1rem;
  color: #f5f5f5;
}

.box-list .hero-text{
  margin: 2rem;
  background-image: url('../medias/box-bg.png'); /* Fond PNG */
  background-size: cover;
  background-position: center;
}

.hero-text div:last-child {
  margin-bottom: 0; 
}

.frame {
  width: 100%;
  height: 100%;
  border: 5px solid #000;
  position: absolute;
  top: -30px;
  left: 30px;
  z-index: 1; 
  pointer-events: none; 
}


/* ------------------------------------ Section voyage organisé ------------------------------------ */

.wonders-oblique {
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background-image: url('../medias/fond8.png');
  height: 125vh;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.description-voyage{
  color: #f0f0f0;
  width: 35%;
  font-weight: 600;
  text-align: center; 
  z-index: 2; 
  font-size: 1.25rem;
  font-family: 'Roboto Mono', monospace;
}

.wonders-oblique h2 {
  font-size: 2.5rem;
  color: #333;
}

.oblique-container {
  margin-top: 3%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  transform: rotate(-10deg);
  background-color: #f0f0f0;
  position: relative; 
  top: 5%; 
  left: 0%;
  width: 120%;
  padding: 1rem 0;
}

.oblique-card {
  border-radius: 8px;
  overflow: hidden;
  transform: rotate(-0.25deg); 
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);


  transform: rotate(-0.25deg);
}

.oblique-card-right{
  margin-left: -7%;
  width: 13%;
}

.oblique-card-right img{
  height: 110%;
  margin-left: -20%;
}

.flag-deco-haut {
  position: absolute;
  top: -18%;
  left: 4%;
  width: 300px;
  height: 150px;
  background: url('../medias/drapeau-chine.png') no-repeat center/cover;
  transform: rotate(-10deg);
}
.flag-deco-bas {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 300px;
  height: 150px;
  background: url('../medias/drapeau-chine.png') no-repeat center/cover;
  transform: rotate(-10deg);
}

.wonder-image {
  height: 250px;
  object-fit: cover;
  display: block;
  width: 100%;
  transition: transform 0.5s ease; 
  object-fit: cover;
}

.oblique-card:hover .wonder-image {
  transform: scale(1.1); 
}

.oblique-card h3 {
  position: absolute; 
  top: 80%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: red; 
  background-color: #FFC107;
  padding: 0.5rem; 
  border-radius: 2rem; 
  font-size: 1.5rem;
  text-align: center;
  font-family: 'League Spartan';
  font-weight: 900;
}

.noir h3{
  color: #000;
}

.deco-bas{
  position: absolute; 
  bottom: -17%; 
  right: -25%; 
  width: 68%; 
  height: auto; 
  z-index: 1; 
}

.deco-haut{
  position: absolute; 
 top: 15%; 
  left: 2%; 
  width: 20%; 
  height: auto; 
  z-index: 1; 
}


/* ------------------------------------ Section Contact ------------------------------------ */

.contact-section {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  box-sizing: border-box;
}

.yellow-band {
  width: 100%;
  max-width: 25%;
  background-color: #FFC107;
  position: relative;
}

.yellow-dots {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 150px;
  background-image: radial-gradient(#000 10%, transparent 10%);
  background-size: 15px 15px;
}

.content {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

.contact-box {
  background-color: #000;
  color: #fff;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  margin-bottom: 20px;
  font-family: 'Roboto Mono', monospace;
  transform: translateX(-40%); 
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item i {
  color: #FFC107;
  margin-right: 10px;
  font-size: 1.5rem;
}

.contact-item a {
  color: #fff;
}

.contact-item a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

.chat-icon {
  position: absolute;
  bottom: -25%;
  right: -35%;
}

.chat-icon img {
  width: 60%;
}

.founder-info {
  width: 100%;
  max-width: 40%;
  text-align: center;
  margin-bottom: -7%;
}

.founder-photo {
  width: 25rem;
  height: 25rem;
  margin-left: -50%;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  position: relative; 
  z-index: 2; 
}

.founder-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  margin-left: -50%;
}

.founder-role {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: -50%;
}
.yellow-dots-corner {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(#FFC107 10%, transparent 10%);
  background-size: 15px 15px;
  z-index: 1;
}


/* ------------------------------------ Section des partenaires ------------------------------------ */

.partners-section {
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.titre-partner{
  background-color: red;
  color: #f39c12;
}
.titre-partner span{
  color: #fff;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6rem;
}

.logo-container {
  width: 150px; 
  height: 150px; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.1);
}


/* ------------------------------------ Page d'erreur ------------------------------------ */

.custom-page {
  background-color: #f39c12;
  font-family: 'Roboto Mono';
  color: red;
  text-align: center;
}

.custom-page a {
  color: #007bff;
  text-decoration: none;
}

.custom-page a:hover {
  text-decoration: underline;
}

.custom-page img {
  width: 25%;
}


/* ------------------------------------ Footer ------------------------------------ */

.site-footer {
  background-color: #202B59;   color: #FFF;
  padding: 20px 40px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-content p {
  margin: 5px 0;
  color: #EEE;
}

.footer-content span {
  font-weight: bold;
  color: #FFC107; 
}


/*  ------------------------ Responsives ------------------------ */

@media (max-width: 992px) {

/* Hero + En-tête */

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

  .dropdown-item {
    padding: 8px 15px;
}

/* Section Bourses extérieures*/

  .box-list {
    width: 80%;
    padding: 0.5rem;
  }

  .tags {
    top: 25%;
    left: 25%;
  }

  .tags span{
    font-size: 5vw;
    font-family: 'League Spartan';
    font-weight: bold;
  }

/* Section contact*/

.contact-box {
  transform: translateX(0%);
  z-index: 2;
}
.founder-photo {
  width: 200px;
  height: 200px;
}

.founder-photo {
  margin-left: 0; 
}

.founder-name {
  margin-left: 0;
}

.founder-role {
  margin-left: 0;
}

/*section offres*/ 

.offres{
  height: auto;
  width: 100%;
}
.circle {
  width: 350px;
  height: 350px;
}

.center-image {
  left: 45%;
}

.icon-with-text .small-image {
  width: 50px; 
  height: 50px;
}

.icon-with-text .icon-text {
 white-space: inherit;   
}

.img1 {
  left: 114%;
}

.img2 {
  left: 107%;
}

.img3 {
  left: -15%;
}

.img4 {
  left: -15%;
}

.img5 {
  left: 106%;
}

.img6 {
  left: -10%;
} 
}


  @media (max-width: 768px) {
     html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
  
    /* Hero + En-tête */

    .home {
        font-size: 4vw;
    } 
    
    /*------ Section A propos de nous ------*/

    .about{
      height: auto;
    }

    .about .content {
      flex-direction: column;
    }
  
    .about .text,
    .about .image {
      padding: 0;
      text-align: center;
    }
  
    .about .image img {
      width: 80%;
    }

  /* Section voayage organisé */

  .wonders-oblique{
    height: auto;
  }

  .description-voyage{
    width: 75%;
  }

  .oblique-container {
    flex-direction: column;
    gap: 1.5rem;
    transform: none;
  }

  .oblique-card {
    width: 100%;
    transform: none;
  }

  .flag-deco-haut {
    display: none;
  }

  .flag-deco-bas {
    display: none;
  }

  .oblique-card-right img{
    display: none;
  }

  .deco-bas{
    display: none;
  }

/* Section Contact */

.contact-box {
  transform: translateX(0%); 
}
.chat-icon {
  display: none;
}

.content {
  flex-direction: column;
  align-items: center;
}

.contact-box, .founder-info {
  width: 100%;
  max-width: 100%;
}

.chat-icon {
  position: static;
  margin-top: 20px;
}

.yellow-dots-corner {
  top: 5%;
  right: 10%;
  width: 150px;
  height: 150px;
}
.founder-photo {
  width: 200px;
  height: 200px;
}

/* Section partenaires*/

.partners-logos {
  gap: 15px;
}

/* footer*/

.site-footer {
  padding: 15px 20px;
  font-size: 0.8rem;
}

.footer-links a {
  margin: 0 5px;
}

.floating-btn {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.floating-buttons {
  right: 10px;
}

/*section offres*/

.offres {
  position: inherit;
  height: auto; 
}
.content-offres {
  flex-wrap: wrap; 
}

.icon-with-text {
  position: inherit;
  margin-bottom: 20px; 
}

.icon-with-text .small-image {
  width: 50px; 
  height: 50px;
}

.icon-with-text .icon-text {
  position: inherit;
  font-size: 16px;
  font-family: 'Roboto Mono', monospace;
}

.center-image{
  display: none;
}

.icon-left {
  flex-direction: row; 
}

.img1, .img2, .img3, .img4, .img5, .img6 {
    top: 0;
    left: 0;
    transform: none;
}

.icon-left .small-image {
  margin-left: 0px;
}

.icon-left .icon-text {
  margin-right: 0px; 
}

/*sections niveaux*/
.niveaux {
  height: auto; 
}

}


@media (max-width: 576px) {

  /* Section voyage organisé */

  .wonders-oblique h2 {
    font-size: 2rem;
  }

  .wonder-image {
    height: 120px;
  }

  .oblique-card h3 {
    font-size: 1rem;
  }

  .flag-deco-haut {
    display: none;
  }
  
  .flag-deco-bas {
    top: -10%;
    right: -10%;
  }
}