/* ===================================
   🎯 PSIQUANT – STYLE GLOBAL MODERNE
   =================================== */

/* 🔧 Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  /* === Colors === */
  --primary: #004bff;
  --accent: #2dd4bf;
  --dark: #0b1724;
  --light-bg: #f8fafc;
  --text-primary: #0b1724;
  --text-secondary: #6b7280;
  --text-light: #ffffff;
  --border-color: rgba(0,0,0,0.05);

  /* === Sizing & Spacing === */
  --radius: 8px;
  --transition: all 0.3s ease;
  --container-max: 1200px;
}

/* ==============================
   🌑 Body & Layout
============================== */
body {
  background: var(--light-bg);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   🧭 Header / Navigation
============================== */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--text-light);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.nav-logo img {
  height: 32px;
  margin-right: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  background: var(--primary);
  color: var(--text-light);
  transition: var(--transition);
 box-shadow: 0 4px 12px rgba(0, 75, 255, 0.2); /* Ajoute une ombre cohérente */
}

.cta-btn:hover {
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.4); /* Ombre plus intense avec l'accent */
  /* Ajouter une légère transformation pour l'effet "clic" */
  transform: translateY(-2px);
}

/* Ajout à votre styles.css pour les boutons avec icône */
.btn-primary {
  /* ... autres styles de cta-btn ... */
  display: inline-flex; /* Permet d'aligner le texte et l'icône */
  align-items: center;
}

.arrow-icon {
  margin-left: 8px; /* Espace entre le texte et la flèche */
  font-size: 1.1em;
  transition: transform 0.3s ease; /* Transition pour l'animation */
}

/* Animation au survol */
.btn-primary:hover .arrow-icon {
  transform: translateX(4px); /* La flèche "sort" du bouton */
}
/* === Mobile Menu === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  height: 3px;
  width: 24px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  nav ul {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--text-light);
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    transform: translateY(-100%);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  nav ul.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions { display: none; }
}

/* ==============================
   🏠 Main Content
============================== */
main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem;
}

/* ==============================
   🎨 Hero Section
============================== */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-ctas a {
  margin-right: 1rem;
}

.hero-image img {
  max-width: 500px;
}

/* ==============================
   📊 Trust Section
============================== */
.trust {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(0, 75, 255, 0.05);
  border-radius: var(--radius);
  margin: 3rem 0;
}

.trust-grid h2 {
  font-size: 2rem;
  color: var(--primary);
}

.trust-grid p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==============================
   🛠 Services / Expertise
============================== */
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.services-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 250px;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--text-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card img {
  height: 64px;
  margin-bottom: 1rem;
}

/* ==============================
   🖼 Projects Preview
============================== */
/* ===================================
   📂 Projects Page Styles
   =================================== */

.projects-header {
    padding: 2rem 0 3rem 0;
    text-align: center;
}

.projects-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle-project {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 4rem;
}

/* Style de la nouvelle carte de projet (Split) */
.project-card-split {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--text-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary); /* Accentuation Quant */
    transition: var(--transition);
}

.project-card-split:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-details {
    flex: 2; /* Donne plus d'espace au texte */
}

.project-details h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.project-meta {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-details p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem; /* Assure un espace clair après le paragraphe de description */
}

/* Style du bouton secondaire (lien vers GitHub/Colab) */
.btn-secondary-link {
    background: none;
    color: var(--dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-secondary-link:hover {
    background: var(--light-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Bloc visuel */
.project-visual {
    flex: 1;
    position: relative;
    max-width: 300px;
    text-align: center;
}

.project-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.visual-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dark);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}


/* Responsive pour Projets */
@media (max-width: 900px) {
    .project-card-split {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 2rem;
    }

    .project-visual {
        max-width: 100%;
        order: -1; /* Place l'image en haut sur mobile */
    }

    .project-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ===================================
   🔬 Lab Report / Projet Détaillé Styles - VERSION AJUSTÉE
   =================================== */

/* ----------------------------------
   Section 1 : HERO du Projet (Hérite du dark background de base, mais s'assure de l'overflow)
   ---------------------------------- */
.project-detail-hero {
    background: var(--dark);
    color: var(--text-light);
    /* Utilisation de l'unité viewport (vw) pour une intégration plus dynamique */
    padding: 4rem 5vw;
    /* Le décalage est géré dans le conteneur principal si nécessaire */
}

.project-header-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Le bandeau de catégorie utilise une couleur vive pour l'impact */
.project-category {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.project-detail-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-summary {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 900px;
    margin-bottom: 2rem;
}

.project-meta-badges {
    display: flex;
    gap: 10px;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ----------------------------------
   Section 2 : CONTENU DÉTAILLÉ (Blog-like)
   ---------------------------------- */
.project-detail-body {
    max-width: 850px; /* Légèrement plus large pour les graphiques */
    margin: 4rem auto;
    padding: 0 1rem;
}

.detail-section {
    margin-bottom: 4rem;
}

/* Style de titre de section technique */
.detail-section h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 1.5rem;
    /* Assure que le h2 est en couleur principale ou sombre */
    color: var(--dark);
}

/* Liste à puces pour l'implémentation */
.detail-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.detail-section ul li {
    position: relative;
    padding-left: 1.5em; /* Espace pour le bullet custom */
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-primary);
}

.detail-section ul li::before {
    content: "→"; /* Flèche pour un look plus technique */
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Pour les équations et visuels */
.math-formula-box, .visual-placeholder {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius);
    text-align: center;
    overflow-x: auto; /* Important pour les formules longues sur mobile */
}

/* ----------------------------------
   Section 3 : CALL TO ACTION / ACCÈS AU CODE
   ---------------------------------- */
.code-access-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary);
    color: var(--text-light);
    margin-top: 4rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Nouveau style pour le bouton secondaire/Colab */
.code-access-cta .btn-secondary-lab {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--dark);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.code-access-cta .btn-secondary-lab:hover {
    background: var(--text-light);
    color: var(--primary);
    border-color: var(--text-light);
}

/* Le bouton btn-primary dans cette section reste inchangé (blanc/transparent au hover) */

/* Responsive (inchangé) */
@media (max-width: 700px) {
    /* ... (règles responsive précédentes si nécessaire) ... */
    .project-detail-hero h1 {
        font-size: 2rem;
    }
    .code-access-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* ===================================
   🎥 Video Thumbnail Styles (Ajouté pour projects.html)
   =================================== */
/* Assurer que l'iframe prend la place de l'ancienne image */
.thumbnail-video-iframe {
    width: 100%;
    /* Utiliser un ratio 16:9 (largeur/1.777) ou une hauteur fixe */
    height: 168px; /* Correspond à un ratio 16:9 pour 300px de large */
    display: block;
    pointer-events: none; /* Désactive la lecture dans la miniature elle-même */
    border-radius: var(--radius);
}
/* CONTENEUR PRINCIPAL DE LA VIGNETTE */
.project-visual-actions {
    flex: 1;
    max-width: 300px; /* **CONTRAINTE DE LARGEUR CRUCIALE** */
    min-width: 250px; /* Empêche l'image d'être trop petite */
    text-align: center;
    position: relative;
}

/* Vignette cliquable (le lien) */
.video-thumbnail {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
     pointer-events: auto; /* Autorise le clic sur le lien */
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

/* L'image miniature elle-même */
.video-thumbnail img {
    width: 100%; /* **FORCE L'IMAGE À REMPLIR 100% DE SON CONTENEUR (300px max)** */
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover img {
    opacity: 0.7; /* Assombrir légèrement au survol */
}

/* L'ICÔNE DE LECTURE (▶) */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem; /* Contrôle la taille du caractère '▶' */
    color: white;
    background: rgba(0, 75, 255, 0.7); /* Couleur de fond de l'icône */
    border-radius: 50%;
    width: 60px; /* Taille fixe pour l'icône */
    height: 60px; /* Taille fixe pour l'icône */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    transition: background 0.3s ease;
        z-index: 10; /* Assure que l'icône est au-dessus de l'iframe */
    pointer-events: none; /* Laisse le clic passer à l'élément <a> */
}

.video-thumbnail:hover .play-icon {
    background: var(--accent); /* Devient accent au survol */
}

/* AJUSTEMENT RESPONSIVE (Dans la @media (max-width: 900px) ) */
/* Assurez-vous que cette règle est présente dans votre bloc @media(max-width: 900px) */

.project-visual-actions {
    max-width: 100%; /* S'étend sur toute la largeur de l'écran */
    min-width: auto;
    order: -1;
    margin-bottom: 1.5rem;
}



/* AJOUTS/MODIFICATIONS POUR L'IFRAME EN VIGNETTE */

/* ===================================
   📰 Insights / Publications Styles
   =================================== */

.insights-hero {
    padding: 3rem 0;
    text-align: center;
}

.insights-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle-insights {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.insights-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille flexible */
    gap: 2rem;
    padding: 2rem 0 4rem 0;
}

.insight-card {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.insight-category {
    color: var(--accent);
    font-weight: 600;
}

.insight-date {
    color: var(--text-secondary);
}

.insight-card h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

.insight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-link {
    color: var(--primary);
    font-weight: 600;
    display: block; /* S'assure qu'il est sur une ligne propre */
}

.read-more-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Responsive (Ajustement mineur pour les très petits écrans si nécessaire) */
@media (max-width: 600px) {
    .insights-list-grid {
        grid-template-columns: 1fr;
    }
}
/* ==============================
   🎯 Engagement / Quiz
============================== */
.engagement {
  text-align: center;
  padding: 4rem 1rem;
  background: rgba(45, 212, 191, 0.08);
  border-radius: var(--radius);
}

.engagement h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.engagement p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ==============================
   👣 Footer
============================== */
footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

footer a {
  color: var(--text-light);
}

footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==============================
   🔄 Scroll Animations
============================== */
section.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

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

/* ==============================
   📱 Responsive
============================== */
@media(max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 100%;
  }

  .services-grid, .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    flex: 1 1 80%;
  }
}

/* Amélioration de la section Hero pour grand écran */
@media (min-width: 1200px) {
  .hero-text h1 {
    font-size: 3.5rem; /* Augmente la taille pour un impact maximal */
    font-weight: 800; /* Rend le titre plus massif */
  }
}

.hero-text p {
  /* Assure que la couleur secondaire est un peu plus douce */
  color: #475569;
  max-width: 550px; /* Limite la largeur pour une meilleure lisibilité */
}





/* ===================================
   🧑‍💻 About Page Styles (about.html)
   =================================== */

/* ----------------------------------
   Section 1: HERO / PORTRAIT (Split)
   ---------------------------------- */
.about-hero-split {
    padding: 3rem 0;
}

.split-content-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start; /* Alignement en haut pour le texte */
}

/* Bloc Texte */
.about-text-intro {
    flex: 1;
    padding-right: 2rem;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-header .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent); /* Barre d'accentuation moderne */
    padding-left: 10px;
}

.bio-intro p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-links {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    /* On utilise ici un style de bouton secondaire pour LinkedIn */
}

.btn-secondary {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: var(--accent); /* Changement clair de couleur (Bleu -> Turquoise) */
    /* Soulever le bouton */
    transform: translateY(-2px);
    /* Augmenter l'ombre pour l'effet de profondeur */
    box-shadow: 0 6px 15px rgba(45, 212, 191, 0.5);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Bloc Image / Portrait */
.about-photo-module {
    flex: 1;
    position: relative;
    max-width: 450px;
    margin-top: 1rem;
}

.about-photo-module img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Ombre pro et subtile */
    z-index: 2;
    position: relative;
}

/* Ajout d'un élément décoratif pour l'image (effet asymétrique) */
.about-photo-module::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    top: -20px;
    right: -20px;
    border-radius: var(--radius);
    z-index: 1;
    opacity: 0.4;
}

.about-photo-module .caption {
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ----------------------------------
   Section 2: AXES DE RECHERCHE (Pillars)
   ---------------------------------- */
.expertise-pillars {
    margin: 5rem 0;
    padding: 3rem 0;
    text-align: center;
    background-color: var(--light-bg);
}

.expertise-pillars h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.pillar-card {
    flex: 1 1 300px;
    padding: 2.5rem;
    background: var(--text-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary); /* Accent de couleur pour le focus */
    transition: var(--transition);
    text-align: left;
}

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

.pillar-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pillar-card p {
    color: var(--text-secondary);
}

/* ----------------------------------
   Section 3: CTA Final
   ---------------------------------- */
.about-final-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--dark);
    color: var(--text-light);
    border-radius: var(--radius);
    margin: 4rem 0 2rem 0;
}

.about-final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-final-cta p {
    color: #cbd5e1; /* Gris clair sur fond sombre */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Les boutons .btn-primary sont stylisés dans base.html/styles.css */

/* ----------------------------------
   Responsive Design
   ---------------------------------- */
@media (max-width: 900px) {
    .split-content-container {
        flex-direction: column;
        gap: 3rem;
    }

    .about-text-intro {
        padding-right: 0;
    }

    .about-photo-module {
        max-width: 100%;
        margin-top: 0;
    }

    .about-photo-module::before {
        /* Simplification de l'effet décoratif sur mobile */
        display: none;
    }

    .pillars-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pillar-card {
        text-align: center;
        border-top: none;
        border-left: 4px solid var(--primary); /* Déplacer l'accentuation à gauche */
    }

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

/* ===================================
   🧭 Roadmap / Timeline Styles
   =================================== */

.roadmap-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--text-light); /* Fond blanc ou très clair */
}

.roadmap-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    max-width: 800px; /* Largeur limitée pour le centrage */
    margin: 0 auto;
    padding-top: 2rem;
}

/* Ligne centrale de la timeline */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color); /* Ligne discrète */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 0;
}

/* Chaque étape de la timeline */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
}

/* Placer les items à gauche et à droite */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Point de la timeline (le rond) */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 3px solid var(--text-light); /* Bordure blanche pour se démarquer de la ligne */
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Positionnement du point pour les items pairs/impairs */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Contenu de la carte */
.timeline-content {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.timeline-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: inline;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
}


/* ----------------------------------
   Responsive pour la Roadmap
   ---------------------------------- */
@media (max-width: 700px) {
    .timeline-container::after {
        left: 31px; /* Déplacer la ligne à gauche */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px; /* Plus d'espace pour le point */
        padding-right: 25px;
        left: 0 !important; /* Forcer tous les items à gauche */
        text-align: left !important;
    }

    /* Déplacer les points à gauche pour tous les items */
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        right: auto;
    }
}




/* ===================================
   📞 Contact Page Styles (contact.html) - MINIMALISTE
   =================================== */

.contact-hero-section {
    padding: 3rem 0;
    text-align: center;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle-contact {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* ----------------------------------
   Bloc Centralisé d'Information
   ---------------------------------- */
.contact-info-central {
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    margin: 3rem 0 6rem 0; /* Donner de l'espace */
}

.contact-card-direct {
    max-width: 500px; /* Taille limitée pour un effet de carte */
    width: 100%;
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Ombre plus marquée pour le focus */
    text-align: left;
}

.contact-card-direct h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-card-direct p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Barre d'accentuation pour le style pro */
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary);
}

.info-link {
    font-weight: 500;
}

.info-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.note-disclaimer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

/* ----------------------------------
   Responsive (S'assure que la carte ne soit pas trop étroite)
   ---------------------------------- */
@media (max-width: 600px) {
    .contact-card-direct {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
}



/* ===================================
   🧪 PsiQuant Lab Styles (lab.html)
   =================================== */

.lab-hero {
    padding: 2rem 0;
    text-align: center;
}

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

.subtitle-lab {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Grille Principale (Split) */
.quant-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 pour les paramètres, 2/3 pour les résultats */
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Panneau de Contrôle/Paramètres */
.parameters-panel {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.parameters-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.parameters-panel .form-group {
    margin-bottom: 1rem;
}

.parameters-panel label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.control-select, .control-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--light-bg);
    font-size: 1rem;
}

.run-btn {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1.5rem;
}

.loading-text {
    text-align: center;
    color: var(--accent);
    margin-top: 1rem;
    font-weight: 600;
}

/* Panneau de Résultats */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.data-results, .visual-dashboard {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.data-results h2, .visual-dashboard h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.context-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Style de la table des résultats pour un look "data grid" */
.data-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.data-results th, .data-results td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-results th {
    background-color: var(--light-bg);
    font-weight: 700;
    color: var(--primary);
}

.data-results tr:hover {
    background-color: #f0f4f8; /* Léger survol pour l'UX */
}

/* Responsive */
@media (max-width: 900px) {
    .quant-dashboard-grid {
        grid-template-columns: 1fr; /* Empilement sur mobile */
    }
}





/* ===================================
   ⚡ Energy Lab (HPFC) Specific Styles
   =================================== */

.energy-lab-hero {
    padding: 2rem 0;
    text-align: center;
}

.lab-introduction-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.intro-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Texte à gauche, CTA à droite */
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.hpfc-description-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hpfc-description-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.key-features-list {
    list-style: none;
    padding-left: 0;
}

.key-features-list li {
    background-color: var(--light-bg);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* CTA pour l'accès à l'outil */
.access-cta-panel {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.access-cta-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cta-note {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Section Architecture */
.architecture-diagram-placeholder h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.mermaid-diagram-box {
    background-color: var(--dark);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    overflow-x: auto;
    font-family: monospace;
}

/* Section Application de Pricing */
.pricing-application-section {
    padding: 4rem 0;
}

.pricing-application-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.application-summary {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.options-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.option-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent);
}

.option-card.peakload { border-color: var(--primary); }
.option-card.night { border-color: var(--accent); }

.option-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.option-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.option-card ul {
    list-style: none;
    padding-left: 0;
}

.option-card ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Zone d'Analyse */
.pricing-analysis-results h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.analysis-visual-placeholder {
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin: 2rem 0;
    border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 900px) {
    .intro-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .options-comparison-grid {
        grid-template-columns: 1fr;
    }
}




/* ===================================
   🧠 Quiz / Profiling Styles
   =================================== */

.quiz-container-section {
    padding: 3rem 0;
    text-align: center;
}

.subtitle-quiz {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.quiz-content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: left;
}

#quiz-area h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    min-height: 50px; /* Assure que le titre ne bouge pas si la question est courte */
}

/* Style des options de réponse */
.answer-option {
    display: block;
    background-color: var(--light-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.answer-option:hover {
    background-color: #f0f4f8;
    border-color: var(--primary);
}

/* Visuel de sélection (Ajout d'une classe via JS) */
.answer-option.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

/* Contrôles et Progression */
.quiz-controls {
    text-align: right;
    margin-top: 2rem;
}

#next-btn {
    padding: 0.75rem 2rem;
}

#progress-bar-container {
    height: 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
    position: relative;
}

#progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

#progress-text {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}






/* ===================================
   🎥 Video Player Focus Styles (Look "Stanford")
   =================================== */

.video-player-focus {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto; /* Centrer le contenu */
    text-align: center;
}

.video-header-info {
    margin-bottom: 2rem;
}

.video-player-focus h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.video-meta {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.video-meta-time {
    font-weight: 600;
    color: var(--accent);
}

/* Conteneur pour l'iframe vidéo (Assure le responsive) */
.video-container-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 (9 / 16 * 100) */
    height: 0;
    overflow: hidden;
    margin-bottom: 3rem;
    background: black; /* Fond noir pendant le chargement/si pas de vidéo */
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.responsive-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenu d'accompagnement */
.video-companion-content {
    text-align: left;
    padding: 0 1rem;
}

.video-companion-content h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
}

.video-companion-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.video-resources-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    .video-resources-links {
        flex-direction: column;
    }
    .video-player-focus h1 {
        font-size: 1.6rem;
    }
}








/* Améliore la fluidité de tous les défilements (Scroll-Snap est désactivé ici) */
html {
    scroll-behavior: smooth;
    /* Assure que le défilement sur les périphériques tactiles est agréable */
    -webkit-overflow-scrolling: touch;
}