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

body.no-scroll {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

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

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

/* === 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;
}

/* === TEXT GLOBAL === */
body.dark-mode #dark-wrapper h1,
body.dark-mode #dark-wrapper h2,
body.dark-mode #dark-wrapper h3,
body.dark-mode #dark-wrapper h4,
body.dark-mode #dark-wrapper h5,
body.dark-mode #dark-wrapper p,
body.dark-mode #dark-wrapper li,
body.dark-mode #dark-wrapper span,
body.dark-mode #dark-wrapper a,
body.dark-mode #dark-wrapper strong,
body.dark-mode #dark-wrapper em,
body.dark-mode #dark-wrapper blockquote {
  color: #f1f5f9 !important;
}

/* === BLOCS & CARTES === */
body.dark-mode #dark-wrapper .main-container,
body.dark-mode #dark-wrapper .blog-content,
body.dark-mode #dark-wrapper .card,
body.dark-mode #dark-wrapper .external-articles,
body.dark-mode #dark-wrapper .ai-assistant-section {
  background-color: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 1rem;
}

/* Supprime l'arrière-plan résiduel sur les liens internes dans les listes de veille */
body.dark-mode #dark-wrapper .card a,
body.dark-mode #dark-wrapper .card li,
body.dark-mode #dark-wrapper .card .icon {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Supprimer les arrière-plans internes des liens dans les cartes */
body.dark-mode #dark-wrapper .card a {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

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

/* === TOOLTIP, TEXTAREAS, RÉPONSES === */
body.dark-mode #dark-wrapper .tooltip-text,
body.dark-mode #dark-wrapper .styled-list,
body.dark-mode #dark-wrapper #ai-answer,
body.dark-mode #dark-wrapper #ai-question {
  color: #cbd5e1 !important;
  background-color: rgba(51, 65, 85, 0.6);
}

/* Nettoyage des liens dans les boutons en dark mode */
body.dark-mode #dark-wrapper .external-articles .btn-link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  display: inline-block;
  color: #3b82f6 !important; /* couleur du texte si tu veux garder le bleu */
  text-decoration: underline;
}
/* Forcer la transparence totale sur styled-list */
body.dark-mode #dark-wrapper .styled-list,
body.dark-mode #dark-wrapper .styled-list li,
body.dark-mode #dark-wrapper .styled-list li a {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Empêche la redondance des cartes dans la section veille */
body.dark-mode #dark-wrapper #veille-container .card {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}


/* Facultatif : espacement homogène */
body.dark-mode #dark-wrapper .styled-list li {
  margin-bottom: 0.5rem;
}


#veille-title {
  text-align: center;
  margin-bottom: 0.25rem;
}

#veille-description {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 4rem;
  color: #cbd5e1; /* pour dark mode */
}


/* === SUPPRESSION DES DOUBLES STYLES CONTENEUR === */
body.dark-mode #dark-wrapper .main-container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}



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

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

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #7D5FB2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    transition: background 0.3s ease;
}
.btn:hover {
    background: #6a4bbd;
}

.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;
}

.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 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;
}
/* 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;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f2f4ff;
}
/* Citations */
.footer-quotes {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* reste aligné en haut */
    gap: 30px;
    text-align: center;
    flex: 2;
    max-width: 100%;
    flex-wrap: nowrap;
    padding-top: 20px;
    margin-top: 10px;
}
  
.quote-widget button {
    background-color: #7D5FB2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
    outline: none;
    box-shadow: none;
}

.quote-widget {
    margin-top: 10px;
    min-height: 100px; /* fix une hauteur pour éviter les sauts */
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.quote-widget button:focus,
.quote-widget button:active {
  outline: none;
  box-shadow: none;
  transform: none; /* empêche les déformations */
}
  
.quote-widget button:hover {
    background-color: #6a4bbd;
}
  
.quote-result {
    min-height: 50px; /* garantit une hauteur constante */
    margin-top: 10px;
    font-style: italic;
    color: #4a4a4a;
    transition: opacity 0.3s ease;
}
  

.footer-quotes blockquote {
    font-style: italic;
    margin: 4px 0;
    color: #333;
    max-width: 280px;
    text-align: left;
}
  
.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 250px;
    min-width: 250px;
}

.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: 2 1 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
  

.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 */
.nav-right,
.language-switcher {
  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; 
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7D5FB2;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 40px;
}
  
.ai-assistant-section {
    padding: 0;
    margin: 40px auto 80px;
    max-width: 720px;
    text-align: center;
    background: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 10px;
}

.ai-title {
    font-size: 1.9rem;
    margin-top: 20px;
    margin-bottom: 6px;
}

.ai-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

#ai-question {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 16px;
    resize: vertical;
    box-sizing: border-box;
}


button {
    padding: 10px 18px;
    background-color: #7D5FB2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #6a4bbd;
}

.ai-result {
    margin-top: 20px;
    margin-bottom: 24px; /* 👈 ici */
    background: #ffffff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 1rem;
    color: #2c2c2c;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ai-result h1,
.ai-result h2,
.ai-result h3 {
    color: #7D5FB2;
    font-weight: bold;
    margin: 8px 0 4px;
}

.ai-result li p {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.ai-result ol,
.ai-result ul {
  padding-left: 1.2rem;
  margin: 4px 0;
}

.ai-result li {
    margin-bottom: 4px;
}

.ai-result code {
    background-color: #eee;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}
  

.ai-result pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    max-width: 100%;
}
  

@media screen and (max-width: 768px) {
    body {
        text-align: center;
    }

    img,
    video {
        max-width: 100% !important;
        height: auto;
        display: block;
    }

    /* === NAVBAR commune (de base) === */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .logo-db {
        font-size: 1.5rem; /* ou 1.2rem si tu veux un peu plus */
        font-weight: bold;
        text-decoration: none;
        white-space: nowrap;
    }

    /* === BLOG INTERNE === */

    .main-container {
        padding: 20px 16px 24px; /* ← au lieu de 80px */
        margin-top: 0;
        text-align: center;
    }

    .article-container,
    .hobbies-container,
    .external-articles {
        text-align: left;
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        box-sizing: border-box;
        margin: 0 auto;
    }
      
    .section-header,
    .article-container,
    .hobbies-container,
    .external-articles {
        text-align: center;
        margin: 0 auto;
    }
    h1, h2, h3, p, span {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-header {
        margin-bottom: 16px; /* ↓ Ajuste à ta convenance */
        padding: 0 16px;
    }
    /* Header principal */
    .section-header h1 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 10px;
        margin-top: 0;
    }
    
    .section-header p {
        font-size: 1rem;
        text-align: center;
        color: #555;
    }
    
    /* Bloc principal verticalisé */
    .blog-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    /* Article interne */
    .article-container {
        padding: 16px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    
    .article-container h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .article-container p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .btn {
        display: block;
        margin: 20px auto 0;
        padding: 10px 18px;
        font-size: 0.95rem;
        background: #7D5FB2;
        color: white;
        border-radius: 6px;
        text-align: center;
        text-decoration: none;
        width: fit-content;
        min-width: 160px;
        max-width: 220px;
    }
      
    
    /* Hobbies */
    .hobbies-container {
        padding: 0;
        background: none;
        border: none;
    }
      
    
    .hobbies-container h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .hobbies-container p {
        font-size: 0.95rem;
        margin-bottom: 14px;
        color: #444;
    }
    
    .hobbies-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ← 2 colonnes */
        gap: 16px;
        justify-items: center;
        margin-top: 16px;
    }
      
    .hobby-card {
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 6px;
        background: none;
        box-shadow: none;
        animation: floatWave 2.5s ease-in-out infinite;
        will-change: transform;
    }
    /* Animation "vague" */
    @keyframes floatWave {
        0%, 100% {
        transform: translateY(0px);
        }
        50% {
        transform: translateY(-6px);
        }
    }
    
    /* Décalage alternatif pour vague fluide */
    .hobby-card:nth-child(odd) {
        animation-delay: 0s;
    }
    .hobby-card:nth-child(even) {
        animation-delay: 1.25s;
    }

    /* Emoji uniquement (tout ce qui n’est pas le span = l’emoji ici) */
    .hobby-card span {
        font-size: 1rem; /* ← texte normal */
    }
    
    /* Grossit juste l’emoji */
    .hobby-card {
        font-size: 1.8rem; /* ← emoji plus gros */
    }
    
    .hobby-card span {
        font-size: 1rem; /* ← remet le texte à sa taille normale */
    }
  
    /* Articles externes */
    .external-articles {
        padding: 16px;
        background: #fff;
        border-radius: 10px;
    }
    
    .external-articles h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .external-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .external-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }
    
    .btn-link {
        background: white;
        padding: 10px 14px;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.95rem;
        color: white;
        text-align: center;
      
        /* ↓ Centrage + taille contenue */
        display: block;
        margin: 0 auto;
        width: fit-content;
        min-width: 160px;
        max-width: 240px;
    }
      
    .btn-link:hover {
        background: white;
    }

    /* === Veille Technologique - section blog === */
    #veille-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 8px;
    }
    #veille-description {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 20px;
        color: #444;
    }
    
    .veille-cards {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    /* Chaque bloc de veille (podcast, newsletter, etc.) */
    .veille-cards .card {
        padding: 16px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    
    /* Titres des blocs : 🎙 Podcasts, 📺 YouTube etc */
    .veille-cards .card h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        color: #3A3A70;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    /* Liste des sources */
    .styled-list.no-check {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    /* Chaque source : icône + nom */
    .styled-list.no-check li {
        display: flex;
        align-items: center;
        gap: 10px; /* espace entre l'icône et le texte */
        font-size: 0.95rem;
        line-height: 1.5;
        padding-left: 0;
        margin-bottom: 10px;
    }
    
    .styled-list.no-check li img.icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        margin: 0; /* ← enlève tout décalage vertical */
    }    
    
    /* Lien vers la ressource */
    .styled-list.no-check li a {
        text-decoration: none;
        color: #5468ff;
        font-size: 0.95rem;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .styled-list.no-check li a:hover {
        color: #3a3a70;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 32px 16px;
        background-color: #f9f9f9;
        text-align: center;
    }
    
    .footer-left {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-left h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: #3A3A70;
    }
    
    .footer-left p {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 16px;
    }
    
    .footer-icons {
        display: flex;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-icons a i {
        font-size: 1.6rem;
        transition: transform 0.2s ease;
    }
    
    .footer-icons a:hover i {
        transform: scale(1.15);
    }
    
    /* Citations */
    .footer-quotes {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 12px;
    }
    
    .footer-quotes blockquote {
        font-size: 0.95rem;
        font-style: italic;
        color: #333;
        margin: 0;
        line-height: 1.4;
    }    

    .quote-widget {
        width: 100%;
    }

    .quote-widget button {
        font-size: 0.9rem;
        padding: 8px 12px;
        width: 100%; /* ou auto si tu préfères */
        text-align: center;
    }
    
    .quote-result {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .ai-title {
        font-size: 1.4rem;
        margin-top: 16px;
    }
    
    .ai-desc {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    #ai-question {
        font-size: 0.95rem;
        padding: 10px;
        min-height: 70px;
    }
    
    button {
        font-size: 0.95rem;
        padding: 10px 14px;
        width: 100%;
    }
    
    .ai-assistant-section {
        margin: 20px 10px 60px;
        max-width: 100%;
    }

    .ai-result {
        padding: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .ai-result h1,
    .ai-result h2,
    .ai-result h3 {
        font-size: 1.1rem;
        margin: 6px 0 4px;
    }
    
    .ai-result pre {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .ai-result code {
        font-size: 0.85rem;
        padding: 2px 5px;
    }
    
    .ai-result ol,
    .ai-result ul {
        padding-left: 1rem;
        margin: 2px 0;
    }
    
    .ai-result li {
        margin-bottom: 3px;
    }
      
}