/* ==========================================
1. VARIABLES & RESET
========================================== */
:root {
  --bleu-tech: #0f2b46; /* Bleu pro pour l'ingénierie/import */
  --vert-durable: #10b981; /* Vert moderne pour les énergies */
  --gris-fond: #f9fafb; /* Fond clair et épuré */
  --blanc: #ffffff;
  --texte-sombre: #1f2937; /* Texte foncé pour une bonne lecture */
  --texte-clair: #4b5563;
  --pourpre-logo: #6b0f4c; /* Le pourpre/bordeaux de ton logo */
  --bleu-logo: #1e3a8a; /* Le bleu marine de ton logo */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--texte-sombre);
  padding-top: 70px; /* Évite que le header fixe ne cache le haut */
  
  /* CONFIGURATION DE L'ARRIÈRE-PLAN GLOBAL */
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("../img/Lehavre_arriere_plan.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* L'image reste fixe pendant le défilement */
}

/* ==========================================
2. BARRE DE NAVIGATION (HEADER)
========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bleu-tech); /* Optionnel : fond sombre pour faire ressortir l'écriture blanche */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.company-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--blanc); /* Nom de l'entreprise en blanc pour s'accorder au menu */
  letter-spacing: 1px;
}

nav a {
  text-decoration: none;
  color: var(--blanc); /* MODIFICATION : Écritures du menu en blanc */
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding-bottom: 4px;
}

nav a:hover, nav a.active {
  color: var(--vert-durable); /* S'illumine en vert durable au survol */
  border-bottom: 2px solid var(--vert-durable);
}
/* ==========================================
   3. SECTION HERO (ACCROCHE - DEVENUE TRANSPARENTE)
   ========================================== */
.hero {
  background: transparent;
  color: var(--texte-sombre);
  padding: 6rem 5%;
  text-align: center;
}

.ecran-accueil, .hero-havre {
  position: relative;
  background: transparent; /* On enlève l'image d'ici */
  height: calc(100vh - 70px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--texte-sombre); /* Texte en sombre pour trancher sur le fond clair */
  z-index: 1;
}

/* On désactive le filtre sombre qui n'est plus nécessaire ici */
.ecran-accueil::before, .hero-havre::before {
  display: none;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  color: var(--bleu-tech); /* Utilise ton bleu technologique pour le titre principal */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--texte-clair);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background-color: var(--vert-durable);
  color: var(--blanc);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-cta:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* ==========================================
   4. SECTION DES 3 PÔLES
   ========================================== */
.poles {
    padding: 5rem 5%;
    text-align: center;
}

.poles h2 {
    font-size: 2rem;
    color: var(--bleu-tech);
    margin-bottom: 3rem;
    position: relative;
}

.poles h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--vert-durable);
    margin: 0.5rem auto 0 auto;
}

.poles-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pole-card-link {
    text-decoration: none;
    color: inherit;        
    display: block;        
}

.pole-card {
    background-color: var(--blanc);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    flex: 1;
    min-width: 280px; 
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-top: 4px solid var(--bleu-tech); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pole-card:nth-child(2) {
    border-top-color: var(--vert-durable);
}

.pole-card-link:hover .pole-card {
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.08); 
}

.pole-card h3 {
    margin-bottom: 1rem;
    color: var(--bleu-tech);
    font-size: 1.3rem;
}

.pole-card p {
    color: var(--texte-clair);
    font-size: 0.95rem;
}

/* ==========================================
   5. PROFIL DE L'ENTREPRISE & GRILLES
   ========================================== */
.profile-section {
    padding: 5rem 5%;
    background-color: var(--blanc);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-tagline {
    color: var(--pourpre-logo); 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.profile-text h2 {
    font-size: 2.2rem;
    color: var(--bleu-logo); 
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.profile-text .highlight {
    color: var(--pourpre-logo);
}

.profile-description {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: #f8fafc; 
    border-left: 4px solid var(--bleu-logo);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stat-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--bleu-logo);
    font-size: 1.15rem;
}

.stat-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-profile-section {
    padding: 5rem 5%;
    background-color: var(--blanc);
}

.profile-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-header-center h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.profile-subtitle {
    font-style: italic;
    color: var(--texte-clair);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.profile-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.profile-card-item {
    background: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.profile-card-content {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.profile-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 56px;
}

.profile-card-content p {
    font-style: italic;
    color: var(--texte-clair);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   6. SECTION SERVICES (ACCORDÉONS & GRILLES)
   ========================================== */
.services-hero {
  background: linear-gradient(rgba(15, 43, 70, 0.9), rgba(15, 43, 70, 0.9));
  color: var(--blanc);
  padding: 6rem 5%;
  text-align: center;
}
.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.services-main-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.accordion-item {
    background-color: var(--blanc);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: var(--blanc);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #fcfcfd;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.p-icon {
    font-size: 2rem;
}

.accordion-header h2 {
    color: var(--bleu-tech);
    font-size: 1.5rem;
    margin: 0;
}

.arrow {
    font-size: 1.5rem;
    color: var(--texte-clair);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    padding: 0 2rem 2.5rem 2rem;
    transition: max-height 0.8s cubic-bezier(1, 0, 1, 0);
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
    color: var(--vert-durable);
}

.sub-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ==========================================
   7. STRUCTURE CARTES PROJETS & BADGES
   ========================================== */
.projects-section {
    padding: 6rem 5%;
    background-color: var(--gris-fond);
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-header h2 {
    font-size: 2.2rem;
    color: var(--bleu-tech);
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 43, 70, 0.08);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #e5e7eb;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--blanc);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
}

.project-badge.import { background-color: #3b82f6; }
.project-badge.tech { background-color: #8b5cf6; }
.project-badge.predict { background-color: #ef4444; }
.project-badge.durable { background-color: #10b981; }
.project-badge.export { background-color: #f59e0b; }
.project-badge.medical { background-color: #06b6d4; }

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--bleu-tech);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.project-content p {
    color: var(--texte-clair);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   8. ASSISTANT IA GEMINI
   ========================================== */
.ai-assistant-section {
    padding: 3rem 5%;
    background-color: #f8fafc;
}

.ai-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--blanc);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ai-header h3 {
    color: var(--bleu-logo);
    margin: 0;
    font-size: 1.3rem;
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.ai-instruction {
    color: var(--texte-clair);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.ai-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#ai-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#ai-input:focus {
    border-color: var(--pourpre-logo);
    outline: none;
}

#ai-submit-btn {
    background-color: var(--pourpre-logo);
    color: var(--blanc);
    border: none;
    padding: 0 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#ai-submit-btn:hover {
    background-color: #520b3a;
}

#ai-response-box {
    background-color: #f1f5f9;
    border-left: 4px solid var(--bleu-logo);
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.ai-avatar {
    font-weight: bold;
    color: var(--bleu-logo);
    margin-bottom: 0.5rem;
}

/* ==========================================
   9. PAGE À PROPOS & TIMELINE
   ========================================== */
.apropos-hero {
    background: linear-gradient(rgba(15, 43, 70, 0.9), rgba(15, 43, 70, 0.9));
    color: var(--blanc);
    padding: 6rem 5%;
    text-align: center;
}

.apropos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.timeline-section h2, .team-section h2 {
    color: var(--bleu-tech);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.story-block {
    text-align: center;
    font-size: 1.1rem;
    color: var(--texte-sombre);
    margin-bottom: 3rem;
}

.story-block p {
    margin-bottom: 1rem;
}

.timeline {
    border-left: 3px solid var(--vert-durable);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.65rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--blanc);
    border: 3px solid var(--vert-durable);
    border-radius: 50%;
}

.timeline-date {
    font-weight: bold;
    color: var(--bleu-tech);
    margin-bottom: 0.5rem;
}

.team-section {
    background-color: var(--blanc);
}

.team-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--texte-clair);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-card {
    background-color: var(--gris-fond);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.team-card h3 {
    color: var(--bleu-tech);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--vert-durable);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================
   10. PAGE CONTACT
   ========================================== */
.contact-hero {
    background-color: #f3f4f6;
    padding: 4rem 5%;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.contact-hero h1 {
    color: var(--bleu-tech);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: var(--bleu-tech);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--texte-clair);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item strong {
    color: var(--bleu-tech);
    display: inline-block;
    width: 140px;
}

.contact-form-wrapper {
    flex: 1.5;
    background-color: var(--blanc);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2 {
    color: var(--bleu-tech);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--texte-sombre);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--texte-sombre);
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--bleu-tech);
}

.btn-submit {
    background-color: var(--bleu-tech);
    color: var(--blanc);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #1e40af;
}

/* ==========================================
   11. FOOTER
   ========================================== */
footer {
    background-color: var(--bleu-tech);
    color: var(--blanc);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================
   12. RESPONSIVE (MOBILE & TABLETTE)
   ========================================== */
@media (max-width: 1024px) {
    .profile-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 1rem;
    }
    
    body {
        padding-top: 130px; /* Adapte l'espace car le header mobile devient plus grand */
    }

    nav a {
        margin: 0 1rem;
    }

    .ecran-accueil, .hero-havre {
        height: calc(100vh - 130px);
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .profile-container, .contact-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
    }

    .profile-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card-img {
        height: 200px;
    }

    .timeline {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    .timeline-item::before {
        display: none;
    }
    .timeline-item {
        background-color: var(--blanc);
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
} /* <-- fermeture du @media (max-width: 768px), elle manquait */

/* ==========================================
   13. SECTION CONSTELLATION DE PROJETS (ARTISTIQUE)
   ========================================== */
.projets-artistiques {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.projets-artistiques h2 {
    text-align: center;
    color: var(--blanc); /* Ressort sur l'arrière-plan */
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 4rem;
}

/* Conteneur principal */
.constellation-container {
    position: relative;
    width: 100%;
    height: 1050px; /* Grand espace pour l'asymétrie */
    max-width: 1200px;
    margin: 0 auto;
}

/* Le fil conducteur d'arrière-plan */
.constellation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Chaque bloc projet */
.noeud-projet {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    width: 240px;
}

/* Le rond avec l'image */
.bulle-projet {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--bleu-tech);
    border: 4px solid var(--blanc);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* Badge d'année accroché à la bulle */
.badge-annee {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: var(--vert-durable);
    color: var(--blanc);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Encadré d'information sous la bulle : caché par défaut, révélé au survol */
.info-bulle {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    margin-top: 10px;
    width: 230px;
    background-color: rgba(255, 255, 255, 0.97);
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.info-bulle h4 {
    font-size: 0.85rem;
    color: var(--bleu-tech);
    margin-bottom: 4px;
    font-weight: bold;
}

.info-bulle p {
    font-size: 0.75rem;
    color: var(--texte-clair);
    line-height: 1.2;
}

/* Effets de survol */
.noeud-projet:hover .bulle-projet {
    transform: scale(1.15);
    border-color: var(--vert-durable);
}

.noeud-projet:hover .info-bulle,
.noeud-projet:focus-within .info-bulle {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Version Mobile : On passe en liste propre car les positions absolues ne fonctionnent pas sur smartphone */
@media (max-width: 768px) {
    .constellation-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .constellation-svg {
        display: none; /* Cache le trait sur mobile */
    }
    
    .noeud-projet {
        position: static !important;
        width: 100%;
        flex-direction: row;
        gap: 1.5rem;
    }

    .bulle-projet {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .info-bulle {
        position: static;
        margin-top: 0;
        text-align: left;
        flex: 1;
        width: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}