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

:root {
    --google-blue: #1a73e8;
    --google-blue-hover: #1765cc;
    --google-grey: #5f6368;
    --google-light-grey: #f8f9fa;
    --google-border: #dfe1e5;
    --google-text: #202124;
}

body {
    font-family: arial, sans-serif;
    background: white;
    color: var(--google-text);
    line-height: 1.6;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.search-box-wrapper {
    text-align: center;
    max-width: 860px;
    width: 100%;
}

.home-brand-mark {
    display: inline-block;
}

.logo.home-brand-logo {
    display: inline-block;
    margin: 0 0 30px;
    font-size: clamp(6rem, 16vw, 9.5rem);
    line-height: 0.88;
    letter-spacing: -4px;
}

.home-brand-image {
    width: min(1240px, 99vw);
    max-width: 1240px;
    max-height: none;
    height: auto;
    margin: 0 0 30px;
}

h1 {
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4285f4 0%, #ea4335 25%, #fbbc04 50%, #34a853 75%, #4285f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.subtitle {
    color: #5f6368;
    max-width: 620px;
    margin: 0 auto 30px;
}

.search-form {
    max-width: 620px;
    margin: 0 auto 30px;
}

.features {
    max-width: 620px;
    margin: 6px auto 0;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
        linear-gradient(90deg, rgba(66, 133, 244, 0.55) 0%, rgba(234, 67, 53, 0.55) 33%, rgba(251, 188, 4, 0.55) 66%, rgba(52, 168, 83, 0.55) 100%) border-box;
}

.feature-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
    color: #80868b;
}

.feature-pill + .feature-pill::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(135deg, #4285f4 0%, #ea4335 35%, #fbbc04 65%, #34a853 100%);
}

.feature-pill:first-child {
    padding-left: 0;
}

.feature-pill:last-child {
    padding-right: 0;
}

.home-version {
    width: fit-content;
    margin: 10px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box,
        linear-gradient(90deg, rgba(66, 133, 244, 0.45) 0%, rgba(234, 67, 53, 0.45) 33%, rgba(251, 188, 4, 0.45) 66%, rgba(52, 168, 83, 0.45) 100%) border-box;
}

.home-version-text {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #4285f4 0%, #ea4335 33%, #fbbc04 66%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-version-link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-version-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(32, 33, 36, 0.08);
}
@media (max-width: 768px) {
    .search-box-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .search-input-wrapper {
        padding: 10px 15px;
        max-width: 100%;
    }

    .search-input {
        font-size: 16px;
        min-width: 0;
    }

    .logo.home-brand-logo {
        font-size: clamp(4.6rem, 16vw, 7rem);
        letter-spacing: -2.4px;
    }

    .home-brand-image {
        width: min(760px, 98vw);
        max-width: 760px;
    }

    .subtitle {
        max-width: 100%;
    }

    .search-form,
    .features {
        max-width: 100%;
    }

    .features {
        width: auto;
        gap: 6px 0;
        padding: 5px 10px;
    }

    .feature-pill {
        padding: 0 10px;
        font-size: 10.5px;
    }

    .feature-pill:first-child,
    .feature-pill:last-child {
        padding-left: 10px;
        padding-right: 10px;
    }

    .feature-pill + .feature-pill::before {
        width: 4px;
        height: 4px;
    }

    .home-version {
        margin-top: 8px;
        padding: 4px 8px;
    }

    .home-version-text {
        font-size: 10px;
    }
}

.home-topbar {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 10;
}

.home-top-link {
    color: var(--google-grey);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.home-top-link:hover {
    color: var(--theme-color, var(--google-blue));
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 20px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    transition: box-shadow 0.2s;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.4);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #4285f4;
    padding: 5px;
    display: flex;
    align-items: center;
}

/* Page de résultats */
.results-page {
    background: white;
}

.header {
    background: white;
    border-bottom: 1px solid var(--google-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 1.375rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(90deg, #4285f4 0%, #ea4335 25%, #fbbc04 50%, #34a853 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-search-form {
    flex: 1;
    max-width: 692px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--google-border);
    border-radius: 24px;
    padding: 8px 16px;
    background: white;
    transition: box-shadow 0.2s;
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: arial, sans-serif;
    background: transparent;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-icon {
    color: var(--google-grey);
    margin-right: 12px;
    flex-shrink: 0;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--google-blue);
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-button:hover {
    background: var(--google-light-grey);
}

.search-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--google-border);
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--google-grey);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s;
    position: relative;
}

.tab:hover {
    color: var(--google-text);
}

.tab.active {
    color: var(--theme-color, var(--google-blue));
    border-bottom-color: transparent;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-color, #4285f4) 0%, #ea4335 35%, #fbbc04 68%, #34a853 100%);
}

.tab-label {
    display: inline-block;
}

.tab.active .tab-label {
    background: linear-gradient(90deg, var(--theme-color, #4285f4) 0%, #ea4335 35%, #fbbc04 68%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.tab.active svg {
    color: var(--theme-color, var(--google-blue));
}

.tab svg {
    width: 16px;
    height: 16px;
}

.results-container {
    max-width: 652px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.results-info {
    color: #70757a;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 0 0 4px 0;
}

.result-item {
    margin-bottom: 28px;
    max-width: 600px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.result-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
}

.result-favicon[hidden] {
    display: none !important;
}

.result-url-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.result-url {
    color: #202124;
    font-size: 14px;
    line-height: 20px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 3px;
}

.result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.result-title a:visited {
    color: #681da8;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-snippet {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
    word-wrap: break-word;
}

.no-results {
    padding: 40px 20px;
}

.no-results p {
    color: var(--google-text);
    font-size: 16px;
    margin-bottom: 20px;
}

.no-results-hint {
    font-weight: 500;
    margin-top: 30px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.suggestions-list li {
    color: var(--google-grey);
    font-size: 14px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.suggestions-list li:before {
    content: "•";
    position: absolute;
    left: 0;
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 30px 0 40px;
    padding-top: 20px;
}

.pagination-link {
    color: var(--google-text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(90deg, rgba(66, 133, 244, 0.7) 0%, rgba(234, 67, 53, 0.7) 35%, rgba(251, 188, 4, 0.7) 68%, rgba(52, 168, 83, 0.7) 100%) border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.pagination-link:hover {
    transform: none;
    box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08);
}

.pagination-label {
    display: inline-block;
    background: linear-gradient(90deg, var(--theme-color, #4285f4) 0%, #ea4335 35%, #fbbc04 68%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}

.pagination-current {
    color: var(--google-text);
    font-weight: 500;
    padding: 10px 16px;
    background: var(--google-light-grey);
    border-radius: 4px;
    font-size: 14px;
}

.error-message,
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
}

@media (max-width: 768px) {
    .header-search-form {
        width: 100%;
    }

    .search-box {
        padding: 8px 12px;
    }

    .search-input-wrapper {
        padding: 10px 15px;
    }

    .header-search-input,
    .search-input {
        font-size: 16px;
        min-width: 0;
    }

    .subtitle {
        margin-bottom: 22px;
    }

    .home-topbar {
        top: 14px;
        right: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .header-search-form {
        width: 100%;
    }

    .search-tabs {
        padding: 0 16px;
        gap: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .results-container {
        padding: 0 16px;
    }

    .result-title {
        font-size: 18px;
    }
}


/* Admin Link */
.admin-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--google-border);
}

.admin-link a {
    color: var(--google-grey);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.admin-link a:hover {
    color: var(--google-blue);
}

/* Theme Color Support */
h1 {
    background: linear-gradient(90deg, var(--theme-color, #4285f4) 0%, #ea4335 25%, #fbbc04 50%, #34a853 75%, var(--theme-color, #4285f4) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.logo {
    background: linear-gradient(90deg, var(--theme-color, #4285f4) 0%, #ea4335 25%, #fbbc04 50%, #34a853 75%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.search-button,
.icon-button {
    color: var(--theme-color, var(--google-blue)) !important;
}

.tab.active {
    color: var(--theme-color, var(--google-blue)) !important;
    border-bottom-color: transparent !important;
}


/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--google-light-grey);
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-title {
    padding: 8px;
    font-size: 13px;
    color: var(--google-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-item a {
    text-decoration: none;
    color: inherit;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--google-light-grey);
}

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

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    padding-left: 4px;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--google-text);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-source {
    font-size: 12px;
    color: var(--google-grey);
}

.video-item a {
    text-decoration: none;
    color: inherit;
}

/* News Items */
.news-item {
    margin-bottom: 32px;
    max-width: 600px;
}

.news-source {
    color: var(--google-grey);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .image-item img {
        height: 150px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .image-item img {
        height: 120px;
    }
}


/* Logo Image Support */
.logo-image {
    max-width: 300px;
    max-height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.header-logo-image {
    max-height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 200px;
        max-height: 60px;
    }
    
    .header-logo-image {
        max-height: 32px;
        max-width: 150px;
    }
}


/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* News with Images */
.news-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 800px;
}

.news-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
}


/* Page À propos */
.about-page-layout {
    background: white;
}

.about-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-header-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
        linear-gradient(90deg, rgba(66, 133, 244, 0.5) 0%, rgba(234, 67, 53, 0.5) 33%, rgba(251, 188, 4, 0.5) 66%, rgba(52, 168, 83, 0.5) 100%) border-box;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.about-header-link:hover {
    color: #202124;
    box-shadow: 0 2px 6px rgba(32, 33, 36, 0.1);
    transform: translateY(-1px);
}

.about-content {
    max-width: 760px;
    margin-top: 28px;
    padding-bottom: 48px;
}

.about-content p {
    color: #4d5156;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content a {
    color: var(--theme-color, var(--google-blue));
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-content a.inline-gitlab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding: 4px 10px;
    border: 1px solid rgba(223, 225, 229, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #3c4043;
    vertical-align: middle;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(32, 33, 36, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.about-content a.inline-gitlab-link:hover {
    text-decoration: none;
    border-color: rgba(252, 109, 38, 0.45);
    box-shadow: 0 2px 6px rgba(32, 33, 36, 0.1);
    transform: translateY(-1px);
}

.inline-gitlab-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.about-content strong {
    color: var(--google-text);
    font-weight: 500;
}

.about-block {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--google-border);
}

.about-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.about-page-layout h1.about-page-title {
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--google-text) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--google-text) !important;
    background-clip: initial !important;
}

.about-block-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--google-text);
    margin-bottom: 14px;
}

.about-intro {
    font-size: 16px;
    color: #3c4043;
}

.about-list,
.about-steps-list {
    padding-left: 20px;
    color: #4d5156;
    margin-top: 12px;
}

.about-list li,
.about-steps-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-steps-list strong {
    color: var(--google-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-header-actions {
        width: 100%;
        gap: 14px;
    }

    .about-header-link {
        font-size: 12px;
        padding: 7px 12px;
    }

    .about-content {
        margin-top: 20px;
    }

    body.about-page-layout h1.about-page-title {
        font-size: 30px;
    }

    .about-block-title {
        font-size: 22px;
    }
}


/* Résumé IA */
.ai-summary {
    background: #f8f9fa;
    border: 1px solid var(--google-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 28px;
    color: var(--google-text);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.ai-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--theme-color, #4285f4) 0%, #ea4335 33%, #fbbc04 66%, #34a853 100%);
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #3c4043;
}

.ai-summary-header svg {
    flex-shrink: 0;
    color: var(--theme-color, var(--google-blue));
}

.ai-summary-header strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--google-text);
}

.ai-badge {
    background: white;
    border: 1px solid var(--google-border);
    color: var(--google-grey);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}

.ai-summary-content {
    color: #4d5156;
    line-height: 1.7;
    font-size: 14px;
}

.ai-summary-sources {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eaed;
}

.ai-summary-sources-label {
    display: block;
    margin-bottom: 10px;
    color: #5f6368;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-summary-sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-summary-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--google-border);
    border-radius: 999px;
    background: white;
    color: #3c4043;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ai-summary-source-favicon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-summary-source-favicon[hidden] {
    display: none !important;
}

.ai-summary-source-link:hover {
    color: var(--theme-color, var(--google-blue));
    border-color: rgba(66, 133, 244, 0.28);
    background: #fffdf7;
}

.faq-section {
    margin: 8px 0 24px;
    max-width: 600px;
}

.faq-section-header {
    display: flex;
    align-items: center;
    padding: 0 0 14px;
}

.faq-section-header strong {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--google-text);
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--google-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #4285f4 0%, #ea4335 33%, #fbbc04 66%, #34a853 100%);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 13px 14px 13px 18px;
    background: white;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: #fafafb;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    color: var(--google-text);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.faq-toggle {
    width: 11px;
    height: 11px;
    border-right: 2px solid #5f6368;
    border-bottom: 2px solid #5f6368;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: -4px;
}

.faq-item[open] .faq-toggle {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.faq-answer {
    padding: 0 14px 14px 18px;
    color: #4d5156;
    font-size: 13px;
    line-height: 1.6;
    background: white;
    border-top: 1px solid #eef1f4;
}

.faq-answer-text {
    margin: 0;
}

.faq-source {
    margin-top: 10px;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ai-summary {
        padding: 15px;
    }
    
    .ai-summary-header {
        font-size: 14px;
    }
    
    .ai-summary-content {
        font-size: 14px;
    }

    .ai-summary-sources {
        margin-top: 14px;
        padding-top: 12px;
    }

    .ai-summary-source-link {
        font-size: 11px;
        padding: 5px 8px;
    }

    .ai-summary-source-favicon {
        width: 12px;
        height: 12px;
    }

    .faq-section-header,
    .faq-item summary,
    .faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .faq-question {
        font-size: 14px;
    }

    .faq-section-header strong {
        font-size: 18px;
    }
}


/* Lien À propos en haut à droite */
.about-link-top {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.about-link-top a {
    color: #5f6368;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
        linear-gradient(90deg, rgba(66, 133, 244, 0.55) 0%, rgba(234, 67, 53, 0.55) 33%, rgba(251, 188, 4, 0.55) 66%, rgba(52, 168, 83, 0.55) 100%) border-box;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.about-link-top a:hover {
    color: #202124;
    box-shadow: 0 2px 6px rgba(32, 33, 36, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .about-link-top {
        top: 10px;
        right: 10px;
    }
    
    .about-link-top a {
        font-size: 12px;
        padding: 6px 12px;
    }
}


/* Page À propos - Styles complets */
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.about-page h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.about-section {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-section h3 {
    color: #4285f4;
    font-size: 24px;
    margin-bottom: 15px;
}

.about-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.comparison-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.comparison-item.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.comparison-item h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    padding: 8px 0;
    font-size: 14px;
}

.how-it-works {
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: #4285f4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.values-list li:last-child {
    border-bottom: none;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: #4285f4;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #4285f4;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.back-link a:hover {
    background: #4285f4;
    color: white;
}

@media (max-width: 768px) {
    .about-page {
        padding: 15px;
    }
    
    .about-page h2 {
        font-size: 24px;
    }
    
    .about-section {
        padding: 15px;
    }
    
    .about-section h3 {
        font-size: 20px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
}
