body {
  background-color: var(--page-bg);
  color: var(--page-text);
}

.header.inverted {
  position: relative;
  margin: 0;
  height: 650px;
  background-color: var(--page-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header.inverted::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0vh;
  background-color: transparent;
  z-index: 0;
}

.header.inverted {
  color: var(--page-text);
  text-align: center;
}

.header.inverted h1,
.header.inverted p,
.header.inverted a,
h1 {
  max-width: 500px;
  color: var(--page-text);
  font-weight: 900;
}

p {
  color: var(--page-text-muted);
}

.space {
  margin-top: 50vh;
}

/************/
/* NEW HEAD */
/************/

.header.inverted {
  position: relative;
  margin: 0;
  height: 100vh;
  min-height: 600px;
  background-color: var(--page-bg);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Network Background */
.network-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.network-background::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(100, 100, 100, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

/* Hero Content Layout */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  z-index: 2;
}

.hero-text {
  text-align: left;
  max-width: 600px;
  margin-top: 150px;
  padding: 2rem 0;
}

/* Text Styling */
.hero-text h1 {
  color: var(--page-text);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.name-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

/* Animation subtile pour le highlight */
.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Typewriter Effect */
.typewriter-container {
  display: block;
  margin: 1.5rem 0;
  position: relative;
  min-height: 4.5rem;
}

.typewriter-text {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.5;
  min-height: 4.5em;
  position: relative;
  overflow: visible;
  color: var(--page-text-muted);
  font-weight: 300;
}

.typing-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  display: inline;
}

.typing-cursor {
  display: inline-block;
  vertical-align: middle;
  color: var(--page-text);
  font-weight: bold;
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typing-done .typing-cursor {
  animation: blink 1s infinite;
}

/* Button Styling */
.btn-outline-success {
  border: 2px solid #4bbf73;
  color: var(--accent-color);
  background-color: transparent;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.btn-outline-success:hover {
  background-color: var(--accent-color);
  color: var(--page-text);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(75, 191, 115, 0.3);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: #1f50dc;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background-color: #1640b3;
  border-color: #1640b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.3);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--page-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: var(--page-text);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.3);
}

.social-icon.discord:hover {
  background-color: #5865f2;
}

.social-icon.github:hover {
  background-color: #333;
}

/* Avatar Circle */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: #ffd700;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

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

/**********/
/* CARDS */
/**********/
.body {
  margin-top: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
  max-width: 1200px;
}

.card {
  width: 100% !important;
  max-width: 350px;
  background-color: var(--card-bg);
  border: 0px;
  transition: all 0.3s ease !important;
  opacity: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card-columns {
  border: 1px solid var(--page-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
}

.card.visible {
  opacity: 1;
}

.card-columns:hover {
  background-color: var(--card-bg);
  border: 1px solid #1f50dc;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(31, 80, 220, 0.2);
  cursor: pointer;
}

.card:hover h5 {
  color: var(--color-primary);
}

.bordercard {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  width: calc(33.33% - 20px);
  min-width: 300px;
  margin-bottom: 25px;
}

.card h5 {
  color: var(--page-text);
  font-size: 1.25rem;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card p {
  color: var(--page-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-icon {
  font-size: 2rem;
  margin: 15px 0;
  color: var(--page-text-muted);
}

.card-body {
  padding: 20px;
}

.card .btn-primary {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/***************/
/***** FAQ *****/
/***************/

.faq {
  display: flex;
  margin-top: 10vh;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ACCORDION */
.accordion {
  max-width: 100%;
  flex: 1;
}

.custom-accordion {
  background-color: var(--page-bg);
  color: var(--page-text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-accordion .accordion-button {
  background-color: var(--page-bg);
  color: var(--page-text);
  border: 1px solid #343a40;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button:hover {
  background-color: var(--card-bg);
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background-color: #0a0a0a;
}

.custom-accordion .accordion-body {
  background-color: var(--page-bg);
  color: var(--page-text-muted);
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.custom-accordion .accordion-body ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.custom-accordion .accordion-body li {
  margin-bottom: 8px;
}

.custom-accordion .accordion-body li:last-child {
  margin-bottom: 0;
}

/* FAQ CONTENT */
.faq-content {
  width: 48%;
  min-width: 300px;
  flex: 1;
}

.faq-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.custom-faq {
  color: var(--color-primary);
  display: inline-block;
}

.faq-text {
  width: 100%;
  text-align: left;
  margin-bottom: 2rem;
}

.faq-text h5 {
  margin-top: 15px;
  margin-bottom: 20px;
  color: var(--page-text-muted);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-text h4 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--page-text);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Contact section styling */
.faq-contact-img {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-icon-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-text-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  width: 100%;
  min-width: 90px;
  padding: 8px 12px;
  height: auto;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
  width: auto;
  min-width: 110px;
}

.contact-column:hover {
  transform: translateY(-5px);
}

.contact-column:hover .contact-icon-container,
.contact-column:hover .contact-text-container {
  border-color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.3);
}

.contact-column:hover .svg,
.contact-column:hover .contact-text {
  color: var(--color-primary);
}

.svg {
  width: 45px;
  height: 45px;
  color: var(--page-text-muted);
  transition: color 0.3s ease;
}

.contact-text {
  color: var(--page-text-muted);
  font-size: 15px;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.contact-link {
  text-decoration: none;
  display: block;
  width: 100%;
}

.contact-link:hover {
  color: var(--color-primary);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

.body > div {
  margin-bottom: 10vh;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.section-spacing {
  margin-bottom: 50px;
}

/* ===== WAKATIME STATS SECTION ===== */
.wakatime-stats-section {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--page-bg) 100%);
  border-radius: 20px;
  padding: 3rem 0;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-container {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
}

.stats-title {
  color: var(--page-text);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
}

.stats-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.stat-card {
  background: linear-gradient(135deg, var(--page-bg) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-number {
  color: var(--page-text);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--page-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.breakdown-title {
  color: var(--page-text);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.languages-list,
.projects-list {
  background-color: var(--page-bg);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
}

.language-item,
.project-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.language-item:hover,
.project-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.language-item:last-child,
.project-item:last-child {
  margin-bottom: 0;
}

.language-info,
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  margin-right: 1rem;
}

.language-name,
.project-name {
  color: var(--page-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.language-time,
.project-time {
  color: var(--page-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.language-bar,
.project-bar {
  flex: 2;
  height: 8px;
  background-color: var(--card-border);
  border-radius: 4px;
  margin-right: 1rem;
  overflow: hidden;
}

.language-progress,
.project-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--accent-color));
  border-radius: 4px;
  transition: width 0.8s ease;
}

.language-percentage,
.project-percentage {
  color: var(--page-text);
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 40px;
  text-align: right;
}

.stats-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.stats-note {
  color: var(--page-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stats-update {
  color: var(--page-text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* Responsive pour les stats */
@media (max-width: 768px) {
  .wakatime-stats-section {
    padding: 2rem 0;
    margin: 1rem 0;
  }

  .stats-container {
    padding: 1.5rem;
  }

  .stats-title {
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .language-item,
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .language-info,
  .project-info {
    margin-right: 0;
    width: 100%;
  }

  .language-bar,
  .project-bar {
    margin-right: 0;
    width: 100%;
  }
}

/*************************/
/*   RESPONSIVE DESIGN   */
/*************************/

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .bordercard {
    width: calc(33.33% - 20px);
  }
}

/* ===== <1200px ===== */
@media (max-width: 1200px) {
  .header.inverted {
    max-height: 50rem;
    background-size: auto;
    background-position: 95% 10% !important;
  }
}

/* ===== <400px ===== */
@media (max-width: 1000px) {
  .cards {
    display: flex;
    flex-direction: column;
  }
}

/* ===== DESKTOP/LAPTOP (992px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 993px) {
  .bordercard {
    width: calc(50% - 20px);
  }
}

@media (max-width: 992px) {
  /* Hero Section */
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    /* Ajout pour forcer le centrage */
    margin: 0 auto;
  }

  .hero-text {
    text-align: center !important; /* Forcer le centrage */
    margin: 2rem auto 0 auto;
    margin-top: 350px;
    padding: 0 2rem;
    width: 100%;
    max-width: 100%;
    /* Ajouts pour garantir le centrage */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Forcer le centrage pour tous les éléments enfants */
  .hero-text * {
    text-align: center !important;
  }

  /* S'assurer que le titre principal est centré */
  .hero-text h1,
  .name-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Centrage du conteneur typewriter */
  .typewriter-container {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .typewriter-text {
    text-align: center !important;
    display: block;
    width: 100%;
  }

  /* Centrage des boutons et icônes sociales */
  .social-icons {
    justify-content: center !important;
    display: flex;
    width: 100%;
  }

  /* Agrandissement du texte d'accueil */
  .hero-text h1 {
    font-size: 6.5rem;
  }

  .name-title {
    font-size: 3.8rem;
  }

  /* Agrandissement du texte typewriter */
  .typewriter-text {
    font-size: 2.3rem;
    min-width: 700px !important;
  }

  .avatar-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto; /* Centrer l'avatar aussi */
  }

  .display-4 {
    font-size: 5rem;
  }

  /* CARTES AGRANDIES */
  .cards {
    gap: 50px;
    justify-content: center;
  }

  .bordercard {
    width: calc(50% - 50px);
    min-width: 650px;
    max-width: 750px;
  }

  .card {
    max-width: 750px !important;
    min-height: 450px;
  }

  .card-columns {
    max-width: 750px;
  }

  .card h5 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .card p {
    font-size: 2rem;
    line-height: 1.7;
  }

  .card-title {
    font-size: 2.5rem !important;
  }

  .card-body {
    padding: 40px;
  }

  .card-img-top {
    height: 300px;
    object-fit: cover;
  }

  .card-icon {
    font-size: 4rem;
    margin: 30px 0;
  }

  .btn-primary {
    padding: 32px 64px !important;
    font-size: 1.2rem;
    margin-top: 15px;
    font-size: 2rem !important;
  }

  .card-icon i {
    font-size: 5rem;
  }

  .faq {
    gap: 30px;
  }

  .faq-content h1 {
    font-size: 5.5rem;
  }

  .faq-content h5 {
    font-size: 2rem;
  }

  .faq-content h4 {
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  /* FAQ Contact Section - Agrandissement */
  .faq-contact-img {
    gap: 40px;
    margin-top: 30px;
    justify-content: center;
  }

  .contact-column {
    margin-bottom: 25px;
    min-width: 200px;
  }

  .contact-icon-container {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .contact-text-container {
    width: 100%;
    min-width: 200px;
    padding: 15px 20px;
    min-height: 60px;
    border-radius: 12px;
  }

  .svg {
    width: 70px;
    height: 70px;
  }

  .contact-text {
    font-size: 1.8rem;
    font-weight: 500;
  }

  /* Accordion agrandissement */
  .custom-accordion .accordion-button {
    padding: 30px 25px;
    font-size: 1.8rem;
    font-weight: 600;
  }

  .custom-accordion .accordion-body {
    padding: 30px 25px;
    font-size: 2 rem;
    line-height: 1.8;
  }
}

/* ===== TABLET PORTRAIT (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .faq {
    flex-direction: column;
    align-items: center;
  }

  .faq-content,
  .accordion {
    width: 90%;
    margin-bottom: 30px;
  }

  .cards {
    justify-content: center;
  }

  .bordercard {
    margin: 0 auto 20px;
  }
}

/* ===== TABLET PORTRAIT & MOBILE (768px) ===== */
@media (max-width: 768px) {
  /* General */
  .body {
    margin-top: 3%;
    background-color: red !important;
  }

  .section-spacing {
    margin-bottom: 30px;
  }

  /* Header */
  .header.inverted {
    background-position: 95% center;
  }

  .header.inverted {
    padding-top: 80px;
    height: auto;
    min-height: 100vh;
  }

  /* Hero Section */
  .hero-text {
    text-align: center;
    margin-top: 60px;
    padding: 1rem 0;
  }

  .name-title {
    font-size: 2.5rem;
  }

  .typewriter-container {
    min-height: 80px;
  }

  .btn-outline-success {
    padding: 0.5rem 1rem;
  }

  /* Cards */
  .bordercard {
    width: 100%;
    min-width: unset;
    max-width: 350px;
    border-left: 0;
    border-right: 0;
    margin-bottom: 20px;
  }

  .card-columns {
    max-width: 100%;
  }

  .card {
    max-width: 100%;
  }

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

  /* FAQ */
  .faq {
    flex-direction: column;
    align-items: center;
  }

  .faq-content,
  .accordion {
    width: 90%;
    margin-bottom: 30px;
  }

  .faq-content {
    order: -1;
  }

  .faq-content h1 {
    font-size: 2.2rem;
    text-align: center;
  }

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

  .faq-contact-img {
    justify-content: center;
  }

  /* Contact */
  .contact-column {
    min-width: 100px;
  }
}

/* ===== MOBILE LARGE (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-content {
    padding: 1.5rem 1rem;
  }
}

/* ===== MOBILE (576px) ===== */
@media (max-width: 576px) {
  /* General */
  .body {
    margin-top: 30px;
    padding: 0 15px;
  }

  .body > div {
    margin-bottom: 30px;
  }

  /* Hero Section */
  .hero-content {
    padding: 1.5rem 1rem;
  }

  .name-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .typewriter-text {
    font-size: 1rem;
  }

  .typewriter-container {
    margin: 1rem 0;
    min-height: 70px;
  }

  .btn-outline-success {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .social-icons {
    justify-content: center;
  }

  .avatar-circle {
    width: 200px;
    height: 200px;
  }

  /* Cards */
  .cards {
    gap: 15px;
  }

  .bordercard {
    margin-bottom: 15px;
    width: 100%;
  }

  .card {
    width: 100% !important;
    max-width: 90vw;
  }

  .card h5 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card-body {
    padding: 15px;
  }

  .card-icon {
    font-size: 1.8rem;
    margin: 10px 0;
  }

  .card-img-top {
    height: 160px;
  }

  /* FAQ */
  .faq {
    margin-top: 30px;
    padding: 0 15px;
  }

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

  .faq-text h5 {
    font-size: 0.95rem;
  }

  .faq-text h4 {
    font-size: 1.1rem;
  }

  .custom-accordion .accordion-button {
    padding: 15px;
    font-size: 0.95rem;
  }

  .custom-accordion .accordion-body {
    padding: 15px;
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-icon-container {
    width: 75px;
    height: 75px;
  }

  .contact-text-container {
    width: 80px;
  }

  .svg {
    width: 36px;
    height: 36px;
  }

  .contact-text {
    font-size: 13px;
  }
}

/* ===== MOBILE SMALL (375px) ===== */
@media (max-width: 375px) {
  /* Hero Section */
  .name-title {
    font-size: 1.8rem;
  }

  .typewriter-text {
    font-size: 0.9rem;
  }

  .btn-outline-success {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  /* FAQ */
  .faq-content h1 {
    font-size: 36px;
  }

  .faq-contact-img {
    gap: 15px;
  }

  /* Contact */
  .contact-icon-container {
    width: 65px;
    height: 65px;
  }

  .svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1024px) {
  .animate__animated,
  .animate__fadeInUp,
  .animate__fadeIn,
  .animate__slideInLeft,
  .animate__slideInRight,
  .animate__bounceIn,
  .animate__zoomIn {
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Désactiver les transitions personnalisées */
  .typewriter-text {
    animation: none !important;
  }

  /* Désactiver les effets de hover sur mobile */
  .card:hover,
  .btn:hover,
  .social-icon:hover {
    transform: none !important;
    transition: none !important;
  }
}

.stat-number {
  font-weight: 700;
  font-size: 2rem;
  color: white;
  font-family: monospace;
  letter-spacing: 0.05em;
  display: inline-block;
  min-width: 150px;
  text-align: center;
}

.stat-card {
  animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REVEAL ANIMATION POUR FAQ ===== */

/* Reveal from LEFT */
.reveal-left {
  opacity: 0;
  animation: revealFromLeft 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealFromLeft {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Reveal from RIGHT */
.reveal-right {
  opacity: 0;
  animation: revealFromRight 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealFromRight {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Animation delay pour les accordions */
.accordion-item {
  animation-delay: 0.1s;
}

.accordion-item:nth-child(2) {
  animation-delay: 0.2s;
}

.accordion-item:nth-child(3) {
  animation-delay: 0.3s;
}
