/* ============================================ */
/* RESET GÉNÉRAL
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================ */
/* RESPONSIVE MOBILE
/* ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ============================================ */
/* TYPOGRAPHIE - RESPONSIVE AMÉLIORÉE
/* ============================================ */
h1, h2, h3 {
    font-family: "Anton", sans-serif !important;
    letter-spacing: 2px !important;
    font-weight: 500 !important;
}

h1 { font-size: clamp(24px, 5vw, 60px) !important; }
h2 { font-size: clamp(22px, 4.5vw, 50px) !important; }
h3 { font-size: clamp(18px, 4vw, 40px) !important; }
p  { font-size: clamp(13px, 3vw, 16px) !important; }

/* ============================================ */
/* HTML & BODY - MODE SOMBRE PAR DÉFAUT
/* ============================================ */
html {
    height: 100%;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    background: #080b10;
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    min-height: 100%;
    color: #e2e8f0;
    display: block;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================ */
/* MODE CLAIR
/* ============================================ */
body.light {
    background: #f8fafc;
    color: #1e293b;
}

/* L'ACCUEIL RESTE EN MODE SOMBRE MAIS LISIBLE */
body.light .section-accueil {
    background: #0e1318 !important;
}

body.light .section-accueil .card-search {
    background: rgba(30, 35, 45, 0.95) !important;
    border-color: rgba(67, 235, 255, 0.3) !important;
}

body.light .section-accueil .input-zone input {
    color: #ffffff !important;
}

body.light .section-accueil .input-zone input::placeholder {
    color: #9ca3af !important;
}

body.light .section-accueil .card-info p {
    color: #cbd5e1 !important;
}

body.light .section-accueil .header h2 {
    color: #ffffff !important;
}

body.light .section-accueil .header p {
    color: #94a3b8 !important;
}

body.light .section-accueil .color-logo {
    color: #43EBFF !important;
}

/* LE RESTE DU SITE EN MODE CLAIR NORMAL */
body.light .card-search:not(.section-accueil .card-search) {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(67, 235, 255, 0.3);
}

body.light .input-zone input:not(.section-accueil .input-zone input) {
    color: #111117 !important;
}

body.light .card {
    background: transparent;
    border: none;
}

body.light .choice-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light .choice-btn.active {
    background: #43EBFF;
    color: #080b10;
}

body.light .ft {
    background: #ffffff;
}

body.light .ft-link {
    color: #475569;
}

body.light .result-page {
    background: #f8fafc;
}

body.light .result-header {
    background: rgba(255, 255, 255, 0.95);
}

body.light .result-title {
    color: #1e293b;
}

body.light .result-choices {
    background: rgba(255, 255, 255, 0.8);
}

body.light .faq-item {
    background: rgba(255, 255, 255, 0.9);
}

body.light .ft-lang-menu {
    background: #ffffff;
}

body.light .error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* Couleurs des sections hors accueil */
body.light #Sites { background-color: #f0f0f0; }
body.light #Formats { background-color: #fafafa; }
body.light #FAQ { background-color: #f0f0f0; }

/* ============================================ */
/* COULEURS DE FOND DES SECTIONS
/* ============================================ */
#Sites { background-color: #050505; }
#Formats { background-color: #101010; }
#FAQ { background-color: #050505; }

body.light #Sites { background-color: #f0f0f0; }
body.light #Formats { background-color: #fafafa; }
body.light #FAQ { background-color: #f0f0f0; }

/* ============================================ */
/* SECTIONS PLEIN ÉCRAN
/* ============================================ */
.section {
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 1.5rem;
}

.section-accueil {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #0e1318 !important;
}

body.light .section-accueil {
    background: #0e1318 !important;
}

/* ============================================ */
/* CONTAINER CENTRÉ
/* ============================================ */
.container {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* CHARGEMENT PLEIN ECRAN
/* ============================================ */

/* LOADER PLEIN ÉCRAN */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 11, 16, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loader-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(67, 235, 255, 0.2);
    border-top-color: #43EBFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

.loader-overlay p {
    color: #43EBFF;
    font-size: 0.9rem;
}

body.light .loader-overlay {
    background: rgba(240, 242, 248, 0.95);
}

/* ============================================ */
/* ACCUEIL - IMAGE DE FOND
/* ============================================ */
#Accueil {
    position: relative;
    overflow: hidden;
}

#Accueil::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://storage.needpix.com/rsynced_images/dark-background-3494082_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: translateY(var(--parallax, 0px)) translateZ(0);
    will-change: transform;
}

#Accueil::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* ============================================ */
/* HEADER
/* ============================================ */
.header {
    text-align: center;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 2;
}

.header img {
    height: auto;
    width: 70px;
    max-width: 20%;
}

.color-logo {
    color: #43ebff;
}

/* ============================================ */
/* QUOTA
/* ============================================ */
.quota {
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #94a3b8;
}

/* ============================================ */
/* CARD RECHERCHE
/* ============================================ */
.card-search {
    background: rgba(18, 18, 24, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(67, 235, 255, 0.15);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

body.light .card-search {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(67, 235, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-info {
    text-align: center;
}

/* ============================================ */
/* INPUT ZONE
/* ============================================ */
.input-zone {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-zone input {
    flex: 3;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #e2e8f0;
    font-size: clamp(14px, 4vw, 16px);
}

.input-zone input:focus {
    outline: none;
}

body.light .input-zone input {
    color: #1e293b;
}

#analyzeBtn {
    background: #43EBFF;
    border: none;
    border-radius: 999px;
    height: 38px;
    width: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: #0a0a0a;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s ease;
}

#analyzeBtn:active {
    transform: scale(0.95);
}

/* ============================================ */
/* CARD GÉNÉRIQUE
/* ============================================ */
.card {
    border-radius: 1.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
}

body.light .card {
    background: transparent;
    border: none;
}

/* ============================================ */
/* LOADER
/* ============================================ */
.loader {
    display: none;
    text-align: center;
    padding: 1rem;
}

.loader p {
    font-size: 0.75rem;
    color: #8aa0bc;
    margin-top: 0.5rem;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(67, 235, 255, 0.2);
    border-top-color: #43EBFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================ */
/* MESSAGE D'ERREUR
/* ============================================ */
.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: 1rem;
}

body.light .error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* ============================================ */
/* PREVIEW VIDÉO
/* ============================================ */
.preview {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.3s ease;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumbnail {
    width: 100px;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #1a1a24;
}

.thumbnail img {
    width: 100%;
}

.info {
    flex: 1;
}

.info p {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* ============================================ */
/* CHOIX DE QUALITÉ
/* ============================================ */
.choice-section {
    margin-top: 1rem;
}

.choice-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #43EBFF;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice-btn {
    background: #0c0c12;
    border: 1px solid #2a2a30;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: clamp(12px, 3vw, 14px);
    cursor: pointer;
    transition: all 0.2s;
    color: #e5e7eb;
}

.choice-btn:hover {
    border-color: #43EBFF;
}

.choice-btn.active {
    border-color: #43EBFF;
    background: rgba(67, 235, 255, 0.12);
    color: #43EBFF;
}

body.light .choice-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light .choice-btn:hover {
    border-color: #43EBFF;
    background: rgba(67, 235, 255, 0.1);
}

body.light .choice-btn.active {
    background: #43EBFF;
    color: #080b10;
    border-color: #43EBFF;
}

/* ============================================ */
/* BOUTONS DE TÉLÉCHARGEMENT
/* ============================================ */
.download-zone {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 1rem;
    font-size: clamp(12px, 3vw, 14px);
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #43EBFF;
    color: #0a0a0a;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #43EBFF;
    color: #43EBFF;
}

.btn-secondary:hover {
    background: rgba(67, 235, 255, 0.1);
    transform: translateY(-1px);
}

/* ============================================ */
/* GRILLE DES SITES SUPPORTÉS - RESPONSIVE PARFAIT
/* ============================================ */
.supported-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
    margin: 1rem 0 1.5rem 0;
}

.supported-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(67, 235, 255, 0.08);
    padding: 0.6rem 0.3rem;
    border-radius: 0.8rem;
    font-size: clamp(11px, 3vw, 13px);
    color: #7e8a9e;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: default;
}

.supported-item i {
    font-size: clamp(16px, 4vw, 20px);
    color: #43EBFF;
}

.supported-item:hover {
    border-color: rgba(67, 235, 255, 0.3);
    color: #43EBFF;
    background: rgba(67, 235, 255, 0.03);
    transform: translateY(-2px);
}

body.light .supported-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(67, 235, 255, 0.15);
    color: #475569;
}

body.light .supported-item:hover {
    background: rgba(67, 235, 255, 0.05);
    color: #43EBFF;
}

/* BOUTON VOIR TOUS LES SITES */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(67, 235, 255, 0.12) 0%, rgba(67, 235, 255, 0.05) 100%);
    border: 1px solid rgba(67, 235, 255, 0.35);
    border-radius: 3rem;
    padding: 0.7rem 1.5rem;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    color: #43EBFF;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.btn-view-all:hover {
    background: rgba(67, 235, 255, 0.2);
    border-color: #43EBFF;
    transform: translateY(-2px);
    gap: 0.8rem;
}

body.light .btn-view-all {
    background: rgba(0, 0, 0, 0.04);
    border-color: #43EBFF;
    color: #0a0a0a;
}

body.light .btn-view-all:hover {
    background: rgba(67, 235, 255, 0.15);
}

/* ============================================ */
/* BARRE D'ASTUCES
/* ============================================ */
.tips-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2rem;
}

.tips-item {
    font-size: 0.6rem;
    color: #6b7280;
}

.tips-item i {
    margin-right: 0.3rem;
    color: #43EBFF;
    font-size: 0.6rem;
}

/* ============================================ */
/* NAVIGATION FLOTTANTE - MOBILE FRIENDLY
/* ============================================ */
.nav {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    list-style: none;
    z-index: 9999;
}

.nav li {
    display: grid;
    place-items: center;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #43EBFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #0a0a0a;
    transition: transform 150ms;
    user-select: none;
}

.nav-btn:hover {
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

.dot {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(67, 235, 255, 0.15);
    border: 1px solid rgba(67, 235, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.nav.open .dot {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.dot a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-size: 0.95rem;
    color: #43EBFF;
}

.dot:hover {
    background: rgba(67, 235, 255, 0.3);
}

.dot::before {
    content: attr(data-label);
    position: absolute;
    right: calc(42px + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(67, 235, 255, 0.3);
    color: #43EBFF;
    font-size: 0.65rem;
    font-family: "Nunito", sans-serif;
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.dot:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

body.light .dot::before {
    background: rgba(255, 255, 255, 0.95);
    color: #43EBFF;
}

/* ============================================ */
/* FOOTER - RESPONSIVE SANS DÉPASSEMENT
/* ============================================ */
.ft {
    background: #0a0c10;
    border-top: 1px solid rgba(67, 235, 255, 0.1);
    padding: 2rem 1rem 1rem;
    font-family: "Nunito", sans-serif;
    color: #e2e8f0;
    scroll-snap-align: start;
}

body.light .ft {
    background: #ffffff;
    border-top-color: #e2e8f0;
}

.ft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.ft-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.ft-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-logo-name {
    font-size: 1rem;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .ft-logo-name {
    background: #1e293b;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ft-desc {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 200px;
}

.ft-col-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #43EBFF;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

body.light .ft-col-title {
    color: #1e293b;
}

.ft-link {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.45rem;
    transition: color 150ms;
}

.ft-link:hover {
    color: #43EBFF;
}

body.light .ft-link {
    color: #475569;
}

body.light .ft-link:hover {
    color: #43EBFF;
}

.ft-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 900px;
    margin: 0 auto 1rem;
}

body.light .ft-divider {
    border-top-color: #e2e8f0;
}

.ft-bottom {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ft-copy {
    font-size: 0.6rem;
    color: #4b5563;
}

.ft-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ft-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(67, 235, 255, 0.08);
    border: 1px solid rgba(67, 235, 255, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    color: #43EBFF;
    cursor: pointer;
    transition: background 150ms;
}

.ft-btn:hover {
    background: rgba(67, 235, 255, 0.18);
}

body.light .ft-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.light .ft-btn:hover {
    background: #e2e8f0;
}

.ft-lang-wrap {
    position: relative;
}

.ft-lang-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    background: #1a1a24;
    border: 1px solid rgba(67, 235, 255, 0.2);
    border-radius: 0.7rem;
    overflow: hidden;
    min-width: 120px;
    z-index: 10;
}

.ft-lang-menu.open {
    display: block;
}

body.light .ft-lang-menu {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ft-lang-opt {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    color: #9ca3af;
    cursor: pointer;
    transition: background 150ms;
}

.ft-lang-opt:hover {
    background: rgba(67, 235, 255, 0.1);
    color: #43EBFF;
}

.ft-lang-opt.active {
    color: #43EBFF;
}

body.light .ft-lang-opt {
    color: #475569;
}

/* ============================================ */
/* PAGE RÉSULTAT - MOBILE FRIENDLY
/* ============================================ */
.result-page {
    position: fixed;
    inset: 0;
    background: #080b10;
    z-index: 500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
    overflow-y: auto;
}

.result-page.show {
    opacity: 1;
    pointer-events: all;
}

body.light .result-page {
    background: #f8fafc;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(67,235,255,0.1);
    background: rgba(8, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

body.light .result-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e2e8f0;
}

.result-back {
    background: rgba(67,235,255,0.1);
    border: 1px solid rgba(67,235,255,0.3);
    border-radius: 999px;
    color: #43EBFF;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 150ms;
    font-family: "Nunito", sans-serif;
}

.result-back:hover { background: rgba(67,235,255,0.2); }

.result-header-title {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-family: "Nunito", sans-serif;
    opacity: 0.7;
}

body.light .result-header-title {
    color: #1e293b;
}

.result-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.result-thumb {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a24;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-info {
    width: 100%;
}

.result-title {
    font-family: "Anton", sans-serif;
    font-size: clamp(16px, 4vw, 22px);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: #e2e8f0;
    word-break: break-word;
}

body.light .result-title {
    color: #1e293b;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.result-meta span { display: flex; align-items: center; gap: 0.3rem; }
.result-meta i { color: #43EBFF; }

.result-choices {
    width: 100%;
    background: rgba(18, 18, 24, 0);
    border: 1px solid rgba(67, 236, 255, 0);
    border-radius: 1rem;
    padding: 1rem;
}

body.light .result-choices {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e2e8f0;
}

.result-dl {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    width: 100%;
}

.result-share {
    margin: 0.5rem 0 1rem 0;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.share-btn {
    background: rgba(67, 235, 255, 0.1);
    border: 1px solid rgba(67, 235, 255, 0.25);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    color: #43EBFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-family: "Nunito", sans-serif;
}

.share-btn:hover {
    background: rgba(67, 235, 255, 0.2);
    border-color: #43EBFF;
    transform: scale(1.02);
}

.share-btn:active {
    transform: scale(0.98);
}

.share-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #43EBFF;
    color: #0a0a0a;
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-weight: 600;
}

.share-tooltip.show {
    opacity: 1;
    visibility: visible;
}

body.light .share-btn {
    background: rgba(67, 235, 255, 0.08);
    color: #0891b2;
}

body.light .share-btn:hover {
    background: rgba(67, 235, 255, 0.15);
}

/* ============================================ */
/* FILE D'ATTENTE TÉLÉCHARGEMENT
/* ============================================ */

.download-queue {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    width: calc(100% - 40px);
}

.queue-item {
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(67, 235, 255, 0.3);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.queue-item.active {
    border-color: #43EBFF;
    box-shadow: 0 0 15px rgba(67, 235, 255, 0.2);
}

.queue-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(67, 235, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.queue-icon i {
    color: #43EBFF;
    font-size: 1rem;
}

.queue-info {
    flex: 1;
}

.queue-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-message {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-top: 0.2rem;
    transition: all 0.3s ease;
}

.queue-progress {
    width: 100%;
    height: 2px;
    background: rgba(67, 235, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.queue-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #43EBFF, #7B5EFF);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressPulse 1s ease infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.queue-item.removing {
    animation: slideOut 0.3s ease forwards;
}

body.light .queue-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(67, 235, 255, 0.3);
}

body.light .queue-title {
    color: #1e293b;
}

@media (max-width: 550px) {
    .download-queue {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* ============================================ */
/* FAQ ACCORDÉON
/* ============================================ */
.faq-item {
    background: rgba(18, 18, 24, 0.8);
    border-radius: 1rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(67, 235, 255, 0.08);
}

body.light .faq-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 1rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #43EBFF;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(67, 235, 255, 0.05);
}

.faq-question h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.faq-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.2rem;
    border-top: none;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1rem 1.2rem;
    border-top: 1px solid rgba(67, 235, 255, 0.1);
}

.faq-answer p {
    margin: 0.6rem 0;
    color: #9ca3af;
    line-height: 1.5;
    font-size: 0.85rem;
}

body.light .faq-answer p {
    color: #475569;
}

.faq-answer ul {
    margin: 0.4rem 0 0.4rem 1.2rem;
    color: #9ca3af;
}

body.light .faq-answer ul {
    color: #475569;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.faq-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    margin: 0.6rem 0;
    font-size: 0.8rem;
}

.faq-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    margin: 0.6rem 0;
    font-size: 0.8rem;
}

.faq-info {
    background: rgba(67, 235, 255, 0.1);
    border-left: 3px solid #43EBFF;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    margin: 0.6rem 0;
    font-size: 0.8rem;
}

/* ============================================ */
/* RESPONSIVE GLOBAL - TOUS LES ÉCRANS
/* ============================================ */
@media (max-width: 768px) {
    .supported-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .ft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .section {
        padding: 6vh 1rem;
    }
    
    .result-body {
        padding: 1.5rem 1rem;
    }
    .result-dl {
        flex-direction: column;
    }
    .result-header {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 550px) {
    .supported-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .supported-item {
        font-size: 11px;
        padding: 0.4rem 0.3rem;
    }
    
    .supported-item i {
        font-size: 18px;
    }
    
    .ft-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .choice-btn {
        padding: 0.35rem 0.7rem;
        font-size: 12px;
    }
    
    .nav {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .nav-btn, .dot {
        width: 38px;
        height: 38px;
    }
    
    .dot a {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .supported-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .ft-logo {
        justify-content: center;
    }
    
    .ft-desc {
        max-width: 100%;
        text-align: center;
    }
    
    .ft-col-title {
        text-align: center;
    }
    
    .ft-link {
        text-align: center;
    }
    
    .ft-bottom {
        align-items: center;
        text-align: center;
    }
    
    .ft-actions {
        justify-content: center;
    }
    
    .lang-fixed {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .header img {
        width: 50px;
    }
    
    .choice-buttons {
        gap: 0.4rem;
    }
}