/* === Variables simples === */
:root{
  --bg:#0e0f12;
  --bg-2:#12131a;
  --text:#eef2f7;
  --muted:#cfd9e9;
  --card:#151823;
  --accent-start:#ff62c0;
  --accent-end:#7a5cff;
  --radius:1.75rem;
}

body{
  margin:0;
  font-family:Montserrat, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.6;
  scroll-behavior: smooth;
}



.no-style-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.no-style-link:hover,
.no-style-link:focus,
.no-style-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.container{
  width:90%; 
  max-width:68.75rem; 
  margin:0 auto;
}
.section{
  padding:3.75rem 0;
}
.section-title{
  font-size:2rem; 
  margin:0 0 0.625rem;
}
.section-subtitle{
  color:var(--muted); 
  margin:0 0 1.75rem;
}
.gradient{
  background:linear-gradient(135deg,var(--accent-start),var(--accent-end));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.header{
  position:sticky; 
  top:0; 
  z-index:50;
  background:rgba(14,15,18,0.95);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.nav-wrap{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:0.9375rem 0;
}
.logo{
  font-weight:800; 
  font-size:1.25rem; 
  text-decoration:none; 
  color:var(--text);
}
.logo span{
  background:linear-gradient(135deg,var(--accent-start),var(--accent-end));
  -webkit-background-clip:text; 
  background-clip:text; 
  -webkit-text-fill-color:transparent;
}

.tech-logos {
  position: relative;
  display: flex;
  bottom: -6.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  z-index: 2;
}

/* Conteneur pour chaque logo avec tooltip */
.tech-logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-logo-item p {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.tech-icon {
  font-size: 7.5rem;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.fa-html5 {
  color: #e34c26;
}

.fa-css3-alt {
  color: #264de4;
}

.fa-js {
  color: #f0db4f;
}

.fa-github {
  color: #ffffff;
}

.fa-git-alt {
  color: #f05032;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.fa-vscode {
  color: #007acc;
  fill: currentColor;
}

.tech-icon:hover {
  transform: scale(1.2) rotate(5deg);
}



.titre-header {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav{
  display:flex; 
  gap:0.9375rem;
  align-items:center;
}
.nav-link{
  color:var(--muted); 
  text-decoration:none; 
  padding:0.625rem 0.9375rem;
  border-radius:0.5rem;
  transition:all 0.3s;
}
.nav-link:hover{
  color:var(--text); 
  background:rgba(255,255,255,.05);
}

.burger{
  display:none; 
  width:2.75rem;
  height:2.375rem;
  background:transparent; 
  border:0; 
  cursor:pointer; 
  flex-direction:column; 
  justify-content:space-between; 
  padding:0.625rem;
}
.burger span{
  height:0.1875rem;
  background:#d7dbeb; 
  transition:0.3s;
  border-radius: 2px;
}

.title{
  font-size:2.5rem;
  line-height:1.2;
  margin:0 0 0.75rem;
}
.lead{
  color:var(--muted); 
  font-size:1.125rem;
  margin:0 0 1.625rem;
}
.cta{
  display:flex; 
  gap:0.75rem;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex; 
  align-items:center; 
  gap:0.5rem;
  padding:0.75rem 1.25rem;
  border-radius:0.75rem;
  text-decoration:none; 
  border:2px solid transparent; 
  transition:all 0.3s;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}
.btn.primary{
  background:linear-gradient(135deg,var(--accent-start),var(--accent-end));
  background-origin: border-box;
  color:#0b0b0f; 
  font-weight:700;
}
.btn.primary:hover{
  transform:translateY(-0.125rem);
  box-shadow: 0 10px 20px rgba(255, 98, 192, 0.3);
}

/* Animation reveal */
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-3d{
  height:30rem;
  border-radius:var(--radius);
  background:var(--card); 
  position:relative; 
  overflow:hidden; 
  border:1px solid rgba(255,255,255,.06); 
  transform-style:preserve-3d; 
  perspective:56.25rem;
}
.card-3d__inner{
  position:absolute; 
  inset:0; 
  overflow:hidden;
}
.card-3d .dots, .card-3d .lines, .card-3d .glow{
  position:absolute;
  inset:-20%;
}
.card-3d .dots{
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 1.125rem 1.125rem;
  animation: drift 24s linear infinite;
}
.card-3d .lines{
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 0.125rem, transparent 0.125rem 0.75rem);
  mix-blend-mode: overlay; 
  animation: drift 36s linear infinite reverse;
}
.card-3d .glow{
  background: 
    radial-gradient(25rem 13.75rem at 20% 20%, rgba(255,98,192,.35), transparent 60%),
    radial-gradient(23.75rem 12.5rem at 90% 80%, rgba(122,92,255,.35), transparent 60%);
  filter: blur(0.75rem);
}
@keyframes drift{
  from{transform:translate3d(0,0,0);} 
  to{transform:translate3d(3.75rem,1.875rem,0);}
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card{
  background:var(--card); 
  border-radius:0.75rem; 
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08); 
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover{
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}
.card .thumb{
  width:100%; 
  height:12.5rem;
  object-fit:cover;
  cursor: pointer;
  transition: transform 0.3s;
}
.card .thumb:hover {
  transform: scale(1.05);
}
.card .content{
  padding:0.9375rem;
}
.card h3{
  font-size:1.125rem;
  margin:0 0 0.5rem;
}
.card p{
  color:var(--muted); 
  margin:0 0 0.9375rem;
  font-size:0.875rem;
}
.card .actions{
  padding:0 0.9375rem 0.9375rem;
}

.contact-info .coords{
  list-style:none; 
  padding:0;
  margin:0 0 1.125rem;
}
.contact-info .coords li{
  margin:0.625rem 0;
}
.contact-info .coords li strong {
  margin-right: 10px;
}
.contact-info a{
  color:var(--text);
  text-decoration: none;
  display: inline-block; /* Required for transform */
  transition: all 0.3s ease;
}
.contact-info a:hover {
  color: var(--accent-start);
  transform: scale(1.1);
}

.contact-form{
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:0.75rem;
  padding:1.25rem;
}
.form-row{
  display:flex; 
  flex-direction:column; 
  gap:0.5rem;
  margin:0.9375rem 0;
}
label{
  font-weight:600;
}



input, textarea{
  padding:0.75rem;
  border-radius:0.5rem;
  border:1px solid rgba(255,255,255,.12);
  background:#0f1118; 
  color:var(--text); 
  outline:none; 
  font-family:inherit;
  transition: border-color 0.3s;
  resize: none;
}


textarea:focus{
  border-color:var(--accent-end);
  resize: none;
}

.form-status{
  margin-top:0.625rem;
  color:var(--muted);
}

.footer{
  padding:1.25rem 0;
  border-top:1px solid rgba(255,255,255,.06); 
  text-align:center;
}

.hero .grid-2,
.grid-2 {
  display: grid;
  gap: 1.875rem;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  align-items: center;
}

.profile-pic-wrap {
  position: relative;
  display: flex;
  align-items: center;
}



.profile-pic {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d16ba5;
  transition: transform 0.3s;
}

.profile-pic:hover {
  transform: scale(1.1);
}

.btn.primary-dons{
  position:fixed; 
  bottom:1.25rem;
  right:1.25rem;
  z-index:100;
  background:linear-gradient(135deg,var(--accent-start),var(--accent-end));
  background-origin: border-box;
  color:#0b0b0f; 
  font-weight:700;
}

@media (max-width: 48rem){
  .burger{
    display:flex;
  }
  .nav{
    position:fixed; 
    top:4.375rem;
    left:0; 
    right:0; 
    background:var(--bg-2);
    padding:0.9375rem;
    display:none; 
    flex-direction:column; 
    gap:0.625rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav.active{
    display:flex;
  }
  
  .tech-logos{
    gap:2rem;
  }

  .title{
    font-size:2rem;
  }
  .card-3d{
    height:24rem;
  }

  .tech-icon {
    font-size: 5rem;
  }
  

  
  .hero .grid-2,
  .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta {
    justify-content: center;
  }
}

/* Styles pour le carrousel */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 31.25rem; /* Largeur maximale pour le carrousel */
  margin: 0; /* Aligner le carrousel à gauche */
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 479/455; /* Ratio hauteur/largeur pour être responsive */
  overflow: hidden;
  border-radius: 10px; /* Bords arrondis pour le conteneur */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre portée */
  background: var(--card); /* Utilise la variable de couleur de votre thème */
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* C'est ici que vous pouvez changer le style de la carte du projet */
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column; /* Pour empiler l'image et le contenu */
  justify-content: flex-start; /* Aligner en haut */
  font-size: 1rem; /* Taille de police ajustée pour le contenu */
  color: var(--text); /* Utilise la variable de couleur de votre thème */
  padding: 0; /* On enlève le padding pour que l'image touche les bords */
  text-align: center;
  overflow: hidden; /* Cache le contenu qui pourrait déborder */
}

.slide-image {
  width: 100%;
  height: 55%; /* L'image prend un peu plus de la moitié */
  object-fit: cover; /* L'image couvre la zone sans se déformer */
}

.slide-content {
  padding: 20px;
  height: 45%; /* Le contenu prend le reste */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.slide-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Pour centrer verticalement les boutons */
  background-color: rgba(255, 255, 255, 0.8); /* Fond blanc semi-transparent */
  color: black; /* Flèches en noir */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: white; /* Fond blanc opaque au survol */
}

.prev-btn { left: -3.125rem; } /* Positionné à l'extérieur sur la gauche */
.next-btn { right: -3.125rem; } /* Positionné à l'extérieur sur la droite */

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: white;
}

.more-info-wrapper {
  text-align: center; 
  margin-top: 2rem;
}

/* Footer specific styles */
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-text {
  margin: 0;
}

/* Index page contact section adjustment */
#contact .coords {
  margin-top: 2rem;
}


     .reco-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .reco-card {
            background: var(--card, #1a1a2e);
            border-radius: 1rem;
            padding: 1.5rem;
            border: 1px solid rgba(255,255,255,.08);
        }
        .reco-card p { margin: .75rem 0 1rem; line-height: 1.6; color: var(--muted, #a0a0b0); }
        .reco-card .reco-author { font-weight: 700; }
        .reco-card .reco-company { font-size: .85rem; color: var(--muted2, #666); }
        .reco-form { max-width: 560px; margin: 3rem auto 0; }
        .reco-form .form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
        .reco-form label { font-size: .9rem; font-weight: 600; }
        .reco-form input,
        .reco-form textarea {
            padding: .75rem 1rem;
            border-radius: .5rem;
            border: 1px solid rgba(255,255,255,.15);
            background: rgba(255,255,255,.05);
            color: inherit;
            font-family: inherit;
            font-size: 1rem;
        }
        .msg-success { color: #22c55e; margin-top: 1rem; font-weight: 600; }
        .msg-error   { color: #ef4444; margin-top: 1rem; font-weight: 600; }