:root {

  --color-50: #f4f5fa;
  --color-100: #e5e6f4;
  --color-200: #d1d4ec;
  --color-300: #b2b8de;
  --color-400: #8d94cd;
  --color-500: #7174c0;
  --color-600: #615eb2;
  --color-700: #544e98;
  --color-800: #4f4885;
  --color-900: #413d6b;
  --color-950: #2c2942;

  --color-s-50: #fdfaed;
  --color-s-100: #f9f1cc;
  --color-s-200: #f2e295;
  --color-s-300: #ebce5e;
  --color-s-400: #e8c047;
  --color-s-500: #de9e22;
  --color-s-600: #c57b1a;
  --color-s-700: #a3591a;
  --color-s-800: #85461b;
  --color-s-900: #6e3b19;
  --color-s-950: #3f1e09;


  --color-d-50: #fdf3f4;
  --color-d-100: #fae9e9;
  --color-d-200: #f6d5d8;
  --color-d-300: #eeb3b7;
  --color-d-400: #e38992;
  --color-d-500: #d55e6d;
  --color-d-600: #bf3f55;
  --color-d-700: #a12f46;
  --color-d-800: #902d44;
  --color-d-900: #74273c;
  --color-d-950: #40111c;


  --primary: var(--color-600);
  --light: var(--color-50);
  --dark: var(--color-950);
  --true-white: white;
  --color-main-secondary: var(--color-700);
  --color-main: var(--color-950);
  --color-main-variant: var(--color-500);

  --white: black;
  --color-white: black;
  --background: #fff;
  --secondary: #eee;
  --secondary-dark: #ddd;
  --color-muted: #333;

  --color-main: var(--color-700);
  --color-primary: black;
  --color-text: var(--color-700);
  --color-white: var(--white);
  --color-dark: #1d2124;
  /* beige */
  --color-background: #f5f5dc;

}

.dark-theme {

  --color-50: #f4f5fa;
  --color-100: #e5e6f4;
  --color-200: #d1d4ec;
  --color-300: #b2b8de;
  --color-400: #8d94cd;
  --color-500: #7174c0;
  --color-600: #615eb2;
  --color-700: #544e98;
  --color-800: #4f4885;
  --color-900: #413d6b;
  --color-950: #2c2942;

  --color-s-50: #fdfaed;
  --color-s-100: #f9f1cc;
  --color-s-200: #f2e295;
  --color-s-300: #ebce5e;
  --color-s-400: #e8c047;
  --color-s-500: #de9e22;
  --color-s-600: #c57b1a;
  --color-s-700: #a3591a;
  --color-s-800: #85461b;
  --color-s-900: #6e3b19;
  --color-s-950: #3f1e09;


  --color-d-50: #fdf3f4;
  --color-d-100: #fae9e9;
  --color-d-200: #f6d5d8;
  --color-d-300: #eeb3b7;
  --color-d-400: #e38992;
  --color-d-500: #d55e6d;
  --color-d-600: #bf3f55;
  --color-d-700: #a12f46;
  --color-d-800: #902d44;
  --color-d-900: #74273c;
  --color-d-950: #40111c;


  --primary: var(--color-600);
  --light: var(--color-50);
  --dark: var(--color-950);
  --true-white: white;
  --color-main-secondary: var(--color-700);
  --color-main: var(--color-950);
  --color-main-variant: var(--color-500);

  --white: white;
  --color-white: white;
  --background: #000;
  --secondary: #222;
  --secondary-dark: #111;
  --color-muted: #ccc;

  --color-main: var(--color-700);
  --color-primary: black;
  --color-text: var(--color-700);
  --color-white: var(--white);
  --color-dark: #1d2124;
  /* beige */
  --color-background: #f5f5dc;
  --size: 1.18rem;
  --size-small: 1rem;
  --size-big: 1.5rem;
  --bs-gutter-x: 1.5rem;

}


body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--background);
  color: #fff;
  font-size: var(--size);
}

section {
  border-bottom: 1px solid var(--color-400);
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  color: var(--white);
  transition: background-color 0.3s ease;
}

section::last-child {
  border-bottom: none;
}

/* Navbar container */
.custom-navbar {
  padding: 20px;
  padding-bottom: 5px;
}

.custom-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-navbar {
  padding: 20px;
  padding-bottom: 5px;
}

.custom-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.custom-logo img {
  max-height: 60px;
}

.custom-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.custom-toggle span {
  height: 3px;
  width: 25px;
  background: var(--white);
  margin: 4px 0;
  transition: 0.3s;
}

.custom-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.custom-nav-links,
.custom-social-links {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.custom-nav-links a,
.custom-social-links a {
  color: var(--white);
  font-size: 18px;
  padding: 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.custom-social-links a {
  color: var(--true-white);

}

.custom-social-links li {
  padding: 7px;
  border-radius: 5px;
  border-left: 2px solid var(--color-s-500);
  background-color: var(--primary);
  color: var(--color-s-500);
}

.custom-nav-links a:hover,
.custom-nav-links a.active {
  border-top: 2px solid var(--color-s-500);
  background-color: var(--primary);
  color: var(--color-s-500);
  border-radius: 5px;
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  color: #212529;
  padding: 8px 12px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  z-index: 1000;
}

.noDisplay {
  display: none;
}

.dropdown-item {
  display: block;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #16181b;
}

/* Theme Switcher Button Styling */
#theme-switcher {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--primary);
  color: var(--true-white);
}

.mobile-only {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .custom-navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-toggle {
    display: flex;
  }

  .custom-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    border-bottom: 2px solid var(--color-s-500);
    padding: 10px 0;
  }

  .custom-menu.active {
    display: flex;
  }

  .custom-nav-links,
  .custom-social-links {
    flex-direction: column;
    width: 100%;
  }

  .custom-nav-links a,
  .custom-social-links a {
    padding: 12px 20px;
    width: 100%;
  }

  .custom-social-links li {
    margin: 5px 0;
    width: 100%;
    text-align: left;
  }
}


/* Hero */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding-top: 0px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-content h1 span {
  background-color: var(--color-400);
  color: var(--true-white);

}

.description {
  font-size: var(--size);
  line-height: 1.6;
  margin: 1rem 0;
}

.buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
}

.btn.yellow {
  background-color: var(--color-900);
  color: var(--true-white);
}

.btn.dark {
  background-color: var(--color-s-500);
  color: var(--true-white);
}

.hero-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.book-images img {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.book-images img:nth-child(2) {
  transform: rotate(5deg);
}

.book-images img:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .book-images {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .book-images img {
    max-width: 90%;
    transform: rotate(0deg);
    /* Supprime la rotation*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .book-images img:nth-child(2) {
    transform: rotate(0deg);
  }
}


.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.exceller {
  padding-bottom: 10px;
}

.tag {
  background-color: var(--color-s-500);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: var((--size-small));
  color: var(--true-white);
  font-weight: bold;
}

.price {
  background-color: var(--color-500);
  color: var(--true-white);
  font-weight: bold;
}



.t-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.t-header {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.t-title {
  margin-top: 0.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.t-description {
  margin-top: 1.5rem;
  font-size: var(--size);
  line-height: 2rem;
  color: var(--color-muted);
}

.t-features {
  max-width: 46rem;
  margin: 1rem auto 0;
}

@media (min-width: 640px) {
  .t-features {
    margin-top: 5rem;
  }
}

@media (min-width: 1024px) {
  .t-features {
    margin-top: 2rem;
    max-width: 64rem;
  }
}

.t-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}

@media (min-width: 1024px) {
  .t-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.t-feature-item {
  position: relative;
  padding: 1rem;
  border-radius: 10px;
  background-color: var(--secondary-dark);
  overflow: visible;
}

.t-feature-item dd {
  background-color: var(--secondary-dark);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;

  max-height: 0;
  border: 1px solid var(--color-s-500);
  border-bottom: 3px solid var(--color-s-500);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  padding: 0 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.t-feature-item dd.visible {
  max-height: 200px;
  opacity: 1;
  padding: 1rem;
}

@media (max-width: 768px) {
  .t-feature-item dd {
    position: static;
    box-shadow: none;
    max-height: 0;
    padding: 0 10px;
  }

  .t-feature-item dd.visible {
    max-height: 500px;
    opacity: 1;
    padding: 1rem;
  }
}


.t-feature-item dt {
  font-size: var(--size-big);
  font-weight: 600;
  border-radius: 10px;
  padding: 5px 2px;
  line-height: 1.5rem;
  color: var(--color-s-500);
}

.grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.grid-icon i {
  font-size: 50px;
}

.t-icon {
  background-color: var(--primary);
  border: 3px double var(--color-s-500);
  color: var(--color-s-500);
  text-align: center;
  border-radius: 8px;
}

.t-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

/* Posts */
.posts-section {
  padding: 40px 2rem;
}

.posts-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.posts-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.posts-header .description {
  font-size: var(--size);
  color: var(--color-muted);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #aaa;
  padding: 0.75rem 1rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date {
  font-style: italic;
}

.post-title {
  font-size: 1.4rem;
  color: var(--white);
  padding: 0.5rem 1rem;
  font-weight: bold;
}

.post-grid-container {
  display: grid;
  grid-template-columns: repeat(1fr, 1fr);
  gap: 10px;
  padding: 20px;
}

.post-category-card {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-dark);
}

.post-image {
  flex-shrink: 0;
  width: 250px;
  height: auto;
  object-fit: cover;
}

.post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.category {
  display: inline-block;
  background-color: #333;
  /* Example background color */
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.post-meta {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.date::before {
  margin-right: 5px;
}

.post-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  background-color: var(--primary);
  color: var(--color-s-500);
  padding: 0.5rem 1rem;
  margin: 0 1rem 1rem 1rem;
  border: 3px solid var(--color-s-500);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: var(--color-900);
}

/* Responsive adjustments (optional) */
@media (max-width: 768px) {
  .post-category-card {
    flex-direction: column;
  }

  .post-image {
    width: 100%;
    height: auto;
  }

  .posts-section {
    padding: 10px;
  }
}

.contact-section {
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  font-size: var(--size);
}

.contact-section h2 {
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  color: var(--true-white);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn.whatsapp {
  background: #25D366;
}

.btn.whatsapp:hover {
  background: #1ebd58;
}

.btn.email {
  background: #555;
}

.btn.email:hover {
  background: #444;
}

.btn.linkedin {
  background: #0077b5;
}

.btn.linkedin:hover {
  background: #005f94;
}

.contact-card {
  margin-top: 20px;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

.contact-card p {
  background-color: var(--secondary);
  width: fit-content;
  padding: 0.4rem 50px;
  border-radius: 5px;
  border-left: 2px solid var(--color-500);
}

.contact-card .call-after {
  display: flex;
  gap: 20px
}

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

  .contact-card p {
    padding: 0.4rem 20px;
    text-align: center;
  }

  .contact-card .call-after {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
}


/* faq */
.faq-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: var(--size);
}

.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
}

.faq-subtitle {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
}

.faq-item {
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 16px;
  overflow: hidden;
  transition: 0.3s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-dark);
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
}

.faq-question.active {
  background-color: var(--primary);
  border-bottom: 2px solid var(--color-s-500);
  color: #fff;
}

.faq-question span.num {
  font-weight: bold;
  margin-right: 8px;
  color: #888;
}

.faq-question.active span.num {
  color: #fff;
}

.faq-answer {
  display: none;
  background-color: var(--secondary);
  padding: 16px 20px;
  font-size: var(--size);
}

.faq-answer.show {
  display: block;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
  transform: rotate(180deg);
}

/* FOOTER */
.footer {
  background: var(--secondary);
  padding: 50px 20px 30px;
}

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

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

.footer-column {
  flex: 1;
}

.footer-logo img {
  max-height: 100px;
}

.footer-desc {
  font-size: var(--size);
  line-height: 1.6;
  color: var(--white);
  border-bottom: 2px solid var(--white);
  padding-bottom: 10px;
}

.footer-socials {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
}

.footer-socials li a {
  color: var(--white);
  font-size: var(--size);
  transition: color 0.3s ease;
}

.footer-socials li a:hover {
  color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  font-size: var(--size);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: var(--primary);
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: var(--size-small);
  border-top: 1px solid #ddd;
  margin-top: 20px;
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 0px;
  }
}

/* === Animation globale === */
.animated {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.animated.delay-1 {
  animation-delay: 0.1s;
}

.animated.delay-2 {
  animation-delay: 0.2s;
}

.animated.delay-3 {
  animation-delay: 0.3s;
}

.animated.delay-4 {
  animation-delay: 0.4s;
}

.animated.delay-5 {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeLeft 0.8s ease-out forwards;
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animated-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 0.8s ease-out forwards;
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover animation déclenchée au survol */
.animated:hover {
  animation: fadeUp 0.8s ease-out forwards;
}