/*
Theme Name: TéléVid
Theme URI: https://telechargervid.fr
Author: TéléVid Team
Author URI: https://telechargervid.fr
Description: Thème WordPress professionnel pour service de téléchargement vidéo. Design SaaS moderne, SEO optimisé pour Google France, mobile-first, Core Web Vitals optimisés. Compatible YouTube, Instagram, Facebook.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: televid
Tags: one-page, blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready

TéléVid WordPress Theme, Copyright 2025 TéléVid
TéléVid is distributed under the terms of the GNU GPL
*/

/* ============================================
   STYLES PERSONNALISÉS TELEVID
   Les styles principaux sont gérés par TailwindCSS
   Chargé via functions.php
   ============================================ */

/* Gradient principal bleu → violet */
.gradient-primary {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
}

/* Texte en dégradé */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fond dégradé léger */
.gradient-bg {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
}

/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Hover card avec lift */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glow sur l'input URL */
.input-glow:focus-within {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Emplacements AdSense */
.adsense-slot {
    background: #F3F4F6;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 12px;
    text-align: center;
    padding: 1rem;
}

/* Progress bar animation */
@keyframes progressAnim {
    from { width: 0 }
    to { width: 100% }
}

/* Fade up animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out forwards; }
.fade-up-delay-1 { animation: fadeUp 0.6s ease-out 0.1s both; }
.fade-up-delay-2 { animation: fadeUp 0.6s ease-out 0.2s both; }

/* Styles spécifiques aux articles de blog */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.entry-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.entry-content ul, .entry-content ol {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.entry-content ul li { list-style-type: disc; margin-bottom: 0.4rem; }
.entry-content ol li { list-style-type: decimal; margin-bottom: 0.4rem; }
.entry-content strong { color: #111827; font-weight: 700; }
.entry-content a { color: #2563EB; text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid #2563EB;
    background: #EFF6FF;
    padding: 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
    font-style: normal;
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.nav-links a {
    background: white;
    color: #374151;
    border: 1px solid #E5E7EB;
}
.nav-links a:hover, .nav-links .current {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

/* Commentaires */
.comment-list { list-style: none; padding: 0; }
.comment-body {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
}

/* WordPress alignments */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Responsive images */
img { max-width: 100%; height: auto; }

/* ============================================
   RESPONSIVE — OPTIMISATIONS MOBILE & PC
   ============================================ */

/* Masquer la scrollbar des onglets plateforme sur mobile */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Boutons plateforme — pas de retour à la ligne */
.platform-tab { white-space: nowrap; flex-shrink: 0; min-height: 44px; }

/* Zone de résultats — boutons de qualité lisibles sur mobile */
#result-area button {
    min-height: 56px;
    word-break: break-word;
}

/* Input URL — hauteur minimale pour touch */
#video-url {
    min-height: 52px;
    font-size: 16px; /* évite le zoom auto iOS */
}

/* Bouton Télécharger — hauteur touch sur mobile */
#dl-btn { min-height: 52px; }

/* Table dans les articles — scroll horizontal sur mobile */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
}
.entry-content table thead { background: #EFF6FF; }
.entry-content table th,
.entry-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #E5E7EB;
    white-space: nowrap;
}
.entry-content table th { font-weight: 700; color: #1F2937; }

/* Navigation — menu hamburger responsive */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* ============================================
   RESPONSIVE — MOBILE, TABLETTE, PC
   ============================================ */

/* Base mobile-first : éléments interactifs bien dimensionnés */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* Très petit écran (< 380px) */
@media (max-width: 380px) {
    .text-4xl { font-size: 1.6rem !important; }
    .text-5xl { font-size: 1.9rem !important; }
    .text-6xl { font-size: 2.1rem !important; }
    #video-url { font-size: 14px; }
    .platform-tab { font-size: 0.7rem !important; padding: 0.4rem 0.6rem !important; gap: 0.25rem !important; }
    #result-area button { font-size: 0.8rem; }
}

/* Mobile (< 640px) */
@media (max-width: 640px) {
    /* Hero */
    #telecharger { padding-top: 3rem; padding-bottom: 3.5rem; }
    #telecharger h1 { font-size: 2rem; line-height: 1.2; }
    #telecharger p { font-size: 1rem; }

    /* Formulaire : empilé verticalement */
    .bg-white.rounded-2xl.shadow-2xl { flex-direction: column !important; }
    #dl-btn { width: 100%; justify-content: center; border-radius: 0.75rem !important; }

    /* Onglets plateforme : scroll horizontal fluide */
    .scrollbar-none { justify-content: flex-start !important; }
    .platform-tab { font-size: 0.75rem; padding: 0.4rem 0.75rem; }

    /* Zone résultats */
    #result-area { padding: 1rem !important; }
    #result-area .grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
    #result-area button { min-height: 60px; padding: 0.75rem 1rem; font-size: 0.85rem; }

    /* Thumbnails */
    #result-area img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 0.75rem; }

    /* Cards fonctionnalités : 1 colonne */
    .grid.md\:grid-cols-3 { grid-template-columns: 1fr !important; }
    .grid.md\:grid-cols-2 { grid-template-columns: 1fr !important; }

    /* Sections : padding réduit */
    section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

    /* Hover désactivé sur mobile (performance) */
    .card-hover:hover { transform: none !important; box-shadow: none !important; }

    /* FAQ */
    .faq-item button { padding: 1rem !important; }
    .faq-item button span { font-size: 0.9rem; }

    /* Navigation */
    nav .flex { gap: 0.5rem; }
}

/* Tablette (640px–1024px) */
@media (min-width: 640px) and (max-width: 1024px) {
    .platform-tab { padding-left: 0.875rem; padding-right: 0.875rem; }
    #result-area .grid { grid-template-columns: repeat(2, 1fr) !important; }
    #telecharger h1 { font-size: 2.75rem; }
}

/* Grand écran (> 1280px) */
@media (min-width: 1280px) {
    .max-w-4xl { max-width: 56rem; }
    .max-w-6xl { max-width: 72rem; }
    #result-area button { min-height: 64px; }
}
