/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --selective-yellow: hsl(42, 94%, 55%);
  --eerie-black-1: hsl(0, 0%, 9%);
  --eerie-black-2: hsl(180, 3%, 7%);
  --quick-silver: hsl(0, 0%, 65%);
  --radical-red: hsl(351, 83%, 61%);
  --light-gray: hsl(0, 0%, 80%);
  --isabelline: hsl(36, 33%, 94%);
  --gray-x-11: hsl(0, 0%, 73%);
  --kappel_15: hsla(170, 75%, 41%, 0.15);
  --platinum: hsl(0, 0%, 90%);
  --gray-web: hsl(0, 0%, 50%);
  --black_80: hsla(0, 0%, 0%, 0.8);
  --white_50: hsla(0, 0%, 100%, 0.5);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_30: hsla(0, 0%, 0%, 0.3);
  --kappel: hsl(170, 75%, 41%);
  --white: hsl(0, 0%, 100%);

  /**
   * gradient color
   */

  --gradient: linear-gradient(-90deg,hsl(151, 58%, 46%) 0%,hsl(170, 75%, 41%) 100%);

  /**
   * typography
   */

  --ff-league_spartan: 'League Spartan', sans-serif;
  --ff-poppins: 'Poppins', sans-serif; 

  --fs-1: 4.2rem;
  --fs-2: 3.2rem;
  --fs-3: 2.3rem;
  --fs-4: 1.8rem;
  --fs-5: 1.5rem;
  --fs-6: 1.4rem;
  --fs-7: 1.3rem;

  --fw-500: 500;
  --fw-600: 600;

  /**
   * spacing
   */

  --section-padding: 75px;

  /**
   * shadow
   */

  --shadow-1: 0 6px 15px 0 hsla(0, 0%, 0%, 0.05);
  --shadow-2: 0 10px 30px hsla(0, 0%, 0%, 0.06);
  --shadow-3: 0 10px 50px 0 hsla(220, 53%, 22%, 0.1);

  /**
   * radius
   */

  --radius-pill: 500px;
  --radius-circle: 50%;
  --radius-3: 3px;
  --radius-5: 5px;
  --radius-10: 10px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
span,
data,
input,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto;
border-radius: 50px; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-poppins);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--gray-web);
  font-size: 1.6rem;
  line-height: 1.75;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.section { padding-block: var(--section-padding); }

.shape {
  position: absolute;
  display: none;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.h1,
.h2,
.h3 {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
  line-height: 1;
}

.h1,
.h2 { font-weight: var(--fw-600); }

.h1 { font-size: var(--fs-1); }

.h2 { font-size: var(--fs-2); }

.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
}

.section-title {
  --color: var(--radical-red);
  text-align: center;
  font-size: 4rem;
}

.section-title .span {
  display: inline-block;
  color: #8C52FF;
}

.btn {
  background-color: #8C52FF;
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: max-content;
  padding: 10px 20px;
  border-radius: var(--radius-5);
  overflow: hidden;
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  position: absolute;
  content: "";
}

.btn::before {
  inset: 0;
  background-image: var(--gradient);
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-100%);
  transition: var(--transition-2);
}

.btn:is(:hover, :focus)::before { transform: translateX(0); }

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
  
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.section-subtitle {
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-weight: var(--fw-500);
  letter-spacing: 1px;
  text-align: center;
  margin-block-end: 15px;
}

.section-text {
  font-size: var(--fs-5);
  text-align: center;
  margin-block: 15px 25px;
  font-size: 2rem;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.category-card,
.stats-card { background-color: hsla(var(--color), 0.1); }

:is(.course, .blog) .section-title { margin-block-end: 40px; }





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 12px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active { position: fixed; }

.header .container,
.header-actions,
.navbar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-action-btn,
.nav-close-btn {
  position: relative;
  color: var(--eerie-black-1);
  font-size: 24px;
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) { color: var(--kappel); }

.header-action-btn .btn-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-6);
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
}


.navbar {
  position: fixed;
  top: 0;
  left: -320px;
  background-color: var(--white);
  width: 100%;
  max-width: 320px;
  height: 100%;
  z-index: 2;
  transition: 0.25s var(--cubic-in);
}

.navbar.active {
  transform: translateX(320px);
  transition: 0.5s var(--cubic-out);
}

.navbar .wrapper {
  padding: 15px 20px;
  border-block-end: 1px solid var(--platinum);
}

.nav-close-btn {
  background-color: var(--white);
  box-shadow: var(--shadow-2);
  padding: 8px;
  border-radius: var(--radius-circle);
}

.nav-close-btn:is(:hover, :focus) {
  background-color: var(--kappel);
  color: var(--white);
}

.navbar-list { padding: 15px 20px; }

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--platinum); }

.navbar-link {
  padding-block: 8px;
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) { color: var(--kappel); }

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black_80);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block-start: calc(var(--section-padding) + 80px); }

.hero .container {
  display: grid;
  gap: 40px;
}

.hero-text {
  color: var(--eerie-black-1);
  font-size: var(--fs-4);
  text-align: center;
  margin-block: 18px 20px;
}

.hero .btn { margin-inline: auto; }

.hero-banner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: flex-start;
  gap: 30px;
}

.hero-banner .img-holder.one {
  border-top-right-radius: 70px;
  border-bottom-left-radius: 110px;
}

.hero-banner .img-holder.two {
  border-top-left-radius: 50px;
  border-bottom-right-radius: 90px;
}



.search-container {
  background-color: white;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    margin-left: 30px;
  }
  
  .search-input {
    flex-grow: 1; /* Utiliser flex-grow ici pour que la barre de recherche prenne plus de place */
    max-width: calc(40% - 40px); /* Limiter la largeur maximale pour éviter de dépasser l'espace disponible */
  }
  
  .search-input input {
    padding: 10px;
    border: 1px solid #ccc;
    width: 50%; /* Faire en sorte que l'input prenne toute la largeur de son conteneur */
    border-radius: 5px;
  }
  
  .search-button {
    background-color: #4ed2c2;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Empêcher le texte du bouton de passer à la ligne */
  }
  
  .search-button i {
    margin-right: 2px;
  }
  
  /* Ajouter des règles média pour plus de réactivité si nécessaire */
  @media (max-width: 768px) {
    .search-container {
      flex-direction: column;
      align-items: stretch;
    }
  
    .search-input {
      max-width: none; /* Enlever la limite de largeur sur mobile */
      width: 100%;
      margin-bottom: 10px;
    }
    .search-input input {
      width: 100%; /* La barre de recherche occupe toute la largeur sur mobile */
    }
  }






/*-----------------------------------*\
  #CATEGORY
\*-----------------------------------*/

.category .section-subtitle { color: var(--radical-red); }

.category .section-title { --color: var(--kappel); }

.category .section-text { margin-block-end: 40px; }

.phone img {
  width: 100%;
}

.phone {
  background: linear-gradient(to bottom, #02045e, #5a67dc);
}






/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  padding-block-start: 0;
  overflow: hidden;
}

.about .container {
  display: grid;
  gap: 30px;
}

.about-banner {
  position: relative;
  z-index: 1;
}

.about-banner .img-holder { border-radius: var(--radius-10); }

.about-shape-2 {
  display: block;
  bottom: -100px;
  left: -60px;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% { transform: translateY(0); }

  40% { transform: translateY(-30px); }

  60% { transform: translateY(-15px); }
}

.about :is(.section-subtitle, .section-title, .section-text) {
  text-align: left;
}

.about-item {
  margin-block: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-item ion-icon {
  color: var(--selective-yellow);
  font-size: 20px;
  --ionicon-stroke-width: 50px;
}

.about-item .span {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
}





/*-----------------------------------*\
  #COURSE
\*-----------------------------------*/

.course { background-color: var(--isabelline); }


.course-card .card-meta-item .span {
  color: var(--eerie-black-1);
  font-size: var(--fs-7);
}

.course .btn {
  margin-inline: auto;
  margin-block-start: 60px;
}


.container {
  max-width: 1200px;
  
  padding: 0 20px;
}


.pricing-header{
 text-align: center;
 padding: 20px 0;
 margin-bottom: 20px;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #8C52FF;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #1A302C;
}

.pricing-card.highlighted{
  border: 2px solid #33ff99;
}

.plan-name {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: normal;
}

.price-container {
  margin-bottom: 10px;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
}

.per-month {
color: #ccc;
font-size: 0.8rem;
display: block;
}


.cta-button {
  background-color: transparent;
  color: #f0f0f0;
  border: 1px solid #f0f0f0;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px 0;
  display: inline-block;
}

.cta-button:hover {
background-color: #f0f0f0;
color: #1A302C;
}
.features-list {
list-style: none;
padding: 0;
}

.features-list li {
  text-align: left;
margin-bottom: 8px;
display: flex;
align-items: center;
color: #ccc;
}

.features-list li i {
 color: #33ff99;
 margin-right: 10px;
 font-size: 5rem;
}

/* Toggle Switch Styles */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.toggle-text{
 margin: 0 10px;
 color: #ccc;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #33ff99;
}

input:focus + .slider {
  box-shadow: 0 0 1px #33ff99;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}





/*-----------------------------------*\
  #VIDEO
\*-----------------------------------*/

.video {
  background-size: contain;
  background-position: center top;
}

.video-banner {
  position: relative;
  border-top-right-radius: 80px;
  border-bottom-left-radius: 120px;
}

.video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--radical-red);
  font-size: 30px;
  padding: 16px;
  color: var(--white);
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 0 var(--white_50);
  z-index: 1;
  animation: pulse 3s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--white_50); }
  100% { box-shadow: 0 0 0 20px transparent; }
}

.video-banner::after {
  inset: 0;
  background-color: var(--black_30);
}





/*-----------------------------------*\
  #STATS
\*-----------------------------------*/

.stats-card {
  text-align: center;
  padding: 25px;
  border-radius: var(--radius-10);
}

.stats-card :is(.card-title, .card-text) { font-family: var(--ff-league_spartan); }

.stats-card .card-title {
  color: hsl(var(--color));
  font-size: var(--fs-2);
  line-height: 1.1;
}

.stats-card .card-text {
  color: var(--eerie-black-1);
  text-transform: uppercase;
}





/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-card .card-banner { border-radius: var(--radius-10); }

.blog-card .card-banner .img-cover { transition: var(--transition-2); }

.blog-card .card-banner::after {
  inset: 0;
  background-color: var(--black_50);
  opacity: 0;
  transition: var(--transition-1);
}

.blog-card:is(:hover, :focus-within) .card-banner .img-cover { transform: scale(1.1); }

.blog-card:is(:hover, :focus-within) .card-banner::after { opacity: 1; }

.blog-card .card-content {
  position: relative;
  margin-inline: 15px;
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-3);
  margin-block-start: -100px;
  z-index: 1;
}

.blog-card .card-btn {
  position: absolute;
  top: -40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 20px;
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
  opacity: 0;
}

.blog-card .card-btn:is(:hover, :focus) { background-color: var(--radical-red); }

.blog-card:is(:hover, :focus-within) .card-btn {
  opacity: 1;
  transform: translateY(10px);
}

.blog-card :is(.card-meta-item, .card-text, .card-subtitle) {
  font-size: var(--fs-5);
}

.blog-card .card-subtitle { text-transform: uppercase; }

.blog-card .card-title {
  margin-block: 10px 15px;
  transition: var(--transition-1);
}

.blog-card .card-title:is(:hover, :focus) { color: var(--kappel); }

.blog-card :is(.card-meta-list, .card-meta-item) { display: flex; }



/* Conteneur principal */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 2px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300% auto;
  max-width: 1000px;
}

/* Bande des images */
.carousel-track {
  display: flex;
  animation: scroll 10s linear infinite; /* Animation continue */
}

/* Animation pour défiler */
@keyframes scroll {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-100%);
  }
}

/* Images dans le carrousel */
.carousel-track a {
  display: block;
  flex-shrink: 0;
  width: 200px; /* Taille des images */
  margin: 30px;
  text-decoration: none;
}

.carousel-track img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Effet au survol */
.carousel-track img:hover {
  transform: scale(1.1);
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 200px; /* ajuste selon la taille de tes images */
  margin-right: 16px; /* espace entre les images */
}





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-repeat: no-repeat;
  background-color: var(--eerie-black-2);
  color: var(--gray-x-11);
  font-size: var(--fs-5);
}

.footer-top {
  display: grid;
  gap: 30px;
}

.footer-brand-text { margin-block: 20px; }

.footer-brand .wrapper {
  display: flex;
  gap: 5px;
}

.footer-brand .wrapper .span { font-weight: var(--fw-500); }

.footer-link { transition: var(--transition-1); }

.footer-link:is(:hover, :focus) { color: var(--kappel); }

.footer-list-title {
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-block-end: 10px;
}

.footer-list .footer-link { padding-block: 5px; }

.newsletter-form { margin-block: 20px 35px; }

.newsletter-form .input-field {
  background-color: var(--white);
  padding: 12px;
  border-radius: var(--radius-5);
  margin-block-end: 20px;
}

.newsletter-form .btn {
  min-width: 100%;
  justify-content: center;
}

.social-list {
  display: flex;
  gap: 25px;
}

.social-link { font-size: 20px; }

.footer-bottom {
  border-block-start: 1px solid var(--eerie-black-1);
  padding-block: 30px;
}

.copyright { text-align: center; }

.copyright-link {
  color: var(--kappel);
  display: inline-block;
}





/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 15px;
  border-radius: var(--radius-circle);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
}

.back-top-btn.active {
  transform: translateY(10px);
  opacity: 1;
  pointer-events: all;
}


/*-----------------------------------*\
  #portfolio 
\*-----------------------------------*/



.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 10px;
}

/* Section Portfolio */
.portfolio-section {
  display: flex;
  align-items: flex-start; /* Aligner le contenu texte en haut */
  gap: 40px; /* Espace entre la partie texte et la galerie */
  background-color: #fff; /* Fond blanc pour la section */
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.portfolio-text-content {
  flex: 1; /* Prend l'espace disponible, moins que la galerie */
  max-width: 350px; /* Limite la largeur du texte */
}

.portfolio-tag {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #28a745; /* Vert comme dans l'image */
  color: #28a745;
  border-radius: 20px; /* Forme de pilule */
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase; /* Optionnel, pour un look plus "propre" */
}

.portfolio-text-content h2 {
  font-size: 2.8em; /* Grande taille pour le titre */
  color: #1a2530; /* Couleur foncée pour le titre */
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.portfolio-text-content h2 strong {
  color: #000000; /* Noir pour la partie en gras */
  font-weight: 900; /* Plus gras */
}

.portfolio-text-content p {
  font-size: 1em;
  color: #555; /* Gris pour le paragraphe */
  margin-bottom: 30px;
}

.btn-show-more {
  background-color: #28a745; /* Vert */
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none; /* Au cas où vous utiliseriez une balise <a> */
  transition: background-color 0.3s ease;
}

.btn-show-more:hover {
  background-color: #218838; /* Vert plus foncé au survol */
}

/* Galerie d'images */
.portfolio-image-gallery {
  flex: 2; /* Prend plus d'espace que le texte */
  overflow-x: auto; /* Permet le défilement horizontal */
  overflow-y: hidden; /* Cache la barre de défilement verticale si les images sont trop hautes */
  white-space: nowrap; /* Empêche les images de passer à la ligne */
  padding-bottom: 20px; /* Espace pour la barre de défilement si visible */
  max-height: 550px; /* Hauteur maximale pour la galerie, ajustez si besoin */
}

/* Personnalisation de la barre de défilement (optionnel, fonctionne sur Webkit/Blink) */
.portfolio-image-gallery::-webkit-scrollbar {
  height: 8px;
}
.portfolio-image-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.portfolio-image-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.portfolio-image-gallery::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}


.gallery-item {
  display: inline-block; /* Aligne les images horizontalement */
  width: 280px; /* Largeur de chaque image/carte */
  margin-right: 20px; /* Espace entre les images */
  vertical-align: top; /* S'assure qu'elles s'alignent bien en haut */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden; /* Pour que le border-radius s'applique à l'image */
  background-color: #fff; /* Fond pour chaque item si l'image ne couvre pas tout */
}

.gallery-item:last-child {
  margin-right: 0; /* Pas de marge pour le dernier élément */
}

.gallery-item img {
  width: 100%;
  height: auto; /* Maintient le ratio de l'image */
  display: block; /* Enlève l'espace sous l'image */
  max-height: 500px; /* Hauteur max de l'image elle-même */
  object-fit: cover; /* S'assure que l'image couvre bien, peut rogner */
}
@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .portfolio-section {
      flex-direction: column; /* Les éléments se superposent */
      align-items: center; /* Centre les éléments quand ils sont superposés */
  }
  .portfolio-text-content {
      max-width: 100%; /* Prend toute la largeur */
      text-align: center; /* Centre le texte */
      margin-bottom: 30px;
  }
  .portfolio-image-gallery {
      width: 100%; /* Prend toute la largeur disponible */
  }
  .gallery-item {
      width: 240px; /* Réduire la taille des items sur tablettes */
  }
}

@media (max-width: 768px) {
  .portfolio-text-content h2 {
      font-size: 2.2em;
  }
  .gallery-item {
      width: 200px; /* Encore plus petit pour mobile */
  }
}



/*-----------------------------------*\
  #inscription captures
\*-----------------------------------*/


/* Ajout d'une marge en haut pour la classe .dav */
.dav {
  margin-top: 20px; /* Augmentez la valeur pour plus d'espace */
}


/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .grid-list { grid-template-columns: 1fr 1fr; }

  :is(.course, .blog) .grid-list { grid-template-columns: 1fr; }



  /**
   * HEADER
   */

  .header .container { max-width: unset; }

  .header-actions { gap: 30px; }



  /**
   * HERO
   */

  .hero-banner { grid-template-columns: 1fr 0.9fr; }



  /**
   * VIDEO
   */

  .video .play-btn { padding: 25px; }



  /**
   * STATS
   */

  .stats-card { padding: 40px 30px; }



  /**
   * FOOTER
   */

  .footer-brand,
  .footer-list:last-child { grid-column: 1 / 3; }

  .newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .newsletter-form .input-field { margin-block-end: 0; }

  .newsletter-form .btn { min-width: max-content; }

}




/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 4.6rem;
    --fs-2: 3.8rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .btn { padding: 15px 30px; }

  :is(.course, .blog) .grid-list { grid-template-columns: 1fr 1fr; }



  /**
   * HEADER
   */

  .header .container { padding-inline: 30px; }

  .header .btn {
    display: flex;
    padding: 10px 30px;
    margin-inline: 20px;
  }



  /**
   * HERO
   */

  .hero { padding-block-start: calc(var(--section-padding) + 90px); }

  .hero .container { gap: 50px; }

  .hero-text { margin-block-end: 30px; }

  .hero-banner {
    position: relative;
    z-index: 1;
  }

  .hero-banner .img-holder { max-width: max-content; }

  .hero-banner .img-holder.one { justify-self: flex-end; }

  .hero-banner .img-holder.two { margin-block-start: 100px; }

  .hero-shape-1 {
    display: block;
    position: absolute;
    bottom: -40px;
    left: -10px;
  }



  /**
   * ABOUT
   */

  .about { padding-block-start: 50px; }

  .about-banner {
    padding: 60px;
    padding-inline-end: 0;
  }

  .about-banner .img-holder {
    max-width: max-content;
    margin-inline: auto;
  }

  .about-shape-1 {
    display: block;
    top: -40px;
    right: -70px;
  }



  /**
   * FOOTER
   */

  .footer-brand,
  .footer-list:last-child { grid-column: auto; }

  .newsletter-form .btn { padding-block: 10px; }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5.5rem;
    --fs-2: 4.5rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }

  .grid-list { grid-template-columns: repeat(4, 1fr); }

  :is(.course, .blog) .grid-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * HERO
   */

  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero .section-title,
  .hero-text { text-align: left; }

  .hero .btn { margin-inline: 0; }



  /**
   * ABOUT
   */

  .about .container {
    grid-template-columns: 1fr 0.6fr;
    align-items: center;
    gap: 60px;
  }



  /**
   * VIDEO
   */

  .video-banner {
    max-width: 75%;
    margin-inline: auto;
  }



  /**
   * FOOTER
   */

  .footer .grid-list { grid-template-columns: 1fr 0.6fr 0.6fr 1.2fr; }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 6.5rem;

    /**
     * spacing
     */

    --section-padding: 120px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1185px; }

  .shape { display: block; }

  .about-content,
  .video-card,
  .blog { position: relative; }



  /**
   * HEADER
   */

  .header-action-btn:last-child,
  .navbar .wrapper,
  .overlay { display: none; }

  .header.active {
    transform: translateY(-100%);
    animation: slideIn 0.5s ease forwards;
  }

  @keyframes slideIn {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
  }

  .navbar,
  .navbar.active { all: unset; }

  .navbar-list {
    display: flex;
    gap: 50px;
    padding: 0;
  }

  .navbar-item:not(:last-child) { border-block-end: none; }

  .navbar-link {
    color: var(--eerie-black-1);
    padding-block: 20px;
  }

  .header .btn { margin-inline-end: 0; }



  /**
   * HERO
   */

  .hero { padding-block-start: calc(var(--section-padding) + 120px); }

  .hero .container { gap: 80px; }

  .hero-shape-2 {
    top: -80px;
    z-index: -1;
  }



  /**
   * ABOUT
   */

  .about .container { gap: 110px; }

  .about-banner .img-holder { margin-inline: 0; }

  .about-shape-3 {
    top: -20px;
    left: -100px;
    z-index: -1;
  }

  .about-content { z-index: 1; }

  .about-shape-4 {
    top: 30px;
    right: -60px;
    z-index: -1;
  }



  /**
   * VIDEO
   */

  .video-shape-1 {
    top: -50px;
    left: 0;
  }

  .video-shape-2 {
    top: -80px;
    right: 120px;
    z-index: 1;
  }



  /**
   * BLOG
   */

  .blog-shape {
    top: 0;
    left: 0;
  }

}

/* ===== SECTION MARQUE (CONNECT'ACADEMIA) ===== */
.branding-section {
    padding: 80px 20px;
    background-color: #f7f8fa; /* Un fond neutre pour faire ressortir la section */
}

.branding-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* --- Colonne de gauche (image) --- */
.product-panel {
    flex: 6; /* Donne 60% de la largeur */
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.product-panel img {
    max-width: 90%;
    transform: rotate(-10deg); /* Légère rotation pour un effet dynamique */
}

/* --- Colonne de droite (logo) --- */
.logo-panel {
    flex: 4; /* Donne 40% de la largeur */
    background-color: #5A4BFF; /* Un bleu-violet vif comme sur l'image */
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.logo-panel h2 {
    font-family: 'Fredoka', sans-serif; /* Police arrondie */
    font-size: clamp(32px, 6vw, 64px); /* Taille de police responsive */
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap; /* Empêche le nom de passer à la ligne */
}

/* Effet de fondu avec différentes opacités */
.logo-panel h2:nth-child(1) { opacity: 0.4; }
.logo-panel h2:nth-child(2) { opacity: 0.6; }
.logo-panel h2:nth-child(3) { opacity: 1; } /* Le plus visible au centre */
.logo-panel h2:nth-child(4) { opacity: 0.6; }
.logo-panel h2:nth-child(5) { opacity: 0.4; }

.logo-panel sup {
    font-size: 0.25em; /* Rend le TM beaucoup plus petit */
    vertical-align: super;
    margin-left: 4px;
}

.secure-payment {
    text-align: center;
    font-size: 2rem;
    margin-top: 35px;
    color: darkgray;
}

/* --- Responsive pour cette section --- */
@media (max-width: 900px) {
    .branding-container {
        flex-direction: column;
    }
    .product-panel img {
        transform: rotate(0deg); /* On retire la rotation sur mobile */
        max-width: 70%;
        margin: 40px 0;
    }
    .logo-panel {
        padding: 40px 20px;
    }
    .logo-panel h2 {
        white-space: normal; /* Autorise le passage à la ligne sur petit écran */
    }
}

/* ===== SECTION SOCIAL MEDIA ===== */
.social-media-section {
    background-color: #F3F4F6; /* Le fond gris très clair */
    padding: 120px 20px;
    font-family: 'Inter', sans-serif; /* Assure la cohérence de la police */
}

.social-media-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- En-tête de la section --- */
.section-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Colonne gauche plus petite */
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.intro-left .about-pill {
    display: inline-block;
    background-color: #1F2937; /* Noir/gris foncé */
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.intro-left h2 {
    font-size: 52px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.intro-right p {
    font-size: 16px;
    color: #4B5563; /* Gris un peu plus clair pour le texte */
    line-height: 1.7;
    max-width: 600px;
}

/* --- Grille des publications --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB; /* Bordure très subtile */
    overflow: hidden; /* Pour que l'image respecte les coins arrondis */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
}

.post-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header span {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.post-image img {
    width: 100%;
    display: block; /* Évite les espaces indésirables sous l'image */
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.action-icons-left {
    display: flex;
    gap: 16px;
}

.post-footer i {
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-footer i:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .section-intro {
        grid-template-columns: 1fr; /* Les colonnes de l'intro s'empilent */
        gap: 30px;
    }
    .intro-left h2 {
        font-size: 42px;
    }
    .posts-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
}

 /* --- Styles pour la Section d'Avis --- */

/* Conteneur principal qui centre le formulaire */
.review-section-container {
    background-color: #FAF9F3; /* Fond crème très clair, comme sur l'image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* La boîte blanche qui contient le formulaire */
.review-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    max-width: 650px;
    width: 100%;
}

.review-form-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B; /* Un bleu-noir très foncé */
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #374151; /* Gris foncé */
    margin-bottom: 12px;
}

.form-group .required {
    color: #EF4444; /* Rouge pour l'astérisque */
}

/* Style pour les étoiles */
.star-rating {
    display: flex;
    gap: 12px;
}

.star {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #F3F4F6; /* Gris clair par défaut */
    color: #6B7280; /* Gris moyen pour l'icône */
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.star:hover {
    transform: scale(1.1);
}

/* Style pour les étoiles sélectionnées (géré par JS) */
.star.selected {
    background-color: #8C52FF; /* Jaune doré */
    color: #ffffff;
}

/* Style pour les champs de texte */
#reviewer-name,
#review-text {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB; /* Bordure grise */
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#reviewer-name:focus,
#review-text:focus {
    outline: none;
    border-color: #8C52FF; /* Vert du bouton */
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

#review-text {
    resize: vertical; /* Permet de redimensionner verticalement */
}

/* Style pour le bouton d'envoi */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background-color: #8C52FF; /* Vert vif */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #8C52FF; /* Vert un peu plus foncé */
}

/* --- Section Présentation UIL --- */
.presentation-section {
    padding: 100px 5%;
    background-color: var(--color-white);
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start; /* Aligne le haut des colonnes */
}

/* Colonne de gauche : Vidéo */
.video-column {
    flex: 1;
}

.video-wrapper {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden; /* Pour que la vidéo respecte les coins arrondis */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    display: block; /* Supprime l'espace sous la vidéo */
}

.btn-ememoire {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-block;
    transition: opacity 0.3s ease;
}
.btn-ememoire:hover {
    opacity: 0.9;
}

/* Colonne de droite : Contenu */
.content-column {
    flex: 1;
}

.content-column h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004AAD;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.content-column h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--color-yellow);
}

.content-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

