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

html {
    /* Smooth scroll sur mobile avec momentum scrolling natif iOS */
    /* -webkit-overflow-scrolling: touch active le momentum scrolling natif sur iOS */
    -webkit-overflow-scrolling: touch;
    /* Ne pas utiliser scroll-behavior: smooth car cela cause du shake sur mobile */
    /* Le momentum scrolling natif est suffisant pour un scroll fluide */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    /* Smooth scroll sur mobile */
    -webkit-overflow-scrolling: touch;
}

main {
    flex: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: #f5f5f5;
    color: #333;
    padding: 1rem 0 0.5rem 0;
    z-index: 100;
    --header-height: auto;
}

header .container {
    position: relative;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-left {
    text-align: center;
}

/* Bouton de changement de langue - Position absolue par rapport au body, non sticky */
.language-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 90px;
    height: 40px;
}

.language-toggle:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #adb5bd;
}

.language-toggle .lang-option {
    flex: 1;
    text-align: center;
    z-index: 2;
    transition: color 0.3s ease;
    padding: 0.45rem 0.6rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-toggle .lang-option.active {
    color: #212529;
    font-weight: 700;
}

.language-toggle .toggle-slider {
    position: absolute;
    width: calc(50% - 4px);
    height: calc(100% - 6px);
    background: white;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 3px;
    top: 3px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Par défaut EN est sélectionné (slider à gauche), FR déplace le slider à droite */
.language-toggle.lang-fr .toggle-slider {
    transform: translateX(calc(100% + 4px));
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Lien titre site */
header h1 .site-title {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

header h1 .site-title:hover {
    opacity: 0.8;
}

header h1 .a1 {
    font-size: 1em;
}

header h1 .a2 {
    font-size: 0.9em;
}

header h1 .a3 {
    font-size: 0.8em;
}

header h1 .a4 {
    font-size: 0.7em;
}

header h1 .a5 {
    font-size: 0.6em;
}

.tagline {
    opacity: 0.9;
    font-size: 0.95rem;
    color: #666;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    max-height: 100px;
    overflow: hidden;
}

/* Masquer le tagline lors du scroll - le header reste sticky avec seulement le h1 visible */
header.scrolled .tagline {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

/* Réduire le padding du header quand scrolled pour que seul le h1 soit visible */
header.scrolled {
    padding-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

/* Articles List */
.articles-container {
    padding: 0.5rem 0 1rem 0;
    overflow: visible;
}

/* Category Filter Container */
.category-filter-controls {
    padding: 1rem 0 1rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    background-color: #f5f5f5;
    z-index: 101;
    /* Le top sera calculé dynamiquement par JavaScript pour être juste en dessous du header */
    /* z-index 101 pour être au-dessus du header (z-index 100) et ne pas passer derrière */
}

.category-filter-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter {
    padding: 0.5rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.category-filter.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Couleurs spécifiques pour chaque catégorie filtre - Inactif */
.category-filter[data-category="Blog"] {
    border-color: #EA4335;
    color: #EA4335;
}

.category-filter[data-category="Release notes"] {
    border-color: #34A853;
    color: #34A853;
}

.category-filter[data-category="News"] {
    border-color: #FBBC04;
    color: #FBBC04;
}

.category-filter[data-category="Events"] {
    border-color: #4285F4;
    color: #4285F4;
}

.category-filter[data-category="Podcasts"] {
    border-color: #202124;
    color: #202124;
}

/* Couleurs spécifiques pour chaque catégorie filtre - Actif */
.category-filter[data-category="Blog"].active {
    background: #EA4335;
    border-color: #EA4335;
    color: white;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}

.category-filter[data-category="Release notes"].active {
    background: #34A853;
    border-color: #34A853;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

.category-filter[data-category="News"].active {
    background: #FBBC04;
    border-color: #FBBC04;
    color: white;
    box-shadow: 0 2px 8px rgba(251, 188, 4, 0.3);
}

.category-filter[data-category="Events"].active {
    background: #4285F4;
    border-color: #4285F4;
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.category-filter[data-category="Podcasts"].active {
    background: #202124;
    border-color: #202124;
    color: white;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.3);
}

/* Search Container */
.search-container {
    padding: 0.5rem 0 1rem 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #f5f5f5;
    background-color: #f5f5f5;
    z-index: 95;
    /* Le top sera calculé dynamiquement par JavaScript pour être juste en dessous du header et des catégories */
}

/* Masquer le conteneur si l'input contient du JSON (avant l'initialisation de Tagify) */
.search-container:has(.search-input[value*="["]) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.search-container:has(#search-input[value*="["]) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.search-container:has(#admin-search-input[value*="["]) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.4rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
    text-align: left;
    padding-left: 1.4rem;
    font-style: italic;
}

/* Styles Tagify */
.tagify {
    --tag-bg: #667eea;
    --tag-hover: #5568d3;
    --tag-text-color: white;
    --tag-text-color--edit: white;
    --tag-pad: 0.6rem 0.9rem;
    --tag-inset-shadow-size: 1.1em;
    --tag-invalid-color: #ef4444;
    --tag-invalid-bg: rgba(239, 68, 68, 0.1);
    --tag-remove-bg: rgba(255, 255, 255, 0.2);
    --tag-remove-btn-color: white;
    --tag-remove-btn-bg: transparent;
    --tag-remove-btn-bg--hover: rgba(255, 255, 255, 0.3);
    --input-color: inherit;
    --placeholder-color: #a0aec0;
    --placeholder-color-focus: #cbd5e0;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.25rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tagify:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tagify__tag {
    margin: 0.35rem 0.3rem 0.35rem 0;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    min-height: 36px;
    line-height: 1.5;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagify__tag span {
    line-height: 1.5;
}

.tagify__tag__prefix {
    font-weight: 600;
}

.tagify__tag__value {
    font-weight: 400;
}

.tagify__tag__removeBtn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
}

.tagify__tag__removeBtn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.tag-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Couleurs spécifiques selon le type de tag */
.tagify__tag.techno {
    background: #4DB9D1 !important;
    background-color: #4DB9D1 !important;
    color: #ffffff !important;
    border: none;
}

.tagify__tag.techno .tagify__tag__removeBtn {
    color: #ffffff !important;
}

.tagify__tag.techno .tagify__tag__removeBtn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.tagify__tag.site {
    background: #D1654D !important;
    background-color: #D1654D !important;
    color: #ffffff !important;
    border: none;
}

.tagify__tag.site .tagify__tag__removeBtn {
    color: #ffffff !important;
}

.tagify__tag.site .tagify__tag__removeBtn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.tagify__tag.keyword {
    background: #D1A74D !important;
    background-color: #D1A74D !important;
    color: #ffffff !important;
    border: none;
}

.tagify__tag.keyword .tagify__tag__removeBtn {
    color: #ffffff !important;
}

.tagify__tag.keyword .tagify__tag__removeBtn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.tagify__tag.podcast {
    background: #A1A27E !important;
    background-color: #A1A27E !important;
    color: #ffffff !important;
    border: none;
}

.tagify__tag.podcast .tagify__tag__removeBtn {
    color: #ffffff !important;
}

.tagify__tag.podcast .tagify__tag__removeBtn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown Tagify */
.tagify__dropdown {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    z-index: 1000;
}

.tagify__dropdown__item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f7fafc;
}

.tagify__dropdown__item:last-child {
    border-bottom: none;
}

.tagify__dropdown__item:hover,
.tagify__dropdown__item--active {
    background: #f7fafc;
}

.tagify__dropdown__item__title {
    font-weight: 600;
    color: #2d3748;
}

.tagify__input {
    margin: 10px !important;
    padding: 0.2rem 0;
    line-height: 1.5;
    min-width: 120px;
    flex: 1;
}

/* Masquer uniquement le placeholder, pas l'input lui-même */
.tagify.has-tags .tagify__input::placeholder,
.tagify[data-has-tags="true"] .tagify__input::placeholder {
    opacity: 0 !important;
    color: transparent !important;
    visibility: hidden !important;
    font-size: 0 !important;
}

/* Si l'input contient du texte (placeholder), le masquer complètement quand il y a des tags */
.tagify.has-tags .tagify__input:empty::before,
.tagify[data-has-tags="true"] .tagify__input:empty::before {
    display: none !important;
    content: '' !important;
}

/* Masquer le placeholder quand il y a des tags dans Tagify */
.tagify:not(.tagify--empty) .tagify__input::placeholder,
.tagify:not(.tagify--empty) .tagify__input::-webkit-input-placeholder,
.tagify:not(.tagify--empty) .tagify__input::-moz-placeholder,
.tagify:not(.tagify--empty) .tagify__input:-ms-input-placeholder,
.tagify__wrapper:has(.tagify__tag) ~ .tagify__input::placeholder,
.tagify__tag ~ .tagify__input::placeholder {
    opacity: 0 !important;
    color: transparent !important;
    display: none !important;
}

/* Forcer le masquage si le parent contient des tags - UNIQUEMENT le placeholder */
.tagify:has(.tagify__tag) .tagify__input::placeholder,
.tagify:has(.tagify__tag) input::placeholder,
.tagify[data-has-tags="true"] .tagify__input::placeholder,
.tagify[data-has-tags="true"] input::placeholder,
.tagify.has-tags .tagify__input::placeholder,
.tagify.has-tags input::placeholder,
.tagify.has-tags .tagify__input::-webkit-input-placeholder,
.tagify.has-tags input::-webkit-input-placeholder,
.tagify.has-tags .tagify__input::-moz-placeholder,
.tagify.has-tags input::-moz-placeholder,
.tagify.has-tags .tagify__input:-ms-input-placeholder,
.tagify.has-tags input:-ms-input-placeholder {
    opacity: 0 !important;
    color: transparent !important;
    visibility: hidden !important;
    font-size: 0 !important;
}

/* Forcer le masquage avec un sélecteur d'attribut */
.tagify[data-has-tags="true"] input {
    --placeholder-opacity: 0 !important;
}

.tagify[data-has-tags="true"] input::placeholder {
    opacity: 0 !important;
    color: transparent !important;
    visibility: hidden !important;
    font-size: 0 !important;
}

/* Solution radicale : réduire la taille de police à 0 pour masquer complètement le placeholder */
.tagify:has(.tagify__tag) .tagify__input::placeholder,
.tagify.has-tags .tagify__input::placeholder,
.tagify[data-has-tags="true"] .tagify__input::placeholder {
    font-size: 0 !important;
    opacity: 0 !important;
    color: transparent !important;
    visibility: hidden !important;
}

.tagify__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive Tagify */
@media (max-width: 768px) {
    .tagify {
        padding: 0.2rem 0.8rem;
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    .tagify__tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        margin: 0.3rem 0.3rem 0.3rem 0;
        min-height: 32px;
    }
    
    .tagify__tag__removeBtn {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .tag-icon {
        width: 14px;
        height: 14px;
    }
    
    .search-hint {
        font-size: 0.75rem;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .tagify {
        padding: 0.15rem 0.6rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .tagify__tag {
        font-size: 0.75rem;
        padding: 0.45rem 0.7rem;
        min-height: 30px;
        margin: 0.25rem 0.25rem 0.25rem 0;
    }
    
    .tagify__tag__removeBtn {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .tag-icon {
        width: 14px;
        height: 14px;
    }
    
    .search-hint {
        font-size: 0.7rem;
        padding-left: 0.8rem;
    }
}

/* Filter Container */
.filter-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 0 0.1rem 0;
}

.filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag-filter {
    padding: 0.45rem 1.1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Couleurs spécifiques pour chaque tag */
.tag-filter[data-tag="dbt"] {
    border-color: #FF694B;
    color: #FF694B;
    background: rgba(255, 105, 75, 0.15);
}

.tag-filter[data-tag="dbt"]:hover {
    background: rgba(255, 105, 75, 0.25);
}

.tag-filter[data-tag="dbt"].active {
    background: #FF694B;
    color: white;
}

.tag-filter[data-tag="DuckDB"] {
    border-color: #FFF000;
    color: #d4c700;
    background: rgba(255, 240, 0, 0.15);
}

.tag-filter[data-tag="DuckDB"]:hover {
    background: rgba(255, 240, 0, 0.25);
}

.tag-filter[data-tag="DuckDB"].active {
    background: #FFF000;
    color: #000000;
}

.tag-filter[data-tag="Snowflake"] {
    border-color: #29B5E8;
    color: #29B5E8;
    background: rgba(41, 181, 232, 0.15);
}

.tag-filter[data-tag="Snowflake"]:hover {
    background: rgba(41, 181, 232, 0.25);
}

.tag-filter[data-tag="Snowflake"].active {
    background: #29B5E8;
    color: white;
}

.tag-filter[data-tag="dltHub"] {
    border-color: rgb(25 25 55);
    color: rgb(25 25 55);
    background: rgba(25, 25, 55, 0.15);
}

.tag-filter[data-tag="dltHub"]:hover {
    background: rgba(25, 25, 55, 0.25);
}

.tag-filter[data-tag="dltHub"].active {
    background: rgb(25 25 55);
    color: white;
}

.tag-filter[data-tag="BigQuery"] {
    border-color: #4285F4;
    color: #4285F4;
    background: rgba(66, 133, 244, 0.15);
}

.tag-filter[data-tag="BigQuery"]:hover {
    background: rgba(66, 133, 244, 0.25);
}

.tag-filter[data-tag="BigQuery"].active {
    background: #4285F4;
    color: white;
}

.tag-filter:hover {
    transform: translateY(-2px);
}

.tag-filter.active {
    opacity: 1 !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
    font-weight: 700;
}

/* Ajouter des ombres spécifiques pour chaque tag actif */
.tag-filter[data-tag="dbt"].active {
    box-shadow: 0 0 0 4px rgba(255, 105, 75, 0.5);
}

.tag-filter[data-tag="DuckDB"].active {
    box-shadow: 0 0 0 4px rgba(255, 240, 0, 0.7);
}

.tag-filter[data-tag="Snowflake"].active {
    box-shadow: 0 0 0 4px rgba(41, 181, 232, 0.5);
}

.tag-filter[data-tag="dltHub"].active {
    box-shadow: 0 0 0 4px rgba(25, 25, 55, 0.6);
}

.tag-filter[data-tag="BigQuery"].active {
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.5);
}

/* Date Filter */
.date-filter-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.date-filter {
    padding: 0.6rem 1.5rem;
    padding-right: 2.5rem;
    border: 2px solid #4a5568;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.date-filter:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
}

.date-filter option {
    background: white;
    color: #333;
}

.date-order-btn {
    padding: 0.6rem;
    border: 2px solid #4a5568;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.date-order-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
}

.date-order-btn svg {
    fill: #4a5568;
}

.date-order-btn.desc svg {
    transform: rotate(180deg);
}

.date-order-btn.asc svg {
    transform: rotate(0deg);
}

/* Bouton pour vider les filtres - dans la search bar */
.search-container .clear-filters-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #a0aec0;
    border: none;
    border-radius: 50%;
    padding: 0.4rem;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.search-container .clear-filters-btn:hover {
    background: #f7fafc;
    color: #ef4444;
}

.search-container .clear-filters-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-container .clear-filters-btn svg {
    width: 14px;
    height: 14px;
}

/* Conteneur wrapper pour les cartes */
.article-card-wrapper {
    margin-bottom: 1rem;
}

/* Article card - Avec image à l'intérieur après la bordure */
.article-card {
    background: white;
    border-radius: 10px;
    padding: 0; /* Pas de padding global */
    box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex !important;
    align-items: stretch;
    min-height: 50px;
    /* Styles pour les liens */
    text-decoration: none !important;
    color: inherit !important;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: var(--border-gradient, #667eea);
}

/* Image thumbnail - À l'intérieur, après la bordure */
.article-thumbnail {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    width: auto;
    height: 100%;
    min-width: 70px;
    max-width: 140px;
    min-height: 70px;
    margin-left: 4px; /* Après la bordure */
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo de domaine - taille fixe et centré */
.article-thumbnail img[src*="logo-"] {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 0px 0px 0px 0px;
    opacity: 0.8;
}

/* Conteneur du logo - centré verticalement dans le bloc article */
.article-thumbnail:has(img[src*="logo-"]) {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* Image de podcast - centrée verticalement avec le reste du bloc */
.article-card:has(.article-category.cat-podcasts) .article-thumbnail {
    align-self: center;
}

/* Contenu texte de l'article */
.article-content-text {
    flex: 1;
    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* Quand un logo est présent, pas de padding à gauche */
.article-card:has(.article-thumbnail img[src*="logo-"]) .article-content-text {
    padding-left: 0rem;
}

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

.article-card * {
    pointer-events: none;
}

.article-card:visited {
    color: inherit !important;
}

.article-card:active {
    color: inherit !important;
}

.article-card:focus {
    outline: none;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: var(--border-gradient, #667eea);
}

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

.article-category {
    position: absolute;
    top: 0.9rem;
    right: 1.2rem;
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Couleurs spécifiques pour chaque catégorie */
.article-category.cat-blog {
    background: #EA4335;
}

.article-category.cat-tutorial {
    background: #3b82f6;
}

.article-category.cat-news {
    background: #FBBC04;
}

.article-category.cat-release-notes,
.article-category.cat-release-note,
.article-category.cat-release {
    background: #34A853;
}

.article-category.cat-documentation {
    background: #06b6d4;
}

.article-category.cat-meetups {
    background: #4285F4;
}

.article-category.cat-podcasts {
    background: #202124;
}

.article-category.cat-announcement {
    background: #ef4444;
}

.article-category.cat-guide {
    background: #9AA0A6;
}

.article-category.cat-case-study {
    background: #14b8a6;
}

.article-card .category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-card h2 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.3rem;
    padding-right: 120px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-card .excerpt {
    color: #4a5568;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tags-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Couleurs spécifiques pour chaque tag dans les articles */
.article-tag.tag-dbt {
    background: #FF694B;
    color: white;
}

.article-tag.tag-DuckDB {
    background: #FFF000;
    color: #000000;
}

.article-tag.tag-Snowflake {
    background: #29B5E8;
    color: white;
}

.article-tag.tag-dltHub {
    background: rgb(25 25 55);
    color: white;
}

.article-tag.tag-BigQuery {
    background: #4285F4;
    color: white;
}

.article-card .meta {
    display: flex;
    gap: 0.8rem;
    color: #718096;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 0; /* Permet aux enfants de se rétrécir */
}

.article-card .meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
    max-width: 180px; /* Limiter la largeur pour éviter les débordements */
    min-width: 0; /* Permet au texte de se rétrécir */
    flex-shrink: 1; /* Permet de se rétrécir si nécessaire */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pour les très petits écrans, réduire encore la largeur max */
@media (max-width: 480px) {
    .article-card .meta span {
        max-width: 120px;
    }
}

.no-results {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* En-tête de groupe de date */
.date-group-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    margin: 1.2rem 0 0.6rem 0;
    padding: 0 0 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    text-transform: none;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    background-color: #f5f5f5;
    z-index: 90;
    margin-top: 0;
    margin-bottom: 0.6rem;
    margin-left: 0;
    margin-right: 0;
    will-change: transform;
    width: 100%;
    box-sizing: border-box;
    /* S'assurer que le fond est opaque pour masquer le contenu qui défile */
    backdrop-filter: none;
}

/* S'assurer que le conteneur parent permet le sticky */
main.container {
    overflow: visible;
}

body {
    overflow-x: hidden;
}

.date-group-header:first-child {
    margin-top: 0;
}

/* Réduire l'espace entre filter-controls et le premier date-group-header */
.filter-controls + .articles-container > .date-group-header:first-child,
.filter-controls ~ .articles-container > .date-group-header:first-child,
.articles-container > .date-group-header:first-child {
    margin-top: 0.1rem;
}

/* Responsive pour les en-têtes de date */
@media (max-width: 768px) {
    .date-group-header {
        font-size: 0.8rem;
        margin: 1rem 0 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .date-group-header {
        font-size: 0.75rem;
        margin: 0.8rem 0 0.4rem 0;
        padding: 0 0 0.25rem 0;
    }
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0.2rem 0 2rem 0;
    padding: 1.5rem 0;
}

.pagination-info {
    color: #718096;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #718096;
    background: #f7fafc;
    color: #2d3748;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7fafc;
}

.pagination-btn.pagination-number {
    min-width: 44px;
}

.pagination-btn.pagination-number.active {
    background: #4a5568;
    color: white;
    border-color: #4a5568;
}

.pagination-btn.pagination-number.active:hover {
    background: #2d3748;
    border-color: #2d3748;
    transform: translateY(-2px);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        gap: 0.8rem;
        margin: 0.2rem 0 1.5rem 0;
        padding: 1rem 0;
    }

    .pagination-info {
        font-size: 0.85rem;
    }

    .pagination-controls {
        gap: 0.4rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 40px;
        height: 40px;
    }

    .pagination-btn.pagination-number {
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        gap: 0.6rem;
        margin: 0.1rem 0 1rem 0;
        padding: 0.8rem 0;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    .pagination-controls {
        gap: 0.3rem;
    }

    .pagination-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        min-width: 36px;
        height: 36px;
    }

    .pagination-btn.pagination-number {
        min-width: 36px;
    }

    /* Masquer les ellipses et réduire le nombre de pages visibles sur mobile */
    .pagination-ellipsis {
        display: none;
    }
}

/* Article Detail */
.article-detail {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-detail .category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.article-detail h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-detail .meta {
    display: flex;
    gap: 2rem;
    color: #718096;
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-detail .meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-detail .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-detail .content p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

footer a {
    color: #63b3ed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 0.3rem 0 0.1rem 0;
    }
    
    .search-container .clear-filters-btn {
        right: 0.6rem;
        width: 24px;
        height: 24px;
    }
    
    .search-container .clear-filters-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .filter-container {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tag-filter {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .date-filter-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .date-filter {
        padding: 0.4rem 1rem;
        padding-right: 2rem;
        font-size: 0.8rem;
    }
    
    .date-order-btn {
        padding: 0.4rem;
        min-width: auto;
        height: auto;
        font-size: 0.8rem;
    }
    
    .search-input {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .article-card {
        padding: 0;
        min-height: 50px;
        display: flex;
        align-items: stretch;
    }

    .article-card::before {
        border-radius: 6px 0 0 6px;
    }

    .article-thumbnail {
        min-width: 60px;
        max-width: 60px;
        border-radius: 0;
        min-height: 60px;
        aspect-ratio: 1 / 1;
        height: 100%;
        margin-left: 4px;
    }

    /* Image de podcast - centrée verticalement sur tablette */
    .article-card:has(.article-category.cat-podcasts) .article-thumbnail {
        align-self: center;
    }

    .article-content-text {
        padding-top: 0.6rem;
        padding-right: 0.8rem;
        padding-bottom: 0.6rem;
        padding-left: 1rem;
        flex: 1;
    }

    .article-card h2 {
        font-size: 1rem;
    }

    .article-detail {
        padding: 1.5rem 1rem;
    }

    .article-detail h1 {
        font-size: 1.5rem;
    }

    .article-detail .meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive: réduire encore plus sur très petit écran (smartphone) */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 8px;
    }
    
    header {
        padding: 0.6rem 0 0.4rem 0;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .language-toggle {
        top: 12px;
        right: 12px;
        width: 80px;
        height: 36px;
    }
    
    .language-toggle .lang-option {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .category-filter-controls {
        padding: 1rem 0 0.6rem 0;
    }
    
    .category-filter-container {
        gap: 0.5rem;
    }
    
    .category-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }
    
    .search-container {
        padding: 0.4rem 0 0.8rem 0;
    }
    
    .search-input {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-controls {
        padding: 0.4rem 0 0.1rem 0;
        gap: 0.6rem;
    }
    
    .filter-container {
        gap: 0.5rem;
    }
    
    .tag-filter {
        padding: 0.35rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 16px;
    }
    
    .date-filter {
        padding: 0.4rem 0.9rem;
        padding-right: 2rem;
        font-size: 0.75rem;
    }
    
    .date-order-btn {
        padding: 0.4rem;
        min-width: auto;
        height: auto;
        font-size: 0.75rem;
    }

    .article-card {
        padding: 0;
        border-radius: 0 7px 7px 0;
        font-size: 0.9rem;
        min-height: 50px;
        display: flex;
        align-items: stretch;
    }

    .article-card::before {
        border-radius: 7px 0 0 7px;
    }

    .article-thumbnail {
        min-width: 30px;
        max-width: 30px;
        border-radius: 0;
        min-height: 30px;
        aspect-ratio: 1 / 1;
        height: auto;
        margin-left: 4px;
        margin-top: 2px;
        align-self: flex-start;
    }

    /* Image de podcast - centrée verticalement et plus grande sur mobile */
    .article-card[data-category="Podcasts"] .article-thumbnail {
        align-self: center;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 12px; /* Espace à gauche pour les podcasts sur mobile */
        min-width: 70px;
        max-width: 70px;
        min-height: 70px;
    }

    /* Logo de domaine sur mobile - taille réduite */
    .article-thumbnail img[src*="logo-"] {
        width: 15px;
        height: 15px;
        object-fit: contain;
        padding: 0px 0px 0px 0px;
        opacity: 0.8;
    }

    .article-content-text {
        padding-top: 0.5rem;
        padding-right: 0.6rem;
        padding-bottom: 0.5rem;
        padding-left: 0.7rem;
        flex: 1;
    }

    .article-card h2 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        padding-right: 85px;
    }

    .article-category {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        top: 0.7rem;
        right: 0.8rem;
        border-radius: 3px;
    }

    .article-card .category {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.4rem;
        border-radius: 12px;
    }

    .article-card .excerpt {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        line-height: 1.45;
    }

    .article-footer {
        gap: 0.5rem;
    }

    .tags-container {
        gap: 0.3rem;
        margin-bottom: 0;
    }

    .article-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        border-radius: 10px;
    }

    .article-card .meta {
        gap: 0.5rem;
        font-size: 0.7rem;
    }
    
    .article-card .meta span {
        max-width: 120px;
    }

    .article-detail {
        padding: 1rem 0.7rem;
        margin: 0.6rem 0;
        border-radius: 8px;
    }

    .article-detail h1 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .article-detail .category {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.6rem;
        border-radius: 12px;
    }

    .article-detail .meta {
        gap: 0.5rem;
        font-size: 0.75rem;
        padding-bottom: 0.6rem;
        margin-bottom: 1rem;
    }

    .article-detail .content {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .article-detail .content p {
        margin-bottom: 0.6rem;
    }
    
    footer {
        padding: 1.2rem 0;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Skeleton Loaders */
@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loader {
    margin-bottom: 1rem;
}

.skeleton-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex !important;
    align-items: stretch;
    min-height: 50px;
    pointer-events: none;
    width: 100%;
}

.skeleton-border {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(
        180deg,
        #e8e8e8 0%,
        #d8d8d8 25%,
        #e2e8f0 50%,
        #d8d8d8 75%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 4s ease-in-out infinite;
}

.skeleton-thumbnail {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    width: 100px;
    min-width: 100px;
    min-height: 100px;
    background: linear-gradient(
        90deg,
        #f5f5f5 0%,
        #e8e8e8 25%,
        #f0f0f0 50%,
        #e8e8e8 75%,
        #f5f5f5 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 4s ease-in-out infinite;
    border-radius: 0;
    margin-left: 4px;
    height: 100%;
}

.skeleton-line {
    background: linear-gradient(
        90deg,
        #f5f5f5 0%,
        #e8e8e8 25%,
        #f0f0f0 50%,
        #e8e8e8 75%,
        #f5f5f5 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 4s ease-in-out infinite;
    border-radius: 4px;
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.2rem;
    width: 70%;
    margin-bottom: 0.6rem;
    border-radius: 4px;
}

.skeleton-line-medium {
    width: 85%;
    height: 0.9rem;
    border-radius: 4px;
}

.skeleton-line-short {
    width: 60%;
    height: 0.9rem;
    border-radius: 4px;
}

.skeleton-date {
    width: 120px;
    height: 0.8rem;
    margin-top: auto;
    border-radius: 4px;
}

/* Responsive skeletons */
@media (max-width: 768px) {
    .skeleton-thumbnail {
        min-width: 60px;
        max-width: 60px;
        min-height: 60px;
        width: 60px;
    }
    
    .skeleton-title {
        width: 75%;
        height: 1rem;
    }
    
    .skeleton-line-medium {
        width: 90%;
        height: 0.85rem;
    }
    
    .skeleton-line-short {
        width: 65%;
        height: 0.85rem;
    }
    
    .skeleton-line {
        height: 0.85rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .skeleton-thumbnail {
        min-width: 30px;
        max-width: 30px;
        min-height: 30px;
        width: 30px;
        margin-left: 4px;
        margin-top: 2px;
    }
    
    .skeleton-title {
        width: 80%;
        height: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .skeleton-line {
        height: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .skeleton-line-medium {
        width: 95%;
        height: 0.8rem;
    }
    
    .skeleton-line-short {
        width: 70%;
        height: 0.8rem;
    }
    
    .skeleton-date {
        width: 100px;
        height: 0.7rem;
    }
    
    .skeleton-card {
        min-height: 50px;
    }
    
    .skeleton-card .article-content-text {
        padding-top: 0.5rem;
        padding-right: 0.6rem;
        padding-bottom: 0.5rem;
        padding-left: 0.7rem;
    }
}
