:root {
   --color-primary: #268eff;
}


body {
   margin: 0;
   font-family: Arial, sans-serif;
}

/* header design */

.header {
   display: flex;
   justify-content: space-between;
   gap: 0rem;
   align-items: center;
   /* justify-content: center; */
   padding: 3px 2.5rem;
   /* background-color: #333; */
   color: #333;
   position: relative;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
   text-decoration: none;
}

.logo-img {
   height: 75px;
}

.menu-toggle {
   display: none;
   cursor: pointer;
   position: relative;
}

.icon {
   display: block;
}

.icon-burger {
   display: block;
}

.icon-close {
   display: none;
}

.nav {
   display: flex;
   align-items: center;
}

.nav-header {
   display: none;
}

.nav-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
}

.nav-list li {
   margin: 0 20px;
}

.nav-list li a {
   color: #333;
   text-decoration: none;
   font-weight: 600;
   font-size: 16px;
   transition: color 0.3s ease;
}

.nav-list li a:hover {
   color: #ff5722;
}

.cta-button {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 5px;
   background-color: var(--color-primary);
   color: #fff;
   text-decoration: none;
   border-radius: 5px;
   margin-left: 10px;
   padding: 10px 20px;
   font-size: 16px;
   font-weight: 500;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.cta-button:hover {
   background-color: #e64a19;
}

@media (max-width: 768px) {
   .header {
      display: flex;
      justify-content: space-between;
      gap: 0rem;
      align-items: center;
      /* justify-content: center; */
      padding: 5px 20px;
      /* background-color: #333; */
      color: #333;
      position: relative;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   }

   .menu-toggle {
      display: flex;
   }

   .nav {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 250px;
      background-color: #fff;
      color: #333;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      flex-direction: column;
      align-items: flex-start;
      padding: 15px;
      z-index: 1000;
   }

   .nav.active {
      transform: translateX(0);
   }

   .nav-header {
      display: flex;
      width: 100%;
      justify-content: flex-end;
   }

   .close-btn {
      font-size: 30px;
      cursor: pointer;
      color: #fff;
      margin-bottom: 20px;
   }

   .nav-list {
      flex-direction: column;
      width: 100%;
   }

   .nav-list li {
      margin: 20px 0;
      text-align: left;
   }

   .cta-button {
      margin-top: 20px;
      width: 80%;
      text-align: center;
   }

   .icon-burger {
      display: block;
   }

   .icon-close {
      display: none;
   }

   .nav.active .icon-burger {
      display: none;
   }

   .nav.active .icon-close {
      display: block;
   }
}

/* foooter design */

.footer {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: 30px;
   padding: 20px 90px;
   background-color: #e8e8e8;
   color: #fff;
   text-align: left;
}

.footer-section {
   flex: 1;
   padding: 10px;
}

.contact-section p {
   color: #000000;
}

.logo-section .logo-img {
   height: 140px;
}

.links-section h3,
.contact-section h3,
.additional-section h3 {
   margin-top: 0;
   color: black;
   text-transform: uppercase;
   font-weight: 600;
}

.additional-section p {
   color: #000000;
}

.additional-section span {
   color: #000000;
}

.additional-section svg {
   width: 18px;
}

.links-list,
.social-list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.links-list li,
.social-list li {
   margin-bottom: 19px;
}

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

.links-list li a,
.social-list li a {
   color: #000000;
   font-size: 16px;
   text-decoration: none;
   transition: color 0.3s ease;
}

.links-list li a:hover,
.social-list li a:hover {
   color: #ff5722;
}

.social-icon {
   display: flex;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   text-align: center;
   line-height: 24px;
   color: #fff;
   text-decoration: none;
   font-weight: bold;
}

@media (max-width: 768px) {
   .footer {
      flex-direction: column;
      align-items: center;
   }

   .footer-section {
      width: 100%;
      text-align: center;
   }

   .social-list {
      display: block;
      margin: 18px auto;
      justify-content: center;
      padding: 0;
   }

   .social-list li {
      /* display: block; */
      justify-content: center;
      align-items: center;
   }
}

/* style for slider */

.hero-slider {
   position: relative;
   overflow: hidden;
   max-width: 100%;
   height: 60vh;
   /* Full viewport height */
}

/* Overlay styling */
.slide::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.3);
   /* Semi-transparent overlay */
   z-index: 1;
   /* Place overlay behind text content */
   transition: background 0.3s ease;
}

.slides {
   display: flex;
   transition: transform 0.5s ease-in-out;
}

.slide {
   min-width: 100%;
   box-sizing: border-box;
   position: relative;
}

.slide img {
   width: 100%;
   height: 60vh;
   /* Full viewport height */
   object-fit: cover;
}

.slide-content {
   position: absolute;
   bottom: 70px;
   left: 140px;
   color: #fff;
   /* background-color: rgba(0, 0, 0, 0.5); */
   padding: 15px;
   z-index: 3;
   border-radius: 8px;
   max-width: 80%;
}

.slide-content h2 {
   margin: 0 0 10px;
   color: var(--color-primary);
   text-transform: uppercase;
   font-weight: 600;
   font-size: 40px;
}

.slide-content p {
   margin-top: 10px;
   width: 75%;
   line-height: 30px;
   font-size: 16px;
}

.btn {
   display: inline-block;
   background-color: var(--color-primary);
   color: #fff;
   padding: 10px 22px;
   margin-top: 20px;
   text-decoration: none;
   border-radius: 5px;
   font-size: 16px;
   transition: background-color 0.3s ease;
}

.btn:hover {
   background-color: #e64a19;
}

@media (max-width: 768px) {
   .hero-slider {
      height: 60vh;
   }

   .slide-content {
      font-size: 14px;
      padding: 10px;
      bottom: 90px;
   }

   .slide-content h2 {
      font-size: 18px;
   }

   .slide-content p {
      font-size: 12px;
      width: 95%;
   }
}

/* section 2 */

.features-section {
   display: flex;
   /* justify-content: space-around; */
   justify-content: center;
   flex-wrap: wrap;
   gap: 15px;
   padding: 20px;
}

.feature {
   display: inline-block;
   text-align: center;
   align-items: center;
   justify-content: center;
   /* flex: 1; */
   max-width: 250px;
   border: 1px solid #ddd;
   border-radius: 8px;
   padding: 20px;
   background-color: #f9f9f9;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-center {
   display: inline-block;
   text-align: center;
   align-items: center;
   justify-content: center;
   /* flex: 1; */
   max-width: 250px;
   border: 1px solid #ddd;
   border-radius: 8px;
   padding: 20px;
   background-color: var(--color-primary);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-center .feature-content h3 {
   color: #fff;
}

.feature-center .feature-content p {
   color: rgb(243, 243, 243);
}

.feature-center .feature-content .learn-more {
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: #ffffff;
   text-decoration: none;
   font-weight: bold;
}

.feature-icon {
   margin-right: 20px;
}

.feature-icon img {
   width: 50px;
   height: 50px;
}

.feature-content h3 {
   margin: 0;
   font-size: 20px;
   color: #333;
}

.feature-content p {
   margin: 10px 0;
   font-size: 14px;
   color: #666;
}

.learn-more {
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: #ff5722;
   text-decoration: none;
   font-weight: bold;
}

.learn-more svg {
   margin-left: 5px;
   color: #e64a19;
   width: 18px;
   height: 18px;
}

/* section manuels */
.manual-books {
   padding: 50px 20px;
   background-color: #f1f1f1;
}

.container-manuels {
   max-width: 1200px;
   margin: 0 auto;
}

.manual-button {
   cursor: pointer;
   margin: 20px 0;
   border: 1px solid;
   padding: 14px 20px;
   background-color: #e64a19;
   color: #ffffff;
   text-align: center;
   text-decoration: none;
   border-radius: 5px;
   font-size: 16px;
   font-weight: bold;
   transition: background-color 0.3s, box-shadow 0.3s;
   /* Smooth transition for background and shadow */
}

.btn-manuldiv {
   display: flex;
   justify-content: center;
   align-items: center;
}

.manual-button:hover {
   background-color: #d84315;
   /* Darker background on hover */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   /* Shadow effect on hover */
}

.manual-button:focus {
   outline: none;
   /* Removes default focus outline */
   box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.5);
   /* Custom focus outline */
}

.section-header {
   text-align: center;
   margin-bottom: 40px;
}

.section-header .title {
   font-size: 2.5rem;
   color: #333;
   margin-bottom: 10px;
}

.section-header .subtitle {
   font-size: 1.2rem;
   color: #666;
}

.books-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   justify-content: center;
}

.book-item {
   display: block;
   flex: 1 1 calc(15% - 20px);
   /* Adjust the percentage as needed */
   max-width: calc(15% - 20px);
   margin: 10px;
   text-align: center;
}

.book-image {
   width: 85%;
   height: auto;
   border-radius: 8px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item:hover .book-image {
   transform: scale(1.05);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
   .book-item {
      flex: 1 1 calc(33.333% - 20px);
      max-width: calc(33.333% - 20px);
   }
}

@media (max-width: 768px) {
   .book-item {
      flex: 1 1 calc(50% - 20px);
      max-width: calc(50% - 20px);
   }
}

@media (max-width: 480px) {
   .book-item {
      flex: 1 1 20%;
      max-width: 100%;
   }
}

/* section notre livel*/

/* Styles pour le section niveaux */
.poursuivre {
   padding: 50px 0;
   /* background-color: #f9f9f9; */
}

.container-niveaux {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 15px;
}

.section-title {
   text-align: center;
   font-size: 2.5rem;
   margin-bottom: 10px;
   color: #333;
}

.section-subtitle {
   text-align: center;
   font-size: 1.3rem;
   margin-bottom: 5px;
   color: #007bff;
}

.section-description {
   text-align: center;
   font-size: 1.125rem;
   margin-bottom: 40px;
   color: #555;
}

.level-cards {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   gap: 20px;
}

.level-card {
   background-color: #fff;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   border-radius: 8px;
   flex: 1;
   min-width: 300px;
   max-width: 31%;
   text-align: center;
   padding: 20px;
}

.level-card svg {
   width: 100px;
   height: 100px;

   margin-bottom: 15px;
}

.level-content {
   padding: 10px 20px;
}

.level-title {
   font-size: 1.8rem;
   color: #333;
   margin-top: 0%;
   margin-bottom: 10px;
}

.level-description {
   font-size: 1rem;
   color: #666;
   margin-bottom: 20px;
}

.level-link {
   display: inline-block;
   padding: 10px 20px;
   font-size: 1rem;
   color: #fff;
   background-color: #ff5722;
   border-radius: 4px;
   text-decoration: none;
}

.level-link:hover {
   background-color: #0056b3;
}

@media (max-width: 768px) {
   .level-cards {
      flex-direction: column;
      align-items: center;
   }

   .level-card {
      max-width: 100%;
      margin-bottom: 20px;
   }
}

/* section about */

.-about {
   padding: 60px 20px;
   background-color: #f9f9f9;
}

.container-about {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
}

.about-content {
   /* background-color: #000000; */
   flex: 1;
   max-width: 500px;
   /* text-align: center; */
   padding: 20px;
}

.about-content h2 {
   font-size: 38px;
   color: #333;
   margin-bottom: 10px;
}

.about-content h3 {
   font-size: 17px;
   color: #ff5722;
   margin-bottom: 0px;
}

.about-content p {
   font-size: 16px;
   color: #666;
   margin-bottom: 30px;
   line-height: 1.6;
}

.about-content .btn {
   display: inline-block;
   padding: 10px 20px;
   background-color: #ff5722;
   color: #fff;
   text-decoration: none;
   font-size: 16px;
   border-radius: 4px;
   transition: background-color 0.3s ease;
}

.about-content .btn:hover {
   background-color: #e64a19;
}

.about-image {
   flex: 1;
   max-width: 500px;
   padding: 20px;
   text-align: center;
   position: relative;
}

.image-circle {
   position: relative;
   width: 400px;
   height: 400px;
   margin: 0;
   background-color: #ff5722;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-circle img {
   z-index: 7;
   width: 94%;
   height: 94%;
   border-radius: 50%;
   object-fit: cover;
}

/* section nos corses */

.nos-cours-section {
   padding: 60px 20px;
   background-color: #fff;
}

.container-noscourses {
   max-width: 1200px;
   margin: 0 auto;
   text-align: center;
}

.course-content {
   margin-bottom: 40px;
}

.course-content h2 {
   font-size: 36px;
   color: #000000;
   margin-bottom: 10px;
}

.course-content p {
   font-size: 16px;
   color: #666;
   line-height: 1.6;
   max-width: 800px;
   margin: 0 auto;
}

.courses-grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 20px;
}

.course-item {
   flex: 1;
   max-width: 300px;
   background-color: #f9f9f9;
   padding: 20px;
   border-radius: 8px;
   text-align: center;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
   transform: translateY(-10px);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-icon {
   font-size: 40px;
   color: #ff5722;
   margin-bottom: 20px;
}

.course-item h3 {
   font-size: 24px;
   color: #333;
   margin-bottom: 10px;
}

.course-item p {
   font-size: 16px;
   color: #666;
   margin-bottom: 20px;
}

.course-item .btn {
   display: inline-block;
   padding: 10px 20px;
   background-color: #ff5722;
   color: #fff;
   text-decoration: none;
   font-size: 16px;
   border-radius: 4px;
   transition: background-color 0.3s ease;
}

.course-item .btn:hover {
   background-color: #e64a19;
}

/* section contacter nous */

.contactez-nous-section {
   padding: 60px 20px;
   /* background-color: #f1f1f1; */
   position: relative;
   overflow: hidden;
}

.container-contactnous {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   max-width: 1200px;
   margin: 0 auto;
}

.contact-content {
   flex: 1;
   max-width: 600px;
   padding: 20px;
   text-align: left;
}

.contact-content h2 {
   font-size: 36px;
   color: #333;
   margin-bottom: 10px;
}

.contact-content h3 {
   font-size: 24px;
   color: #555;
   margin-bottom: 20px;
}

.contact-content p {
   font-size: 16px;
   color: #666;
   line-height: 1.6;
   margin-bottom: 30px;
}

.contact-content .btn {
   display: inline-block;
   padding: 10px 20px;
   background-color: #007bff;
   color: #fff;
   text-decoration: none;
   font-size: 16px;
   border-radius: 4px;
   transition: background-color 0.3s ease;
}

.contact-content .btn:hover {
   background-color: #0056b3;
}

.contact-image {
   flex: 1;
   max-width: 600px;
   padding: 20px;
   text-align: center;
   position: relative;
}

.contact-image img {
   width: 100%;
   height: auto;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-image::before {
   content: "";
   position: absolute;
   top: -50px;
   right: -50px;
   width: 200px;
   height: 200px;
   background-color: #007bff;
   border-radius: 50%;
   z-index: -1;
}

.contact-image::after {
   content: "";
   position: absolute;
   bottom: -50px;
   left: -50px;
   width: 150px;
   height: 150px;
   background-color: #ff5722;
   border-radius: 50%;
   z-index: -1;
}

@media (max-width: 780px) {
   .container-contactnous {
      display: block;
   }

   .contact-image {
      max-width: 100%;
      padding: 0;
      margin-top: 20px;
   }

   .contact-content h2 {
      font-size: 28px;
   }

   .contact-content h3 {
      font-size: 20px;
   }

   .contact-content p {
      font-size: 14px;
      margin-bottom: 20px;
   }

   .contact-content .btn {
      font-size: 14px;
      padding: 8px 16px;
   }

   .contact-image::before {
      top: -30px;
      right: -30px;
      width: 120px;
      height: 120px;
   }

   .contact-image::after {
      bottom: -30px;
      left: -30px;
      width: 80px;
      height: 80px;
   }
}

/* section Abonnement Premium */
.premium-section {
   display: flex;
   align-items: center;
   justify-content: center;
   justify-content: space-around;
   padding: 50px 20px;
}

.premium-content {
   max-width: 500px;
   text-align: center;
}

.premium-content h2 {
   font-size: 2.5rem;
   text-transform: uppercase;
   color: #000000;
   margin-bottom: 20px;
}

.premium-content .subtitle {
   font-size: 1.2rem;
   color: #007bff;
   margin-bottom: 20px;
}

.premium-content .description {
   font-size: 1.2rem;
   line-height: 1.6rem;
   color: #555;
   margin-bottom: 30px;
}

.premium-content .cta-button {
   display: inline-block;
   background-color: #007bff;
   color: #fff;
   padding: 10px 20px;
   border-radius: 4px;
   text-decoration: none;
   transition: background-color 0.3s ease;
}

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

.premium-image {
   max-width: 500px;
}

.premium-image img {
   width: 100%;
   border-radius: 8px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
   .premium-section {
      flex-direction: column;
      text-align: center;
   }

   .premium-content {
      max-width: 100%;
   }

   .premium-image {
      margin-top: 30px;
      max-width: 100%;
   }
}

/* page about us */

.hero-about-us {
   position: relative;
   background-image: url("pexels-pixabay-159213.jpg");
   background-size: cover;
   background-position: center;
   height: 400px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   text-align: center;
   padding: 20px;
}

.overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Adjust the opacity as needed */
}

.hero-content {
   position: relative;
   z-index: 1;
   max-width: 600px;
}

.hero-content h1 {
   font-size: 3rem;
   margin-bottom: 10px;
}

.hero-content h2 {
   font-size: 1.5rem;
   margin-bottom: 20px;
}

.hero-content p {
   font-size: 1rem;
   line-height: 20px;
   margin-bottom: 30px;
}

.abcontact-button {
   display: inline-block;
   background-color: #007bff;
   color: #fff;
   padding: 10px 20px;
   border-radius: 4px;
   text-decoration: none;
   transition: background-color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
   .hero-about-us {
      height: auto;
      padding: 40px 20px;
   }

   .hero-content h1 {
      font-size: 2.5rem;
   }

   .hero-content h2 {
      font-size: 1.2rem;
   }

   .hero-content p {
      font-size: 0.9rem;
   }
}

/* notre histoir section */

.section-our-history {
   padding: 50px 20px;
   background-color: #f9f9f9;
}

.section-our-history .container-histoir {
   max-width: 1200px;
   margin: 0 auto;
   /* text-align: center; */
}

.section-our-history h2 {
   font-size: 2.5rem;
   color: #000000;
   margin-bottom: 20px;
}

.section-our-history .history-content {
   text-align: left;
   font-size: 1.1rem;
   color: #555;
}

.section-our-history .history-content h3 {
   font-size: 1.5rem;
   color: #333;
   margin-top: 20px;
   margin-bottom: 10px;
}

.section-our-history .history-content p {
   margin-bottom: 20px;
   line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
   .section-our-history h2 {
      font-size: 2rem;
   }

   .section-our-history .history-content {
      font-size: 1rem;
   }

   .section-our-history .history-content h3 {
      font-size: 1.2rem;
   }
}

/*  */

/* style for ct page */
/* hero section */
.hero-section-tc {
   position: relative;
   background-image: url("img/do-ex.jpg");
   background-size: cover;
   background-position: bottom;
   height: 30vh;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   text-align: center;
   padding: 20px;
}

.hero-section-tc::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.hero-content-tc {
   position: relative;
   z-index: 2;
   /* Ensures content is above overlay */
   /*padding: 20px;*/
   border-radius: 8px;
}

.hero-content-tc h1 {
   font-size: 3rem;
   margin-bottom: 10px;
}

.hero-content-tc p {
   margin: 0 auto;
   font-size: 1rem;
   width: 100%;
}

/* Card Section with Background Overlay */
.card-section-tc {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   margin: 30px 0;
   padding: 20px;
}

.card-tc {
   flex: 1 1 calc(25% - 20px);
   background-size: cover;
   background-position: center;
   height: 200px;
   position: relative;
   color: white;
   text-align: center;
   border-radius: 8px;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
}

.card-tc::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.card-content-tc {
   position: relative;
   z-index: 2;
   /* Ensures content is above overlay */
   padding: 20px;
   border-radius: 8px;
}

.card-content-tc h2 {
   margin: 0 0 10px;
   font-size: 1.5rem;
}

.btn-tc {
   display: inline-block;
   background-color: #007bff;
   color: white;
   padding: 10px 20px;
   text-decoration: none;
   border-radius: 5px;
   font-size: 1rem;
}

.btn-tc:hover {
   background-color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
   .hero-section-tc {
      height: 25vh;
   }

   .hero-content-tc h1 {
      font-size: 2rem;
   }

   .hero-content-tc p {
      font-size: 0.85rem;
   }

   .card-tc {
      flex: 1 1 100%;
      height: 150px;
   }

   .card-content-tc h2 {
      font-size: 1.2rem;
   }

   .btn-tc {
      font-size: 0.9rem;
      padding: 8px 16px;
   }
}

@media (max-width: 480px) {
   .hero-section-tc {
      height: 20vh;
   }

   .hero-content-tc h1 {
      font-size: 1.5rem;
   }

   .hero-content-tc p {
      font-size: 0.75rem;
   }

   .card-tc {
      height: 120px;
   }

   .card-content-tc h2 {
      font-size: 1rem;
   }

   .btn-tc {
      font-size: 0.8rem;
      padding: 6px 12px;
   }
}

/* same designe for 1 bac */

/* Hero Section with Background Overlay */
.hero-section-1bac {
   position: relative;
   background-image: url("/img/do-ex.jpg");
   background-size: cover;
   background-position: bottom;
   height: 30vh;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   text-align: center;
   padding: 20px;
}

.hero-section-1bac::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.hero-content-1bac {
   position: relative;
   z-index: 2;
   /* Ensures content is above overlay */
   padding: 20px;
   border-radius: 8px;
}

.hero-content-1bac h1 {
   font-size: 3rem;
   margin-bottom: 10px;
}

.hero-content-1bac p {
   margin: 0 auto;
   font-size: 1rem;
   width: 80%;
}

/* Section 2 with Background Overlay */
.card-section-1bac {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   margin: 30px 0;
   padding: 20px;
}

.card-1bac {
   flex: 1 1 calc(25% - 20px);
   background-size: cover;
   background-position: center;
   height: 200px;
   position: relative;
   color: white;
   text-align: center;
   border-radius: 8px;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
}

.card-1bac::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.card-content-1bac {
   position: relative;
   z-index: 2;
   /* Ensures content is above overlay */
   padding: 20px;
   border-radius: 8px;
}

.card-content-1bac h2 {
   margin: 0 0 10px;
   font-size: 1.5rem;
}

.btn-1bac {
   display: inline-block;
   background-color: #007bff;
   color: white;
   padding: 10px 20px;
   text-decoration: none;
   border-radius: 5px;
   font-size: 1rem;
}

.btn-1bac:hover {
   background-color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
   .hero-section-1bac {
      height: 20vh;
   }

   .hero-content-1bac h1 {
      font-size: 2rem;
   }

   .hero-content-1bac p {
      font-size: 0.9rem;
   }

   .card-section-1bac {
      gap: 10px;
   }

   .card-1bac {
      flex: 1 1 100%;
      height: 150px;
   }

   .card-content-1bac h2 {
      font-size: 1.2rem;
   }
}

/* same design for 2 bac */

/* Hero Section */
.hero-section-2bac {
   position: relative;
   background-image: url("/img/do-ex.jpg");
   /* Replace with your image path */
   background-size: cover;
   background-position: bottom;
   height: 30vh;
   /* Adjust height as needed */
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   /* Adjust color based on image */
   text-align: center;
   padding: 20px;
   overflow: hidden;
}

.hero-section-2bac::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.hero-content-2bac {
   position: relative;
   z-index: 2;
   padding: 20px;
   border-radius: 8px;
   /* Optional: Rounded corners */
}

.hero-content-2bac h1 {
   font-size: 3rem;
   /* Adjust size as needed */
   margin-bottom: 10px;
}

.hero-content-2bac p {
   margin: 0 auto;
   font-size: 1rem;
   /* Adjust size as needed */
   width: 100%;
}

/* Section 2 */
.card-section-2bac {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   margin: 30px 0;
   padding: 20px;
}

.card-2bac {
   position: relative;
   flex: 1 1 calc(30% - 20px);
   /* Adjust width and spacing */
   background-size: cover;
   background-position: center;
   height: 220px;
   /* Adjust height as needed */
   color: white;
   text-align: center;
   border-radius: 8px;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
}

.card-2bac::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   /* Dark overlay */
   z-index: 1;
}

.card-content-2bac {
   position: relative;
   z-index: 2;
   padding: 20px;
   border-radius: 8px;
}

.card-content-2bac h2 {
   margin: 0 0 10px;
   font-size: 1.3rem;
   /* Adjust size as needed */
}

.btn-2bac {
   display: inline-block;
   background-color: #007bff;
   /* Button color */
   color: white;
   padding: 10px 20px;
   text-decoration: none;
   border-radius: 5px;
   font-size: 1rem;
   /* Adjust size as needed */
}

.btn-2bac:hover {
   background-color: #0056b3;
   /* Button hover color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .hero-section-2bac {
      height: 30vh;
      /* Adjust height for smaller screens */
   }

   .hero-content-2bac {
      padding: 20px 20px 400px 20px;
   }

   .hero-content-2bac h1 {
      font-size: 2rem;
   }

   .hero-content-2bac p {
      font-size: 0.9rem;
      width: 100%;
   }

   .card-section-2bac {
      gap: 10px;
   }

   .card-2bac {
      flex: 1 1 100%;
      height: 150px;
   }

   .card-content-2bac h2 {
      font-size: 1.2rem;
      /* Adjust font size for smaller screens */
   }
}

/* abonement page */

.subscription-section {
   padding: 20px;
   max-width: 1200px;
   margin: 0 auto;
}

.tabs {
   display: flex;
   justify-content: center;
   gap: 20px;
   /* justify-content: space-around; */
   margin-bottom: 20px;
}

.tab-link {
   padding: 10px 20px;
   cursor: pointer;
   background-color: #007bff;
   color: white;
   border: none;
   border-radius: 5px;
   transition: background-color 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
   background-color: #0056b3;
}

.tab-content {
   display: none;
   opacity: 0;
   transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
   display: block;
   opacity: 1;
}

.offers-container {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 20px;
   transform: translateY(50px);
   opacity: 0;
   transition: transform 0.7s ease, opacity 0.7s ease;
}

.tab-content.active .offers-container {
   transform: translateY(0);
   opacity: 1;
}

.offer {
   background: #f7f7f7;
   margin: 20px 0;
   padding: 20px;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   width: calc(20% - 10px);
   /* Adjusting width for 2-column layout */
   display: flex;
   gap: 1px;
   flex-direction: column;
   justify-content: space-between;
}

.offer h3 {
   font-size: 1.18rem;
   margin-bottom: 10px;
}

.offer .price {
   font-size: 1.25rem;
   color: #007bff;
   margin-bottom: 15px;
}

.offer .advantages {
   list-style-type: none;
   padding: 0;
}

.offer .advantages li {
   margin-bottom: 10px;
   padding-left: 20px;
   position: relative;
}

.offer .advantages li:before {
   content: "✔";
   color: #007bff;
   position: absolute;
   left: 0;
   top: 0;
}

.btn-commander {
   padding: 10px 20px;
   background-color: #007bff;
   text-decoration: none;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   margin-top: 20px;
   text-align: center;
   transition: background-color 0.3s ease;
}

.btn-commander:hover {
   background-color: #0056b3;
}

@media (max-width: 768px) {
   .offer {
      width: 100%;
      /* Stack offers on smaller screens */
   }

   .slide-content {
      max-width: 85%;
      position: absolute;
      top: 35px;
      left: 30px;
      margin-inline: auto;
      font-size: 1rem;
   }

   .slide-content h2 {
      font-size: 1.5rem;
   }

   .slide-content p {
      font-size: 0.9rem;
      width: 80%;
   }

   .premium-content .cta-button {
      width: 80%;
      margin-inline: auto;
   }

   .contactez-nous-section {
      padding: 40px 20px;
   }

   .hero-content-2bac {
      padding: 15px;
   }

   .books-grid-page .book-item {
      max-width: calc(35% - 20px);
   }
}
