/* ----- FORCE TOUTE LARGEUR ET HAUTEUR ----- */
html {
    scroll-behavior: smooth;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ----- BODY NORMAL ----- */
body {
  position: relative;
  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;
}
/*
.decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 1;
}
*/
.decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.decor-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating.icon2 {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 280px !important;
  height: 200px !important;
  object-fit: fill !important;
  opacity: 1 !important;
  display: block !important;
  z-index: 10;
  border: 2px dashed lime; /* pour vérif visuelle */
}

.decor-left {
  left: 0;
}

.decor-right {
  right: 0;
}

.decor img.floating {
  position: absolute;
  object-fit: contain;
  opacity: 0.9;
  animation: float 5s ease-in-out infinite;
}

/*
.decor img.floating.svg-colored {
  filter: invert(48%) sepia(56%) saturate(420%) hue-rotate(160deg) brightness(95%) contrast(92%);
}
*/
.decor-left .icon1 {
  top: 18%;
  left: 40px;
}

.decor-left .icon3 {
  top: 28%; /*avant c'était 33%, rapproché */
  left: 200px;
}

.decor-right .icon1 {
  top: 18%;
  right: 40px;
  width: 140px;
}

.decor-right .icon2 {
  top: 38%; /*rapproché */
  right: 15px;
}

.decor-right .icon3 {
  top: 28%; /* rapproché */
  right: 200px;
}

.decor-right .icon4 {
  top: 10%; /* rapproché */
  right: 200px;
}

/*
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.decor img.floating {
  animation: float 5s ease-in-out infinite;
}*/

.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: 0.25;
  z-index: -1;
  pointer-events: none;
}

/* Markdown README général */
.readme-html {
    font-family: 'Inter', sans-serif;
    color: #eaeaea;
    line-height: 1.7;
}
  
  .readme-html h1, 
  .readme-html h2, 
  .readme-html h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .readme-html p {
    margin: 0.75rem 0;
  }
  
  .readme-html a {
    color: #4da6ff;
    text-decoration: underline;
  }
  
  .readme-html ul {
    padding-left: 1.5rem;
    list-style-type: disc;
  }
  
  .readme-html code, 
  .readme-html pre {
    background: #1e1e2f;
    color: #eaeaea;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
  }
  
  /* Mermaid – bloc global */
  .readme-html .mermaid {
    background-color: #111827 !important;
    color: #ffffff !important;
    padding: 1rem;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1rem;
  }
  
/* ✅ Force la couleur de fond et du texte Mermaid (noeuds) */
.readme-html .mermaid .node > rect,
.readme-html .mermaid .node > polygon,
.readme-html .mermaid .node > path {
  fill: #ffffff !important;
  stroke: #555 !important;
}

.readme-html .mermaid .node > text {
  fill: #111 !important;
  font-weight: bold;
}
  
  
/* === DARK WRAPPER général === */
body.dark-mode #dark-wrapper {
  background-color: rgba(15, 23, 42, 0.88); /* plus foncé que la version avec vidéo */
  color: #e5e7eb;
  position: relative;
  z-index: 0;
}

/* 📊 Corrige la lisibilité des titres dans les cards dashboards en mode sombre */
body.dark-mode .dashboard-gallery h4 {
    color: #eaeaea; /* ou #fff pour plus de contraste */
}

/* Titres et textes */
body.dark-mode #dark-wrapper h1,
body.dark-mode #dark-wrapper h2,
body.dark-mode #dark-wrapper h3,
body.dark-mode #dark-wrapper p,
body.dark-mode #dark-wrapper li,
body.dark-mode #dark-wrapper span,
body.dark-mode #dark-wrapper a {
  color: #f1f5f9;
}

body.dark-mode #dark-wrapper strong,
body.dark-mode #dark-wrapper em,
body.dark-mode #dark-wrapper blockquote {
  color: #f1f5f9 !important;
}

/* ====== CONTENEURS & BLOCS ====== */
body.dark-mode #dark-wrapper .main-container,
body.dark-mode #dark-wrapper .card,
body.dark-mode #dark-wrapper .ci-cd-card,
body.dark-mode #dark-wrapper .dashboard-card,
body.dark-mode #dark-wrapper .dashboard-gallery {
  background-color: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ====== BOUTONS ====== */
body.dark-mode #dark-wrapper .btn,
body.dark-mode #dark-wrapper .btn-primary {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

/* === TOOLTIP, LISTS === */
body.dark-mode #dark-wrapper .tooltip-text,
body.dark-mode #dark-wrapper .styled-list {
  color: #cbd5e1 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/*
.project-selector {
  margin-left: auto;
  padding-right: 1rem;
}

.project-selector select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
}
*/
/* 🖥️ Desktop — label + select en ligne */
.project-selector {
  margin-left: auto;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre le label et le select */
}

.project-selector label.selector-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4b5563;
  white-space: nowrap; /* évite les retours à la ligne */
}

.project-selector select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}



img,
video {
  max-width: 100%;
  height: auto;
}

.article-page .main-container {
    position: relative;
    top: -95px; /* Remonte le contenu de 30px */
}

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

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

.btn-link {
    text-decoration: none;
    color: #4a90e2;
    font-weight: bold;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #0056b3;
}

.hobbies-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.hobbies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.hobby-card {
    background-color: transparent;
    padding: 0px;
    box-shadow: none; 
    /*border-radius: 10px;*/
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
    font-size: 2.5rem;
    transition: transform 0.2s ease-in-out;
    text-align: center;
}
.hobby-card::before {
    font-size: 2rem;
}

/*utilisation future*/
.hobby-card span {
    display: none;
}

.hobby-card:hover {
    transform: translateY(-4px);
}

/* 2. Navigation */
.navbar {
    position: fixed; /* Fixe la navbar */
    top: 0; /* Colle en haut */
    left: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    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-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: 16px;
    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;
}

/* Assure que le contenu prend bien toute la place et pousse le footer en bas */
.main-container {
    flex: 1; /* Prend toute la hauteur dispo */
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* En-tête stylisé */
.section-header {
    text-align: center;
    margin-top: -20px; /* Remonte la section */
    padding-top: 5px; /* Ajuste le padding pour éviter l’écrasement */
}

.section-header h1 {
    height: 3vh; /* Ajuste la hauteur */
    max-height: 100px; /* Bloque la hauteur max */
    font-size: 2rem;
    font-weight: bold;
    color: #222;
    margin-top: 40px; /* Remonte encore plus le titre */
}

.section-header p {
    font-size: 1rem;
    color: #666;
}

/* Conteneur des cartes */
.card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 0px;
}

/* Cartes stylisées */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Évite le débordement */
    justify-content: center;
}

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

.card h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #222;
}

.emoji {
    font-family: system-ui, 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
    font-size: 1.4rem;
    line-height: 1.2;
    display: inline-block;
}
  

.card p {
    color: #555;
    font-size: 0.95rem;
}

/* Liste stylisée */
.styled-list {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.styled-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: #555;
    gap: 15px;
    font-size: 1rem;
}

.styled-list li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: color 0.2s;
}

.styled-list li a:hover {
    color: #0056b3;
}

.styled-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
}

/* Supprime le ✔️ uniquement pour les éléments ayant la classe "no-check" */
.styled-list.no-check li::before {
    content: none !important;
}
.no-check {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.back-button {
    text-decoration: none;
    color: #007bff;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.back-button:hover {
    color: #0056b3;
}

.article-container,
.hobbies-container,
.external-articles {
    flex: 1 1 30%; /* Chaque bloc occupe ~1/3 avec flexibilité */
    max-width: 32%;
}

/* Conteneur principal */
.blog-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px; /* Espacement entre les deux blocs */
    max-width: 100%;
    margin-bottom: 15px;
    margin-top: 40px; /* Réduit l'espace sous les articles */
}
/* Bloc Article */
.article-container {
    flex: 2; /* Plus de place pour le contenu */
    background: transparent !important;
    padding: 0;
    border-radius: 10px;
    box-shadow: none !important;
    min-height: 300px;
    border: none !important;
    justify-content: center;
    align-items: center;
    text-align: center;

}
/* Bloc "Mes articles externes" */
.external-articles {
    flex: 1; /* Moins large */
    background: transparent !important;
    border-radius: 10px;
    box-shadow: none !important;
    border: none !important;
    padding: 20px;
    min-height: 300px;
}

/* Grille des articles externes */
.external-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 15px; /* Espacement entre les articles */
}

/* Liens des articles externes */
.external-articles a {
    display: block;
    font-size: 0.95rem;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 8px;
}

.external-articles a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Conteneur des articles externes */
#external-articles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

/* Boutons "Voir plus" bien positionnés */
.external-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* Style des boutons Voir plus */
.btn-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease-in-out;
}

.btn-link:hover {
    color: #0056b3; /* Couleur plus foncée au survol */
}

/* Ajustement des cartes pour qu'elles s'alignent bien */
#veille-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: -30px; /* Remonte légèrement */
}
.veille-cards {
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne si besoin */
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    margin-top: -30px;
}
/*  Cartes de veille */
.veille-cards .card {
    min-width: 250px;
    max-width: 300px;
    height: 200px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ajustement des cartes */
#veille-container .card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Icônes ajustées */
.icon {
    width: 20px;
    height: 20px;
}

.dashboard-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background-color: #f4f7ff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 350px;
    max-width: 480px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

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

.dashboard-gallery img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.dashboard-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.dashboard-card h4 {
    margin-top: 12px;
    font-size: 1rem;
    text-align: center;
    color: #333;
}
  

.dashboard-actions {
    display: inline-flex;
    align-items: center;
    gap: 16px; /* Espace entre le bouton et l’icône */
    margin-top: 25px;
}
  
.info-tooltip {
    font-size: 1.3rem;
    cursor: help;
    line-height: 1;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}
  
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 120%; /* décalage vers la droite */
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);

    /* ✅ uniquement une fois chacune */
    max-width: 340px;
    min-width: 200px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}
  
.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
  

/* Bouton interactif */
.btn {
    display: inline-block;
    /*margin-top: 25px;*/
    width: auto;
    padding: 10px 15px;
    background-color: #5468ff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
    min-width: 150px;
}

.btn:hover {
    background-color: #4053d9;
}
  
.btn:hover {
    background-color: #4053d9;
}
  
/* Bloc de code déploiement */
pre {
    background-color: #f4f7ff;
    padding: 10px;
    border-radius: 6px;
    overflow-x: hidden !important; /* Supprime le défilement horizontal */
    margin-top: 20px;
}

pre code {
    font-size: 0.95rem;
    color: #333;
}

/* Ajustement du cadre CI/CD */
.card-ci-cd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Ajuste pour être aligné avec les autres blocs */
    margin: auto;
}

.ci-cd-button {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.mermaid svg {
    background-color: transparent !important;
    color: #333 !important;
    fill: #333 !important;
}
  
.mermaid .label {
    fill: #333 !important;
}
  

.mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px; /* Ajuste selon la largeur souhaitée */
    margin: auto;
    overflow: hidden !important; /* Cache tout débordement */
    transform: none; /* Supprime le zoom qui crée un débordement */
}

/* Effet de zoom au survol */
.mermaid:hover {
    transform: scale(1.05) !important; /* Léger zoom au survol */
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

/* Supprime le défilement Mermaid */
.ci-cd-diagram-container {
    width: 100%;
    max-width: 1200px;
    overflow-x: hidden !important; /* Empêche le scroll horizontal */
    overflow-y: hidden !important; /* Empêche le scroll vertical */
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajustement du diagramme */
.ci-cd-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 20px auto;
}

/* Centrage du bouton */
.ci-cd-button-container {
    margin-top: 20px;
    text-align: center;
}

.ci-cd-diagram pre.mermaid {
    font-size: 1.6em !important; /* Forçage de la taille */
    min-height: 500px !important; /* Plus de hauteur */
    width: 100% !important;
    max-width: 1100px !important; /* Largeur augmentée */
    overflow: hidden !important; /* Supprime le scroll vertical */
    transform: none !important; /* Enlève le zoom qui dépasse */
}

/* Ajustement du bouton */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Correction du footer */
.footer {
    width: 100%; /* Assure que le footer couvre toute la largeur */
    position: relative; /* Fixe le footer en bas */
    bottom: 0; /* Le colle bien en bas */
    left: 0; /* Le colle bien à gauche */
    right: 0; /* Le colle bien à droite */
    padding: 20px 50px; /* Ajuste les paddings pour ne pas écraser le contenu */
    background-color: #f0f3ff; 
    border-top: 2px solid #e1e8ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Empêche les débordements */
}
/* Citations */
.footer-quotes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;
    flex: 2;
    max-width: 60%;
    flex-wrap: nowrap;
}

/* Style des citations */
.footer-quotes blockquote {
    font-style: italic;
    font-size: 0.9rem;
    color: #444;
    min-width: 220px;
}
  
/* Section gauche du footer */
.footer-left {
    max-width: 40%;
    padding: 10px 0;
    flex: 1;
    align-items: flex-start; /* Aligne le contenu sur la gauche */
}

.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-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);
}
  
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* reste aligné à droite */
    text-align: center;    /* mais texte centré */
}
  

.footer-icons a {
    text-decoration: none; /* enlève les tirets */
    border-bottom: none;   /* garantit qu'il n'y ait pas de bordure */
}

.footer-icons a i {
    font-size: 1.3rem; /* Ajuste la taille ici selon tes préférences */
    transition: transform 0.3s ease;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 15px; /* Augmente l’espace entre les icônes */
    margin-top: 10px; /* Ajustement vertical */
    padding-left: 20px; /* Décale légèrement depuis la bordure */
}

.footer-left,
.footer-icons {
    padding-left: 0; 
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    align-items: center;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #5468ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in;
}

.footer-links li a:hover {
    color: #4053d9;
}

.contact-title {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: bold;
}

/* En dehors des media queries = appliqué partout */
.language-switcher {
  display: none;
}
/* En dehors des media queries = appliqué partout */
.cta-button {
  display: none;
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.2; 
    pointer-events: none; 
}
  

/* ========= NAVIGATION BURGER FIXÉE ========= */

@media screen and (max-width: 768px) {
    .tooltip-text {
        position: fixed; /* ✅ ignore le flux local pour un placement global */
        bottom: auto;
        top: 80%; /* Ajuste en fonction de la position désirée */
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 280px;
        min-width: 220px;
        font-size: 0.8rem;
        text-align: left;
        background-color: #333;
        color: #fff;
        padding: 10px 14px;
        border-radius: 6px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    img,
    video {
        max-width: 100% !important;
        height: auto;
        display: block;
    }
    .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 {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 45vw; /* 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: 9999 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        min-width: 250px;
        filter: none !important;
        backdrop-filter: none !important;
        mix-blend-mode: normal !important;
        min-height: 100vh;
        max-width: 100%;
        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;
        opacity: 1 !important;
        visibility: visible !important;
        color: #333 !important;
    }
    .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;
    }
    .main-container {
        margin: 0 auto;
        padding: 16px;
        max-width: 1100px;
        width: 100%;
        /*box-sizing: border-box;*/
    }

    .main-container,
    .card,
    .card-container,
    .section-header,
    .footer,
    .dashboard-card,
    .ci-cd-card {
        box-sizing: border-box;
    }
      
    .section-header {
        padding: 0 12px;
        text-align: center;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 10px;
        height: auto;
        max-height: none;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }

    /* Supprimer tout overflow parasite */
    .card-container,
    .main-container,
    .section-header {
        overflow: visible !important;
    }
    
    .card-container {
        gap: 20px;
        padding: 0;
        margin: 0;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 32px); /* ou padding horizontal total */
        max-width: 600px;
        box-sizing: border-box;
    }
    
    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .styled-list {
        padding-left: 0;
        font-size: 0.95rem;
    }
    
    .styled-list li {
        padding-left: 20px;
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Applique-le uniquement à cette section si besoin */
    #dashboards-section {
        overflow: hidden;
        padding: 16px;
        box-sizing: border-box;
    }

    /* Galerie scrollable horizontale */
    .dashboard-gallery {
        display: flex;
        gap: 16px;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        gap: 16px;
        scroll-padding: 10px;
        /*margin: 0 -8px;*/
    }
    
    .dashboard-card {
        flex: 0 0 90%; /* ← largeur de chaque capture */
        scroll-snap-align: start;
        background: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }    
    
    .dashboard-card img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: contain; /* au cas où l’image dépasse */
        display: block;
    }
      
    .dashboard-card h4 {
        font-size: 0.95rem;
        text-align: center;
        margin-top: 12px;
        white-space: nowrap;       /* évite le retour à la ligne trop tôt */
        overflow: hidden;          /* cache les débordements */
        text-overflow: ellipsis;   /* ajoute des "..." si ça déborde */
    }

    /* Bloc global CI/CD */
    .ci-cd-card {
        padding: 18px;
        border-radius: 10px;
        background: white;
        margin: 0 auto;
        width: calc(100% - 32px);
        box-sizing: border-box;
        max-width: 600px;
    }
    
    /* Texte CI/CD */
    .ci-cd-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left;
    }
    
    /* Commande */
    .deploy-command {
        margin-top: 16px;
    }
    
    .deploy-command pre {
        background: #f4f4f4;
        padding: 10px;
        border-radius: 6px;
        font-size: 0.9rem;
        overflow-x: auto;
    }
    
    /* Diagramme */
    .ci-cd-diagram-container {
        overflow-x: auto;
        margin-top: 16px;
    }
    
    .ci-cd-diagram-container pre.mermaid {
        min-width: 600px;
        font-size: 1rem !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Bouton */
    .ci-cd-button {
        text-align: center;
        margin-top: 20px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 400px;
        font-size: 1rem;
        padding: 10px 16px;
        display: inline-block;
        text-align: center;
        border-radius: 8px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
    }
    
    .btn-primary:hover {
        background-color: #0056b3;
    }
    .emoji {
        font-family: system-ui, 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
        font-size: 1.4rem;
        line-height: 1.2;
        display: inline-block;
    }
    /*footer*/
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 24px 16px;
        text-align: center;
        gap: 24px;
    }
      
    .footer-left,
    .footer-right {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
      
    .footer-left h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
      
    .footer-left p {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 12px;
    }
      
    .footer-icons {
        justify-content: center;
        gap: 16px;
        padding-left: 0;
    }
      
    .footer-icons a i {
        font-size: 1.6rem;
    }
      
    .footer-right {
        align-items: center;
    }
      
    .footer-right p {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 10px;
    }
      
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
      
    .footer-links li {
        margin-bottom: 10px;
    }
      
    .footer-links li a {
        color: #5468ff;
        font-size: 0.95rem;
        text-decoration: none;
    }
      
    .footer-links li a:hover {
        color: #4053d9;
    }
  
}
  
  /* ======= DESKTOP NAVIGATION ======= */
@media screen and (min-width: 769px) {
    .nav-items {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      width: 100%;
    }
  
    .burger-menu {
      display: none;
    }
}

@media screen and (max-width: 768px) {
  .nav-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* On sort le selector du flux visuel de .nav-right */
  .project-selector {
    margin-top: auto !important;
    align-self: stretch;
    padding: 20px 16px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .project-selector select {
    width: 100%;
  }

  .selector-label {
    font-size: 0.9rem;
    color: #4b5563;
  }
}



