:root {
  /* Couleurs principales */
  --color-primary: #0C111C;    /* Noir principal */
  --color-secondary: #EEEEF0;  /* Gris clair/Blanc */
  --color-accent: #22d3ee; /* Cyan pour les accents */
  --color-carousel-info-overlay-bg : rgba(16, 22, 42, 0.63); /* Overlay pour le carrousel */
  --color-carousel-info-overlay-h3 : #22d3eeb7; /* Couleur du texte h3 dans l'overlay du carousel */
  
  
  /* Couleurs d'état */
  --color-error: red;          /* Rouge pour les erreurs */
  
  /* Couleurs d'ombre */
  --shadow-color: rgba(12, 17, 28, 0.2); /* Ombre avec opacité */
}

html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
  color: var(--color-primary);
  text-decoration: none;
  box-sizing: border-box;
}
/* header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: 2%;
  padding-right: 2%;
  background: var(--color-secondary);
  z-index: 999;
  transition: box-shadow 0.3s ease;
} */

body {
  font-family: "Inter", sans-serif;
  max-width: 1350px;
  padding-left: 25px;
  padding-right: 25px;
  margin: auto;
  line-height: 2rem;
  background-color: var(--color-secondary);
}
.offlineBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.h1 {
  font-size: 3rem;
}

.h2 {
  font-size: 2.5rem;
}
.h3 {
  font-size: 1.2rem;
}

p {
  font-size: 1rem;
}

.text-bold {
  font-weight: bold;
}

.text-red {
  color: var(--color-error);
}
.flex {
  display: flex;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-space-between {
  justify-content: space-between;
}
.flex-align-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-column {
  flex-direction: column;
}

.gap-xl {
  gap: 60px;
}

.gap-l {
  gap: 40px;
}

.gap-m {
  gap: 30px;
}

.gap-s {
  gap: 16px;
}

.menu-item:not(:first-child):before {
  content: "|";
  padding-left: 16px;
  padding-right: 16px;
}

.list-style-none {
  list-style: none;
}

.margin-auto {
  margin: auto;
}
.padding-y-xxl {
  padding-top: 100px;
  padding-bottom: 100px;
}
.padding-y-xxl-one {
  padding-top: 100px;
  padding-bottom: 70px;
}
.hover {
  padding: 5px 10px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hover:hover {
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 5px;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px var(--shadow-color);
}
.hover-active {
  padding: 5px 10px;
  position: relative;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 5px;
  box-shadow: 0 4px 8px var(--shadow-color);
}
.hover-active:hover {
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 10px;
}

.padding-y-m {
  padding-bottom: 30px;
  padding-top: 30px;
}

.padding-y-s {
  padding-top: 20px;
  padding-bottom: 20px;
}

.padding-left-xs {
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-bordered {
  border-top-color: var(--color-primary);
  border-top-style: solid;
  border-top-width: 0.5px;
}

 /* Show text animation start  */
.inline-flex {
  display: inline-flex;
}
.dynamic-text {
  display: inline-block;
  position: relative;
  min-width: 200px;
  height: 1.2em;
  overflow: hidden;
}
.img-width-100 {
  width: 100%;
}
.zoom-in {
  max-width: 100%;
  margin: 0 auto;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.left {
  left: 0;
}
.top {
  top: 0;
}
.transform {
  transform: scale(1.8);
}
.pointer-events-none {
  pointer-events: none;
  --zoom-x: 50%;
  --zoom-y: 50%;
  clip-path: circle(15% at var(--zoom-x) var(--zoom-y));
  opacity: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: opacity 0.2s ease-in-out;
}
.dynamic-text li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: showText 12s infinite;
}

.dynamic-text li:nth-child(1) { animation-delay: 0s; }
.dynamic-text li:nth-child(2) { animation-delay: 3s; }
.dynamic-text li:nth-child(3) { animation-delay: 6s; }
.dynamic-text li:nth-child(4) { animation-delay: 9s; }

@keyframes showText {
  0% { opacity: 0; transform: translateY(100%); }
  10% { opacity: 1; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(0); }
  35% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; }
}
 /* Show text animation end  */


/* toggle text animation start  */
.toggle-text {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  animation: toggleEffect 12s linear infinite; /* Animation de 12s qui se répète indéfiniment */
}

@keyframes toggleEffect {
  0% {
    opacity: 1; /* Le texte est complètement visible au début */
    transform: translateY(0); /* Position initiale du texte */
  }
  75% {
    opacity: 1; /* Le texte reste visible jusqu'à 75% de l'animation (9s) */
    transform: translateY(0); /* Maintient la position initiale */
  }
  80% {
    opacity: 0; /* Le texte commence à disparaître à 80% (9.6s) */
    transform: translateY(30px); /* Le texte descend de 30px pour un effet de sortie */
  }
  94% {
    opacity: 0; /* Le texte reste invisible */
    transform: translateY(30px); /* Maintient la position basse */
  }
  94.5% {
    opacity: 0; /* Commence à réapparaître */
    transform: translateY(75px); /* Commence à remonter */
  }
  95% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(60px); /* Continue de remonter */
  }
  95.5% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(45px); /* Continue de remonter */
  }
  96% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(35px); /* Continue de remonter */
  }
  96.5% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(25px); /* Continue de remonter */
  }
  97% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(20px); /* Continue de remonter */
  }
  97.5% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(15px); /* Continue de remonter */
  }
  98% {
    opacity: 0; /* Continue la réapparition */
    transform: translateY(10px); /* Continue de remonter */
  }
  98.5% {
    opacity: 0; /* Presque réapparu */
    transform: translateY(5px); /* Presque à la position finale */
  }
  99% {
    opacity: 0; /* Presque réapparu */
    transform: translateY(2px); /* Très proche de la position finale */
  }
  100% {
    opacity: 1; /* Le texte réapparaît complètement à la fin du cycle */
    transform: translateY(0); /* Position finale */
  }
}

.bg-blue {
  border: 2px solid var(--color-primary);
  &:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    transition: all 0.2s ease-in-out;
  }
}

.button {
  width: 80px;
  min-height: 80px;
}

ul {
  padding-left: 10px;
}

.pl-0 {
  padding-left: 0;
}

.bottom-bordered {
  border-bottom-color: var(--color-primary);
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.width-full {
  width: 100%;
}
.flex-1 {
  flex: 1;
}

.max-width-1100 {
  max-width: 1100px;
}

.height-40 {
  height: 40px;
}

.resize-none {
  resize: none;
}

.height-150 {
  height: 150px;
}

.width-150 {
  width: 150px;
}

.padding-y-xs {
  padding-top: 10px;
  padding-bottom: 10px;
}

input,
textarea {
  font-size: 1rem;
  border-width: 2px;
  padding: 0 5px;
}

/* -------------------------------Responsive-------------------------------*/
/*.xs : 320px */

/*.sm : 520px */

/*.md': '640px',*/

/*'md': '768px',*/

/*'lg': '1024px',*/

/*'xl': '1280px',*/

/*'2xl': '1536px',*/

@media (min-width: 520px) {
  .sm-flex {
    display: flex;
  }

  .sm-flex-justify-center {
    justify-content: center;
  }

  .sm-flex-justify-space-between {
    justify-content: space-between;
  }

  .sm-flex-align-center {
    align-items: center;
  }

  .sm-flex-wrap {
    flex-wrap: wrap;
  }

  .sm-flex-column {
    flex-direction: column;
  }

  .sm-flex-row {
    flex-direction: row;
  }

  .sm-text-left {
    text-align: left;
  }

  .sm-gap-0 {
    gap: 0;
  }

  .button {
    width: 80px;
    min-height: 80px;
  }
}

@media screen and (min-width: 640px) {
  .md-flex {
    display: flex;
  }

  .md-flex-justify-center {
    justify-content: center;
  }

  .md-flex-justify-space-between {
    justify-content: space-between;
  }

  .md-flex-align-center {
    align-items: center;
  }

  .md-flex-justify-start {
    justify-content: flex-start;
  }
  .md-flex-wrap {
    flex-wrap: wrap;
  }

  .md-flex-column {
    flex-direction: column;
  }

  .md-flex-row {
    flex-direction: row;
  }

  .md-text-left {
    text-align: left;
  }

  .md-gap-0 {
    gap: 0;
  }

  .md-gap-l {
    gap: 40px;
  }

  .md-gap-m {
    gap: 30px;
  }

  .md-gap-s {
    gap: 16px;
  }
}

@media (min-width: 950px) {
  .lg-flex {
    display: flex;
  }

  .lg-flex-justify-center {
    justify-content: center;
  }

  .lg-flex-justify-space-between {
    justify-content: space-between;
  }

  .lg-flex-align-center {
    align-items: center;
  }

  .lg-flex-justify-start {
    justify-content: flex-start;
  }

  .lg-flex-wrap {
    flex-wrap: wrap;
  }

  .lg-flex-column {
    flex-direction: column;
  }

  .lg-flex-row {
    flex-direction: row;
  }

  .lg-text-left {
    text-align: left;
  }

  .lg-gap-0 {
    gap: 0;
  }

  .button {
    width: 80px;
    min-height: 80px;
  }
}

@media (min-width: 320px) {
  .xs-flex {
    display: flex;
  }

  .xs-flex-justify-center {
    justify-content: center;
  }

  .xs-flex-justify-space-between {
    justify-content: space-between;
  }

  .xs-flex-align-center {
    align-items: center;
  }

  .xs-flex-justify-start {
    justify-content: flex-start;
  }
  .xs-flex-wrap {
    flex-wrap: wrap;
  }

  .xs-flex-column {
    flex-direction: column;
  }

  .xs-flex-row {
    flex-direction: row;
  }

  .xs-text-left {
    text-align: left;
  }

  .xs-gap-0 {
    gap: 0;
  }
}


.text-cyan-400 {
  color: var(--color-accent);
}

/* Styles pour la section présentation */
.presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  padding: 0 15px;
}

.presentation > * {
  max-width: 450px;
  width: 100%;
}

/* Media queries pour la présentation */
@media (max-width: 519px) {
  .presentation {
    padding: 0 10px;
  }
  
  .presentation > * {
    max-width: 100%;
  }
  
  .presentation h1 {
    font-size: 1.7rem;
  }
  
  .presentation p {
    font-size: 0.95rem;
  }
}

@media screen and (min-width: 640px) {
  .presentation {
    padding: 0 20px;
  }
}

@media screen and (min-width: 950px) {
  .presentation {
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }
}

/* ===== SYSTÈME RESPONSIVE DE L'IMAGE ===== */
/* Ce système permet à l'image de s'adapter progressivement selon la taille de l'écran */

/* Configuration initiale (mobile-first) - S'applique sur tous les écrans < 520px */
.max-width-full {
  width: 300px;  /* Largeur optimale pour mobile : assez grande pour être visible mais pas trop pour éviter le débordement */
  height: 300px; /* Hauteur identique à la largeur pour maintenir un ratio 1:1 (image carrée) */
  transition: all 0.3s ease-in-out; /* Transition douce de 0.3s pour rendre les changements de taille fluides */
}

/* Mobile - Écrans < 520px */
@media (max-width: 519px) {
  .presentation > * {
    max-width: 400px; /* Limite la largeur pour éviter les débordements sur mobile */
  }
  h1 {
    font-size: 1.7rem; /* Taille de police réduite pour les écrans plus petits */
  }
}

/* Breakpoint SM (520px) - Tablettes et petits écrans */
@media (min-width: 520px) {
  .max-width-full {
    width: 350px;  /* +50px par rapport au mobile pour une meilleure visibilité sur tablette */
    height: 350px; /* Maintien du ratio carré pour la cohérence visuelle */
  }
}

/* Breakpoint MD (640px) - Tablettes larges */
@media (min-width: 640px) {
  .max-width-full {
    width: 400px;  /* +50px supplémentaires pour les tablettes larges */
    height: 400px; /* Conservation du ratio carré */
  }
}

/* Breakpoint LG (950px) - Desktop et grands écrans */
@media (min-width: 950px) {
  .max-width-full {
    width: 470px;  /* Taille maximale pour une visibilité optimale sur desktop */
    height: 470px; /* Ratio carré maintenu pour la cohérence */
  }
}
@media (max-width: 900px) {
  .carousel-img-wrapper:hover .carousel-info-overlay {
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease;
  }
}

/* Propriétés de base de l'image - S'appliquent à toutes les tailles d'écran */
.rounded {
  border-radius: 100%;
  object-fit: cover; 
}
/* ===== FIN DU SYSTÈME RESPONSIVE DE L'IMAGE ===== */

.zoom-in:hover .pointer-events-none {
  opacity: 1;
}

.zoom-tooltip {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    &::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 3px solid var(--color-primary);
    }
}

.zoom-in:hover .zoom-tooltip {
    opacity: 1;
}

/* Ajout d'un focus visible pour l'accessibilité au clavier */
.zoom-in:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.download-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Restauration de l'espacement entre l'image et le bouton */
.flex-column.gap-m {
    gap: 50px;
}

.nav__link {
    position: relative;
    transition: all 0.3s ease;
}
.blog__container {
  padding: 0 2%;
}
.blog__illustration {
    width: 50%;
    max-width: 50%;
    height: auto;
    border-radius: 16px;
    gap: 0;
    /* box-shadow: 0 1px 8px rgba(0,0,0,0.18); */
}
.offline__illustration {
  width: 100%;
  margin-top: 2rem;
}
.text-desc {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 65%;
  }
  .oups {
    font-size: 2.5rem;
    padding-bottom: 1.5rem;
}
.pad-b-0 {
  padding-bottom: 0;
}

/* Amélioration de la réactivité sur mobile */
@media (max-width: 519px) {
    .presentation > * {
        max-width: 100%;
    }
}

/* Styles de base pour le footer */
.footer__section {
  width: 100%;
  text-align: center;
}

.footer__title {
  margin-bottom: 8px;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Media queries pour le footer */
@media screen and (min-width: 640px) {
  .footer__section {
    text-align: left;
  }
  
  .footer__socials {
    justify-content: flex-start;
  }
}

/* Styles responsifs pour l'image du CV */
.zoom-in img.img-width-100 {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: all 0.3s ease;
}

/* Mobile (< 320px) */
@media (max-width: 319px) {
  .zoom-in img.img-width-100 {
    max-width: 250px;
  }
  .zoom-in .transform {
    transform: scale(1.5);
  }
}

/* Small (≥ 320px) */
@media (min-width: 320px) {
  .zoom-in img.img-width-100 {
    max-width: 280px;
  }
  .zoom-in .transform {
    transform: scale(1.6);
  }
}

/* Medium (≥ 520px) */
@media (min-width: 520px) {
  .zoom-in img.img-width-100 {
    max-width: 400px;
  }
  .zoom-in .transform {
    transform: scale(1.7);
  }
}

/* Large (≥ 640px) */
@media (min-width: 640px) {
  .zoom-in img.img-width-100 {
    max-width: 500px;
  }
  .zoom-in .transform {
    transform: scale(1.8);
  }
}

/* Extra Large (≥ 950px) */
@media (min-width: 950px) {
  .zoom-in img.img-width-100 {
    max-width: 600px;
  }
  .zoom-in .transform {
    transform: scale(1.8);
  }
}

/* Styles pour le header et le titre */
header nav {
  text-align: center;
}

header nav h1 {
  text-align: center;
  margin-bottom: 10px;
}

header nav h1 a {
  display: inline-block;
  text-decoration: none;
}

/* Media queries pour le header */
@media (min-width: 520px) {
  header nav {
    text-align: left;
  }
  
  header nav h1 {
    text-align: left;
    margin-bottom: 0;
  }
}

/* === début du carrousel de projets  === */
.profil-desc {
  line-height: 1.7rem;
}
.projects-carousel-section {
  padding: 2rem 0 2rem 0;
  margin-top: 2rem;
  margin-bottom: 6.3rem;
}
.offline-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 65%;
  padding: 2rem 0 2rem 0;
  /* margin-top: 2rem; */
  /* margin-bottom: 2rem; */
}
.projects-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.projects-desc {
  font-size: 1rem;
  line-height: 1.7rem;
  padding-bottom: 2.5rem;
  text-align: center;
  width: 65%;
  margin: 0 auto;
}
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Largeur réduite à 70% sur desktop */
  width: 70%;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .carousel-container {
    width: 80%;
  }
}
@media (max-width: 900px) {
  .carousel-container {
    width: 95%;
    max-width: 95vw;
  }
}
@media (max-width: 600px) {
  .carousel-container {
    width: 100%;
    max-width: 100vw;
  }
}

/* Correction stricte de la visibilité des slides dans le carrousel */
.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  display: block;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Afficher deux slides côte à côte sur desktop */
.carousel-slide {
  min-width: 50%; /* Deux slides visibles */
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wrapper pour positionner le texte sur l'image */
.carousel-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  border: 2px solid #222b3a;
  background: #181f2e;
  filter: blur(4px); /* Flou par défaut */
  transition: filter 0.4s;
}

/* Overlay texte en haut à gauche */
.carousel-info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-carousel-info-overlay-bg);
  padding: 1rem 1.2rem 0.7rem 1.2rem;
  border-radius: 12px;
  color: var(--color-primary);
  z-index: 2;
  width: 100%;
  height: 100%;
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
  opacity: 1;
  transition: opacity 0.4s;
}
.carousel-info-overlay h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: var(--color-carousel-info-overlay-h3);
}
.carousel-info-overlay p {
  margin: 0;
  line-height: 1.5rem;
  color: #b3b8c5;
  font-size: 0.90rem;
}

/* Effet hover : image nette, texte masqué */
.carousel-img-wrapper:hover .carousel-img {
  filter: blur(0);
}
.carousel-img-wrapper:hover .carousel-info-overlay {
  opacity: 0;
  pointer-events: none;
}
/* button switch  */
.carousel-btn {
  border: 1px solid var(--color-primary);
  padding : 0.4rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  &:hover {
    background: var(--color-accent);
    border: none;
    transition: all 0.3s ease-in-out;
  }
}
.arrow-left {
  /* padding: auto; */
  rotate: 180deg;
}

@media (max-width: 900px) {
  /* .carousel-container {
    width: 60%;
  } */
  .carousel-slide {
    min-width: 100%; /* Un slide visible sur mobile/tablette */
  }
  .carousel-img-wrapper {
    max-width: 95vw;
    height: 140px;
  }
  .carousel-track-wrapper {
    max-width: 100vw;
  }
}
/* === Fin du carrousel de projets (retouché) === */
.stacks-section {
  margin-bottom: 6.3rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  padding-top: 2rem;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
  grid-auto-rows: auto; /* hauteur automatique */
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  max-width: 70%;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--color-secondary);
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  text-align: center;
}
.pad {
  padding: 10px;
}

.stack-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}
.alone {
  background-color: var(--color-secondary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 8s ease-out forwards;
}

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

.static {
  width: 50px;
  height: 50px;
}
.offline-section-h1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 630px) {
  .projects-desc, .text-desc{
    width: 80%;
  }
  .stack-list {
    grid-template-columns: repeat(3, 1fr); /* 2 colonnes sur mobile */
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
  }
  .pad {
    padding: 5px;
  }
  .stack-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
  }
  .alone{
    width: 80px;
    height: 80px;
  }

  .projects-title, .section-title {
    font-size: 1.7rem;
  }
  .blog__illustration {
    width: 60%;
    max-width: 60%;
    height: auto;
    border-radius: 16px;
  }
  .offline-section-h1 {
    font-size: 1.5rem;
    display: contents;
  }
  #installBtn {
    width: 40px;
    height: 40px;
  }

}
@media (max-width: 400px) {
  .stack-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
}
.stack-icon {
  width: 34px;
  height: 34px;
  transition: all 0.3s ease;
}
.alone{
  width: 74px;
  height: 74px;
}
.blog__illustration {
  width: 70%;
  max-width: 70%;
  height: auto;
  border-radius: 16px;
}
.offline__illustration {
  width: 80%;
  margin-top: 3rem;
}
.img-content-offline {
  text-align: center;
}
.offline-section-h1 {
  font-size: 1.2rem;
  display: contents;
}
.text-desc{
  width: 90%;
}
.offline-section-text-desc {
  font-size: 0.8rem;
  line-height: 1.5rem;
}
/* .installBtn {
  width: 20px;
  height: 20px;
} */
#installBtn {
  width: 20px;
  height: 20px;
}
}

        /* bouton de téléchargement pwa  */
/* Style initial : bouton invisible et déplacé vers le bas */
#installBtn {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border: none;
  border-radius: 100%;
  font-size: 16px;
  cursor: pointer;
  position: fixed;
  bottom: 20%;
  right: 1%;
  width: 50px;
  height: 50px;
  /* background-color: var(--color-accent); */
  /* color: var(--color-secondary); */
  /* padding: 12px 20px; */
}
.installBtn {
  width: 100%;
  height: 100%;
  display: block; /* S'assure que l'élément est un bloc pour occuper tout l'espace */
  object-fit: contain; /* S'assure que le contenu s'adapte bien à l'espace disponible */
}

/* Classe à ajouter pour l’animation */
#installBtn.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  position: fixed;
  bottom: 2%;
  right: 2%;
}
