html {
    scroll-behavior: smooth;
}
body, html {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden; 
}

/* Style Global */
body {
    font-size: 14px;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #e3eaf8, #ffffff);
    background-size: cover;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Appliquer le fond sombre général uniquement au contenu principal */
body.dark-mode main,
body.dark-mode .hero,
body.dark-mode .competences-section,
body.dark-mode .projects-section {
    background-color: rgba(31, 41, 55, 0.88);
    color: #e5e7eb;
}

/* Fond animé moins lumineux */
body.dark-mode .background-container {
    filter: brightness(0.4);
}

/* Textes dans les zones sombres */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode p,
body.dark-mode .hero-description,
body.dark-mode .project-date {
    color: #f1f5f9;
}

/* Améliorer lisibilité des sous-titres */
body.dark-mode .competences-section h3,
body.dark-mode .stack-title {
    color: #c4b5fd; /* violet pâle lisible */
}

/* Accentuer les noms d'entreprises dans les cartes projets */
body.dark-mode .project-card h3 {
    color: #d8b4fe !important; /* violet clair lisible et élégant */
    font-weight: 600;
}

/* Cartes projets */
body.dark-mode .project-card {
    background-color: rgba(31, 41, 55, 0.88);
}

/* Formulaire de contact : NE PAS appliquer dark-mode */
.contact-form input,
.contact-form textarea {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

/* Sauf en mode sombre où on ne touche rien — IGNORÉ */

body.dark-mode .tagline-item {
    color: #a78bfa;
}

/* Transitions douces */
body, .project-card, .contact-form input, .contact-form textarea {
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode .project-card {
    background-color: rgba(30, 41, 59, 0.85); /* bleu-gris adouci avec transparence */
    border: 1px solid rgba(255, 255, 255, 0.06);
}
  
/* Rétablit une bonne lisibilité du texte dans le footer en dark mode */
body.dark-mode #footer-description {
  color: #4b5563; /* gris foncé lisible sur fond clair */
}
body.dark-mode #footer-contact-title {
    color: #4b5563; /* ou white si tu préfères plus clair */
}

body.dark-mode .modal-content {
    background-color: #1f2937; /* fond plus sombre */
    color: #e5e7eb; /* texte clair et lisible */
}
  
body.dark-mode .modal-content h4 {
    color: #ffffff; /* titres bien visibles */
}
  
body.dark-mode .modal-content p,
body.dark-mode .modal-content li,
body.dark-mode .modal-content span {
    color: #d1d5db; /* textes secondaires légèrement atténués mais visibles */
}

/* Alternative douce */
body.dark-mode .progress-value {
    color: #e5e7eb; /* gris clair, moins agressif que blanc pur */
}

/* Style du bouton mode sombre */
#theme-toggle {
    background: none;
    border: none;
    font-size: 18px; /* Ajuste selon ta préférence */
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1); /* effet au survol si tu veux */
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://portfolio-a65588.gitlab.io/images/ban.png") center center / cover no-repeat;
  opacity: 1.5; /* Ajuste ici pour rendre plus ou moins subtil */
  z-index: -1;
  pointer-events: none;
}

.emoji {
    font-size: 1.3rem;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}
.project-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* ← centre le contenu horizontalement */
    gap: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 1.05rem;
    margin-top: 8px;
    margin-bottom: 4px;
}
  
  
/* Overlay de bienvenue */
#welcome-overlay {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#welcome-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.welcome-message {
    color: white;
    font-size: 1.8rem;
    text-align: center;
    max-width: 90%;
    font-weight: 500;
}

.logo-db {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* ou 40px selon ton header */
    width: auto;
    display: block;
}
  

/* Navigation */
.navbar {
    position: fixed; /* Fixe la navbar */
    top: 0; /* Colle en haut */
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    height: 60px; /* Réduction de la hauteur */
}

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

.nav-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

.nav-links li a:hover {
    color: #7D5FB2;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-right: 40px; /* ← éloigne le select du bord droit */
}

/* Aligner les icônes de langue */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
}
  
.globe-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}
  
.lang-select {
    background-image: url("data:image/svg+xml,%3Csvg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding: 6px 34px 6px 32px; /* left padding pour laisser de la place au globe */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    cursor: pointer;
}

.cta-button {
    background: #7D5FB2;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    margin-left: 20px; /* Espace avec le menu */
    font-size: 12px;
}

.cta-button:hover {
    background: #563d7c;
}

/* 3. Hero Section */
.hero {
    position: relative; /* pour contenir les éléments animés */
    display: flex;
    height: auto;
    max-height: 500px; /* Bloque la hauteur max */
    justify-content: space-between;
    align-items: center;
    padding: 40px 10%;
    margin-top: -10px;
    margin-bottom: 0;
    overflow: hidden; /* ✂️ Coupe tout ce qui déborde */
}
   
.hero-description {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    max-width: 70%;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
/*
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    clip-path: ellipse(48% 60% at 50% 50%);
}
*/
.hero-content {
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
  max-width: 700px;
}

.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}


.hero h1 {
  font-size: 2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-top: 30px; /* ou autre valeur */
  margin-bottom: 10px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero h1 .highlight {
  font-weight: 600;
  background: linear-gradient(90deg, #c084fc, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #444;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.tagline-orbit {
  position: absolute;
  top: 40%;   /* monte un peu */
  left: 55%;  /* décalé à droite */
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  animation: rotateOrbit 12s linear infinite;
  z-index: 5;
}

.tagline-item {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #6D28D9;
    opacity: 0;
    animation: fadeText 6s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 0 0 4px rgba(109, 40, 217, 0.3); /* glow doux violet */
}

.item1 { top: 0px; left: 50%; transform: translate(-50%, -80%); animation-delay: 0s; }
.item2 { top: 50%; left: 100%; transform: translate(-40%, -50%); animation-delay: 1.5s; }
.item3 { bottom: 0px; left: 50%; transform: translate(-50%, 80%); animation-delay: 3s; }
.item4 { top: 50%; left: 0%; transform: translate(40%, -50%); animation-delay: 4.5s; }

@keyframes fadeText {
    0%, 15% { opacity: 0; transform: scale(0.9); }
    20%, 35% { opacity: 1; transform: scale(1); }
    40%, 100% { opacity: 0; }
}

@keyframes rotateOrbit {
  0% { transform: rotate(0deg) translate(-50%, -50%); }
  100% { transform: rotate(360deg) translate(-50%, -50%); }
}
.tagline-anim {
  animation: rotateOrbit 16s linear infinite;
}

/* 4. Boutons */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
    padding-left: 5px;
}

.btn-primary, .btn-secondary {
    padding: 6px 14px;  /* Réduit l’espace intérieur */
    font-size: 13px;    /* Légèrement plus petit */
    font-weight: 600;
    border-radius: 6px; /* Arrondi plus subtil */
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: white;
    color: #007bff;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: white;
}

/* Ajustement de la section de l'avatar */
.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-right: 40px; /* Espace à droite */
}

@keyframes moveAvatar {
    0%, 100% {
        transform: translateY(0); /* Position normale */
    }
    50% {
        transform: translateY(-10px); /* Monte légèrement */
    }
}

/* Ajustement de l’image Avatar */
.hero-image .avatar {
    width: 180px; /* Taille réduite */
    height: auto;
    object-fit: contain; /* Assure une bonne mise à l’échelle */
    display: block;
    border-radius: 0; /* Supprime le cercle */
    max-height: 350px; /* Limite la hauteur */
    animation: moveAvatar 2s infinite ease-in-out;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* SECTION COMPÉTENCES & STACK TECHNIQUE */
.competences-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 0;
    margin-top: 5px;
    background: none;
    border-radius: 0px;
    backdrop-filter: blur(4px); /* Flou doux du fond */
    box-shadow: 0 -4px 10px -6px rgba(0, 0, 0, 0.15); /* ombre vers le haut */
}

.competences-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 8%;
}

.competences-container.show,
.stack-technique.show {
    opacity: 1;
    transform: translateY(0);
}

.competences-list, .stack-technique {
    flex: 1;
    width: 45%;
    text-align: left;
    padding: 15px;
}

.competences-list h3, .stack-technique h3 {
    font-size: 1.2rem;
    color: #3a3a70;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.competences-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competences-list li {
    display: flex;
    align-items: center;
    gap: 12px; /* Légère séparation entre texte et barre */
    white-space: nowrap;
    margin-bottom: 12px;
    width: auto;
}

.competences-list li span {
    font-size: 1rem;
    white-space: nowrap;
    margin-right: 4px; /* Optionnel, à ajuster selon ton rendu */
}

.competences-list li::before {
    content: "✔️";
    margin-right: 10px;
    color: #7D5FB2;
}

.competences-container,
.stack-technique {
    opacity: 0;
    transform: translateY(40px); /* Décale vers le bas */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Style de la grille */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    position: relative;
    margin-top: 15px;
    width: fit-content;
}
.stack-technique {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stack-technique img {
    width: 50px; /* Réduction des logos */
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stack-technique img:hover {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
}

.stack-technique img.big-tech {
    width: 85px !important; /* Augmente la taille des icônes spécifiques */
    height: auto;
}

.progress-value {
    position: absolute;
    top: -20px;
    left: 100%;
    transform: translateX(-50%);
    font-size: 20px;
    /*font-weight: bold;*/
    color: #333;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
}

.progress {
    height: 100%;
    border-radius: 8px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
    min-width: 10%;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    max-width: 270px;
}

/* Correction des couleurs */
.progress.blue {
    background: linear-gradient(90deg, #4f7df9, #5468ff);
}
.progress.purple {
    background: linear-gradient(90deg, #a66dd4, #6a1b9a);
}
.progress.orange {
    background: linear-gradient(90deg, #ffa726, #f57c00);
}
.progress.green {
    background: linear-gradient(90deg, #66bb6a, #2e7d32);
}
.progress.yellow {
    background: linear-gradient(90deg, #ffeb3b, #fbc02d);
}

.tech-grid img {
    width: 40px;
    height: auto;
    animation: floatWave 2.5s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.tech-grid img[alt="databricks"] {
    width: 80px; /* Taille plus grande pour Databricks */
}
/* Tooltip */
.tech-grid img::after {
    content: attr(alt);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
/* Icônes spécifiques un peu plus grandes */
.tech-grid img.big-tech {
    width: 60px;
    height: auto;
}
/* Affichage du tooltip au survol */
.tech-grid img:hover::after {
    opacity: 1;
    visibility: visible;
}
/* Hover (ajoute un petit effet, mais ne casse pas l’animation) */
.tech-grid img:hover {
    opacity: 0.85;
    transform: scale(1.1) translateY(-10px);
}

/* Variation de délai pour créer l'effet de vague */
.tech-grid img:nth-child(odd) {
    animation-delay: 0s;
}
.tech-grid img:nth-child(even) {
    animation-delay: 1.25s;
  }
  
@keyframes floatWave {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* SECTION PROJETS */
.competences-container, .projects-container {
    max-width: 85%; /* Réduction de la largeur */
    margin: auto;
}

.competences-section h2, .projects-section h2 {
    font-size: 22px; /* Au lieu de 2.2rem */
}

.projects-section {
    text-align: center;
    padding: 80px 0;
    background: none;
    margin-top: 5px;
    border-radius: 0;
    box-shadow: 0 -4px 10px -6px rgba(0, 0, 0, 0.15); /* ombre vers le haut */
}

.projects-container {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 15px; /* Espacement entre les cartes */
    max-width: 1200px; /* Largeur max pour éviter l'étalement */
    margin: auto; /* Centre la section */
    overflow: hidden; /* Évite tout débordement */
    opacity: 0;
    transform: translateY(40px); /* Décale vers le bas */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.projects-container.show {
    opacity: 1;
    transform: translateY(0);
}

.project-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    margin-top: 0;
}
/* Réduction des cartes projets */
.project-card {
    display: flex;
    background: none;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 300px; /* Taille uniforme */
    max-width: 320px; /* Largeur max */
    min-width: 280px; /* Taille minimum */
    padding: 20px 15px;
    border-radius: 16px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 16px;
    color: #3a3a70;
    margin-bottom: 4px;
}

.project-card p {
    /*width: 280px; Taille plus compacte */
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-project {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    font-size: 14px;
    display: inline-block;
    width: auto;
    align-self: flex-start;
    margin: 0 auto;
}

.btn-project:hover {
    background-color: #0056b3;
}
/*modal*/
/* Masquer la modale par défaut */
.modal {
    display: none; /* Caché au chargement */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond flou */
    overflow: auto;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content h4 {
    margin: 10px 0 6px;
    font-size: 0.95rem;
    color: #333;
}
.modal-content ul.modal-tasks li {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Contenu de la modale */
.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px 24px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal-content p {
    font-size: 0.90rem;
    line-height: 1.4;
    margin: 0 0 15px;
    text-align: center;
    margin-bottom: 10px;
}
.modal-content ul.modal-tasks {
    padding-left: 15px;
    margin-bottom: 12px;
}

/* Affichage avec animation */
.modal.show {
    display: flex;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-content .close:hover {
    color: #e74c3c;
}

.modal-content p,
.modal-content ul.modal-tasks li {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.modal-content p,
.modal-content ul.modal-tasks li {
  text-wrap: balance;
}


/* 7. Footer Fixé en Bas */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    font-size: 14px;
    background-color: #f4f4f9;
    border-top: 2px solid #d3d3ea;
    margin-top: auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.8s ease-out;
    min-height: auto;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

/* Ajout d’un effet pulsant léger à l'ombre */
@keyframes pulseShadow {
    0% {
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.footer.show {
    animation: pulseShadow 2s infinite alternate;
}

.footer-left {
    width: 40%;
}

.footer-left h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.footer-left p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.footer-left, .footer-right {
    padding: 10px 0; /* Moins d’espace en haut et en bas */
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacement entre les icônes */
    margin-top: 8px;
}

.footer-icons a i {
    font-size: 1.3rem; /* Réduit la taille des icônes */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-icons a i:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-icons a img {
    width: 25px; /* Taille réduite */
    transition: transform 0.3s ease;
}

.footer-icons a img:hover {
    transform: scale(1.2);
}

/* Formulaire à droite */
.footer-right {
    width: 50%;
    text-align: left;
}

.footer-right-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
  
.calendly-link {
    color: #7D5FB2;              /* violet pour contraster */
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
  
.calendly-link:hover {
    color: #5c3d99;              /* un peu plus foncé au hover */
    text-decoration: none;       /* plus de souligné */
}
  
.contact-title {
    color: #2c2c2c;
    font-weight: 500;
    font-size: 1rem;
}
  
.separator {
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
    padding: 0 6px;
}
  
.down-arrow {
    display: inline-block;     /* nécessaire pour que l’animation fonctionne */
    font-size: 1.2rem;
    margin-left: 6px;
    /*animation: bounce 1.2s infinite;*/
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);  /* un petit rebond visible */
    }
}


/* Champs du formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Messages d'erreur sous chaque champ */
.error-message {
    color: red;
    font-size: 12px;
    display: none;
    margin: 0; /* Empêche d'ajouter un espace inutile */
    height: 14px; /* Fixe la hauteur pour éviter de décaler les champs */
}

/* Ajout d'une bordure rouge pour les erreurs */
.contact-form input.error,
.contact-form textarea.error {
    border: 1px solid red;
}

.contact-form button {
    background-color: #7D5FB2;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #563d7c;
}

/* Message de succès */
.success-message {
    color: green;
    font-size: 14px;
    display: none;
    height: 18px; /* Garde une hauteur fixe */
    margin-top: 5px;
    transition: opacity 0.3s ease-in-out;
}

.section-title, .section-context, .section-dashboards, .section-devops, .section-coming-soon {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9faff;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  }
  
  .dashboard-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .dashboard-img {
    max-width: 100%;
    width: 450px;
    border-radius: 10px;
    transition: transform 0.2s ease;
  }
  
  .dashboard-img:hover {
    transform: scale(1.05);
  }
  
  .btin {
    display: inline-block;
    padding: 10px 25px;
    color: white;
    background-color: #5468ff;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
  }
  
  .btin:hover {
    background-color: #4053d9;
  }
  
  pre {
    background-color: #eaeef6;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
  }

/* Animation d’ouverture */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Par défaut (desktop) */
.nav-items {
    display: flex;
    align-items: center;
}

.burger-menu {
    display: none;
}


/* 👇 On cache ce lien en dehors du mobile sur index.html */
@media screen and (min-width: 769px) {
    .mobile-only-link {
      display: none;
    }
}
  

@media screen and (max-width: 768px) {
    .contact-title-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
    
    .calendly-link {
        font-size: 1rem;
        color: #7D5FB2;
        font-weight: 600;
        text-decoration: none;
    }
    
    .calendly-link:hover {
        color: #5c3d99;
        text-decoration: none;
    }
    
    .contact-title {
        font-size: 1rem;
        color: #2c2c2c;
        font-weight: 500;
    }
    
    .separator {
        display: block;
        width: 100%;
        text-align: center;
        font-style: italic;
        color: #888;
        font-size: 0.95rem;
    }
    .contact-title {
        order: 1;
        font-size: 1rem;
        margin: 0;
    }
    .navbar {
        display: flex;
        padding: 10px 20px;
        align-items: center;
        justify-content: space-between;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }  
 
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 18px;
        height: 16px;
        cursor: pointer;
    }
      
    .burger-menu span {
        height: 2px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
    }

    .logo-db {
        font-size: 1.5rem; /* ou 1.2rem si tu veux un peu plus */
        font-weight: bold;
        text-decoration: none;
        white-space: nowrap;
    }
    .nav-items {
        display: none; /* CACHÉ PAR DÉFAUT */
    }
      
    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 50vw; /* drawer plus fin */
        background: white;
        display: flex;
        flex-direction: column;
        padding: 20px 16px;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        min-width: 250px;
    
        /* Clé pour que .nav-right fonctionne en absolute */
        overflow-y: auto;
        will-change: transform;
    }
      
    .nav-items.open {
        transform: translateX(0);
    }
      
      /* Liens navigation */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
        max-width: 100%;
    }
      
    .nav-links li a {
        font-size: 1.05rem;
        display: block;
        text-align: left;
        width: 100%;
        padding-left: 0;
        white-space: nowrap;
    }
      
    /* Affichage des boutons en bas du drawer */
    .nav-right {
        margin-top: auto; /* pousse vers le bas du drawer */
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-left: 10px; /* Même valeur que le reste de ton menu */
        padding-right: 10px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
      
    /* Bouton */
    .cta-button {
        font-size: 0.9rem;
        padding: 3px 8px;
        background: #7D5FB2;
        color: white;
        border-radius: 30px;
        font-weight: bold;
        white-space: nowrap;
        text-decoration: none;
        transition: background 0.3s;
        margin-left: 0; /* ← au cas où */
        width: auto;
        align-self: flex-start;
    }
    .language-switcher{
        width: 100%;
    }

    
    .cta-button:hover {
        background: #563d7c;
    }
    
    .language-switcher {
        width: 100%;
        white-space: nowrap;
    }
    
    .custom-select-wrapper {
        width: 100%;
    }
    
    .lang-select {
        width: 100%;
    }
  
    .hero {
        width: 100vw;
        flex-direction: row;
        padding: 20px 5%;
        height: auto;
        margin-top: 5px;
        gap: 20px;
        align-items: center;
        box-sizing: border-box;
        
    }
    .hero h1 {
        font-size: 1.6rem; /* Nom - réduit depuis 2.5rem */
        margin-bottom: 6px;
    }
    .hero h1 .highlight {
        font-size: 1.6rem;
        color: #a085ff;
    }

    .hero h2 {
        font-size: 1.1rem; /* Titre Data Engineer etc. */
        color: #666;
        margin-bottom: 10px;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.3;
        max-width: 100%;
        text-align: left;
    }

    .hero-image {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        max-width: 40%;
        padding-right: 8px;     /* espace entre l’image et le bord */
        margin-top: -30px;      /* remonte l’image légèrement */
    }    
    /*
    .hero-image {
        display: none;
    }
    */

    .hero-image .avatar {
        display: none;
    }

    .hero-image .avatar {
        width: 150px;
        max-width: 100%;
        border-radius: 10px;
    }

    .button-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
        flex-shrink: 0;
        max-width: 178px;
        overflow: hidden;
        text-overflow: ellipsis;
    }    

    /* SECTION COMPÉTENCES MOBILE */

    /* Écrasement TOTAL du style desktop */
    .competences-container {
        all: unset; /* ← supprime toutes les règles héritées */
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        padding: 0 12px;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }

    .competences-section {
        padding: 30px 16px 60px;
    }    

    #skills-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 20px;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .competences-list h3,
    .stack-technique h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
       

    .competences-list,
    .stack-technique {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        margin: 0;
    }    

    .competences-list ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .competences-list ul li {
        display: flex;
        align-items: center; /* et texte alignés verticalement */
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .competences-list li::before {
        content: ""; /* ← supprime l’emoji/picto */
        display: none; /* ← supprime complètement l’élément pseudo */
    }

    .competences-list span {
        font-size: 0.95rem;
        text-align: center; /* */
        margin-bottom: 4px;
        display: block;
    }    
    
    .progress {
        position: relative;
        height: 10px;
        border-radius: 4px;
        overflow: visible;
    }
      
      .progress-value {
        position: absolute;
        top: -18px; /* ← au-dessus de la barre */
        right: 0;
        font-size: 0.75rem;
        color: #333;
        background: transparent;
        padding: 0;
    }

    .progress {
        height: 100%;
        border-radius: 4px;
        position: relative;
    }  

    .tech-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);  /* ← 4 colonnes fixes */
        gap: 22px 24px; /* ← 20px vertical (entre lignes), 24px horizontal */
        justify-items: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
    }
      
    .stack-technique {
        margin-left: 0 !important;  /* <-- retire le décalage vers la droite */
        position: static !important;
    }

    .stack-technique h3 {
        font-size: 1.1rem;
        margin-bottom: 16px; /* ← espace entre le titre et les logos */
        text-align: center;
    }

    .tech-grid img {
        max-width: 40px;
        object-fit: contain;
        width: 36px;
        height: 40px;
    }
    .tech-grid img.big-tech {
        width: 50px;
    }

    .big-tech {
        max-width: 48px;
    }

    /* projets*/  
    .projects-section {
        padding: 50px 0 30px; /* Réduction des marges top/bottom */
        /*background: linear-gradient(to right, #e3eaf8, #ffffff);*/
    }

    #projects-title {
        font-size: 22px;
        margin-bottom: 20px;
        margin-top: 0;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        gap: 12px;
    }
      
    .project-card {
        all: unset;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 95%;
        margin: auto;
        padding: 12px;
        border-radius: 10px;
        background: white;
        box-sizing: border-box;
        text-align: center;
    }

    .btn-project {
        width: 100%;
        font-size: 14px;
        padding: 8px 0;
        margin-top: 8px;
        margin-bottom: 0;
        align-self: stretch; /* au lieu de center */
    }  
    
    .project-card h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .project-date {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    .project-card p {
        font-size: 12px;
        margin-bottom: 10px;
        flex-grow: 0 !important; /* empêche l’extension inutile */
    }

    .modal-content {
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 16px 14px;
        font-size: 0.9rem;
    }
    
    .modal-content h4 {
        font-size: 0.95rem;
        margin: 12px 0 6px;
    }
    
    .modal-content p,
    .modal-content ul.modal-tasks li {
        font-size: 0.87rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .modal-content ul.modal-tasks {
        padding-left: 18px;
    }
    
    .modal-content .close {
        font-size: 24px;
        top: 12px;
        right: 16px;
    }

    /*footer*/
    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }
      
    .footer-left,
    .footer-right {
        width: 100%;
    }
      
    .footer-left h3,
    .footer-left p,
    .footer-icons {
        margin-bottom: 12px;
    }

    .footer-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
      
    .footer-icons a {
        margin: 0 10px;
    }
      
    .contact-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contact-title {
        text-align: center;
    }
      
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        font-size: 14px;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }
      
    .contact-form textarea {
        min-height: 100px;
        resize: vertical;
    }
      
    .contact-form button {
        padding: 10px;
        font-size: 15px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }
      
    .contact-form button:hover {
        background-color: #0056b3;
    }
      
    .success-message,
    .error-message {
        font-size: 13px;
        color: green;
        text-align: center;
    }
      
}

/* En mobile : on masque totalement */
@media screen and (max-width: 768px) {
  .tagline-orbit {
    display: none !important;
  }
}

@media screen and (max-width: 350px) {
    .tech-grid {
      grid-template-columns: repeat(3, 1fr);
    }
}

/* Le bouton thème lui-même */
.theme-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
}

.nav-theme {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 32px; /* espace à droite pour qu’il ne soit pas collé */
}

/* Ajustement pour mobile */
@media screen and (max-width: 768px) {
  .nav-theme {
    position: absolute;
    right: 32px;  /* moins extrême que 0, pour le rendre bien visible */
    top: 24px;
    z-index: 1001; /*s'assurer qu’il passe devant le drawer */
  }

  .theme-btn {
    font-size: 18px;
  }
}

