/*
Theme Name: ShopDrop Child TC
Template: storefront
Version: 1.1
Description: Training Center BlueDolomites child theme - Mobile Fixed
*/

/* ===== BASE ===== */
* { box-sizing: border-box; }

.site-header {
    background-color: #1a1a2e;
}
.main-navigation ul li a {
    color: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.main-navigation ul li a:hover {
    color: #4fc3f7;
}
.storefront-primary-navigation {
    background-color: #16213e;
}
.page-template-default .entry-header h1,
.single .entry-header h1 {
    color: #1a1a2e;
    font-size: 2em;
}

/* Boutons */
button, input[type="button"], input[type="submit"],
.button, .added_to_cart,
.widget a.button,
.site-header-cart .widget_shopping_cart a.button {
    background-color: #0f3460;
    border-color: #0f3460;
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
button:hover, input[type="button"]:hover, input[type="submit"]:hover,
.button:hover, .added_to_cart:hover {
    background-color: #4fc3f7;
    border-color: #4fc3f7;
}

/* Links dans le contenu */
.entry-content a {
    color: #0f3460;
    text-decoration: underline;
}
.entry-content a:hover {
    color: #4fc3f7;
}

/* ===== HERO SLIDER ===== */
.tc-hero-slider {
    position: relative;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    margin: 0 0 40px 0;
}
.tc-hero-slider .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    animation: tcSlide 18s infinite;
}
.tc-hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.tc-hero-slider .slide:nth-child(2) { animation-delay: 6s; }
.tc-hero-slider .slide:nth-child(3) { animation-delay: 12s; }
@keyframes tcSlide {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    30%  { opacity: 1; }
    36%  { opacity: 0; }
    100% { opacity: 0; }
}
.slide-1 { background: linear-gradient(135deg, #0f3460, #1a1a2e, #16213e); }
.slide-2 { background: linear-gradient(135deg, #065f46, #047857, #059669); }
.slide-3 { background: linear-gradient(135deg, #7c3aed, #4c1d95, #6d28d9); }
.tc-hero-slider h1 {
    color: #fff !important;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.tc-hero-slider p {
    color: rgba(255,255,255,0.92);
    font-size: 1.15em;
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* ===== HERO BOUTONS — FIX MOBILE ===== */
.tc-hero-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}
.tc-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.btn-white { background: #fff; color: #0f3460 !important; }
.btn-white:hover { background: #f0f0f0; color: #0f3460 !important; }
.btn-green { background: #fff; color: #065f46 !important; }
.btn-green:hover { background: #f0f0f0; color: #065f46 !important; }
.btn-purple { background: #fff; color: #4c1d95 !important; }
.btn-purple:hover { background: #f0f0f0; color: #4c1d95 !important; }

/* Navigation dots */
.tc-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.tc-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: tcDot 18s infinite;
}
.tc-dots span:nth-child(1) { animation-delay: 0s; }
.tc-dots span:nth-child(2) { animation-delay: 6s; }
.tc-dots span:nth-child(3) { animation-delay: 12s; }
@keyframes tcDot {
    0%   { background: rgba(255,255,255,0.4); transform: scale(1); }
    3%   { background: #fff; transform: scale(1.3); }
    30%  { background: #fff; transform: scale(1.3); }
    36%  { background: rgba(255,255,255,0.4); transform: scale(1); }
    100% { background: rgba(255,255,255,0.4); transform: scale(1); }
}

/* ===== STATS BAR ===== */
.tc-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 15px;
    background: #f8fafc;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1100px;
}
.tc-stat { text-align: center; min-width: 100px; }
.tc-stat .number { font-size: 2.2em; font-weight: 800; color: #0f3460; display: block; }
.tc-stat .label { color: #64748b; font-size: 0.9em; margin-top: 5px; }

/* ===== SECTIONS ===== */
.tc-section {
    padding: 50px 15px;
    max-width: 1100px;
    margin: 0 auto;
}
.tc-section h2 {
    text-align: center;
    font-size: 1.8em;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.tc-section .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.05em;
    margin-bottom: 35px;
}

/* ===== CARDS ===== */
.tc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.tc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px 20px;
    transition: all 0.3s;
}
.tc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.tc-card-icon { font-size: 2.2em; margin-bottom: 10px; display: block; }
.tc-card h3 { color: #1a1a2e; font-size: 1.2em; margin-bottom: 8px; }
.tc-card p { color: #64748b; line-height: 1.5; font-size: 0.95em; }
.tc-card .tc-price {
    font-size: 1.4em;
    font-weight: 800;
    color: #0f3460;
    margin-top: 12px;
    display: block;
}
.tc-card .tc-link {
    display: inline-block;
    margin-top: 12px;
    color: #0f3460;
    font-weight: 600;
    text-decoration: none;
}
.tc-card .tc-link:hover { color: #4fc3f7; }

/* ===== CTA BANNERS ===== */
.tc-cta {
    background: linear-gradient(135deg, #065f46, #047857);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1100px;
}
.tc-cta h2 { color: white !important; font-size: 1.8em; margin-bottom: 12px; }
.tc-cta p { font-size: 1.1em; opacity: 0.92; margin-bottom: 20px; }
.tc-cta .old-price { text-decoration: line-through; opacity: 0.7; font-size: 1em; }
.tc-cta .new-price { font-size: 1.8em; font-weight: 800; display: block; margin: 10px 0; }
.tc-cta-btn {
    display: inline-block;
    background: white;
    color: #065f46;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1em;
    margin-top: 15px;
    transition: all 0.3s;
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
}
.tc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ===== TÉMOIGNAGES ===== */
.tc-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.tc-testimonial {
    background: #f8fafc;
    border-radius: 14px;
    padding: 25px;
}
.tc-testimonial .stars { color: #f59e0b; font-size: 1.1em; margin-bottom: 8px; }
.tc-testimonial p { color: #475569; font-style: italic; line-height: 1.5; font-size: 0.95em; }
.tc-testimonial .author { margin-top: 12px; font-weight: 700; color: #1a1a2e; font-size: 0.9em; }

/* ===== LEAD MAGNET ===== */
.lead-magnet-hero {
    background: linear-gradient(135deg, #065f46, #047857, #059669);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
}
.lead-magnet-hero h1 { color: white !important; font-size: 2em; margin-bottom: 12px; }
.lead-magnet-hero p { font-size: 1.1em; opacity: 0.95; max-width: 600px; margin: 0 auto 25px; }
.lead-magnet-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.lead-magnet-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.lead-magnet-form button {
    width: 100%;
    padding: 12px;
    background: #047857;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
}

/* ===== AFFILIATE CARDS ===== */
.affil-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}
.affil-card-icon { font-size: 2.2em; min-width: 50px; text-align: center; }
.affil-card-content { flex: 1; }
.affil-card h3 { color: #1a1a2e; margin: 0 0 5px 0; font-size: 1.1em; }
.affil-card p { color: #64748b; margin: 0 0 8px 0; font-size: 0.9em; }
.affil-card .price { color: #047857; font-weight: 700; }
.affil-btn {
    display: inline-block;
    background: #0f3460;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== AUTONOMIE HERO ===== */
.autonomie-hero {
    background: linear-gradient(135deg, #065f46, #047857);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
}

/* ===== TUTOR LMS OVERRIDES ===== */
.tutor-course-card {
    border-radius: 12px !important;
    overflow: hidden;
}
.tutor-course-card .tutor-course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #1a1a2e;
    color: #ccc;
}
.site-footer a { color: #4fc3f7; }
.site-footer a:hover { color: #fff; }

/* ===== WOOCOMMERCE ===== */
.woocommerce-tabs ul.tabs li.active a { color: #0f3460; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Hero */
    .tc-hero-slider { min-height: 400px; }
    .tc-hero-slider h1 { font-size: 1.5em !important; }
    .tc-hero-slider p { font-size: 0.95em; padding: 0 10px; }
    .tc-hero-btn { padding: 12px 25px; font-size: 0.9em; }
    .slide-icon { font-size: 2em !important; }

    /* Stats */
    .tc-stats { gap: 15px; padding: 25px 10px; }
    .tc-stat .number { font-size: 1.8em; }

    /* Sections */
    .tc-section { padding: 30px 10px; }
    .tc-section h2 { font-size: 1.4em; }

    /* Cards — une colonne */
    .tc-cards { grid-template-columns: 1fr; gap: 15px; }
    .tc-card { padding: 20px 15px; }

    /* CTA */
    .tc-cta { padding: 35px 15px; margin: 25px 10px; }
    .tc-cta h2 { font-size: 1.4em !important; }
    .tc-cta .new-price { font-size: 1.5em; }
    .tc-cta-btn { padding: 12px 25px; font-size: 0.9em; display: block; margin: 15px auto 0; }

    /* Témoignages */
    .tc-testimonials { grid-template-columns: 1fr; }

    /* Lead magnet */
    .lead-magnet-hero { padding: 35px 15px; }
    .lead-magnet-hero h1 { font-size: 1.5em !important; }
    .lead-magnet-form { padding: 20px 15px; max-width: 100%; }

    /* Affilies */
    .affil-card { flex-direction: column; text-align: center; }
    .affil-btn { margin-top: 10px; }

    /* Lm benefits */
    .lm-benefits { grid-template-columns: 1fr; gap: 15px; }

    /* Lm preview table */
    .lm-preview { padding: 15px; overflow-x: auto; }
    .lm-preview table { font-size: 0.8em; }

    /* General page titles */
    .page-template-default .entry-header h1,
    .single .entry-header h1 { font-size: 1.3em; }

    /* Inline style overrides for homepage HTML */
    [style*="font-size:2.2em"] { font-size: 1.5em !important; }
    [style*="font-size:1.3em"] { font-size: 1em !important; }
    [style*="padding:60px"] { padding: 35px 15px !important; }
    [style*="display:flex"][style*="gap:30px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    [style*="min-width:250px"] { min-width: 100% !important; max-width: 100% !important; }
}

@media (max-width: 480px) {
    .tc-hero-slider { min-height: 380px; }
    .tc-hero-slider h1 { font-size: 1.3em !important; }
    .tc-hero-btn { padding: 10px 20px; font-size: 0.85em; }
    .tc-stats { flex-direction: row; flex-wrap: wrap; }
    .tc-stat { min-width: 80px; }
    .tc-stat .number { font-size: 1.5em; }
    .tc-section h2 { font-size: 1.2em; }
}

/* ===== HEADER ULTRA COMPACT ===== */
.site-header {
    padding: 0 !important;
    margin: 0 !important;
}
.site-branding {
    padding: 5px 0 !important;
    margin: 0 !important;
}
.site-logo,
.custom-logo-link {
    margin: 0 !important;
    padding: 0 !important;
}
.custom-logo {
    max-height: 45px !important;
    width: auto !important;
}
.site-title {
    font-size: 1.2em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
.site-description {
    font-size: 0.75em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.site-header .col-full {
    padding: 5px 15px !important;
}
.storefront-primary-navigation {
    padding: 0 !important;
    margin: 0 !important;
}
.storefront-primary-navigation .col-full {
    padding: 0 15px !important;
}
.main-navigation ul li a {
    padding: 8px 12px !important;
    font-size: 0.85em !important;
    line-height: 1.2 !important;
}
.main-navigation ul.menu > li > ul {
    top: 100% !important;
}
.site-header-cart {
    padding: 5px 0 !important;
    margin: 0 !important;
}
.site-header-cart .cart-contents {
    padding: 5px 10px !important;
    font-size: 0.85em !important;
}
/* Supprimer les espaces entre header sections */
.storefront-primary-navigation,
.site-header .col-full,
.secondary-navigation {
    min-height: 0 !important;
}
/* Breadcrumbs compact */
.storefront-breadcrumb {
    padding: 8px 0 !important;
    margin: 0 !important;
}
.storefront-breadcrumb .col-full {
    padding: 0 15px !important;
}

/* ===== SIDEBAR — Masquer sur pages full-width ===== */
.page-template-template-fullwidth .widget-area,
.page-template-template-fullwidth #secondary {
    display: none !important;
}
.page-template-template-fullwidth #primary,
.page-template-template-fullwidth .content-area {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

/* ===== Masquer sidebar sur la home aussi ===== */
.home .widget-area,
.home #secondary,
.page-id-55 .widget-area,
.page-id-55 #secondary {
    display: none !important;
}
.home #primary,
.home .content-area,
.page-id-55 #primary,
.page-id-55 .content-area {
    width: 100% !important;
    float: none !important;
}

/* ===== Masquer le titre de page sur l'accueil ===== */
.home .entry-header,
.page-id-55 .entry-header {
    display: none !important;
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 768px) {
    .custom-logo { max-height: 35px !important; }
    .site-title { font-size: 1em !important; }
    .site-description { display: none !important; }
    .main-navigation ul li a { padding: 6px 8px !important; font-size: 0.8em !important; }
    .site-header .col-full { padding: 3px 10px !important; }
}

/* ===== CACHER TITRE TEXTE + DESCRIPTION + RECHERCHE ===== */
.site-branding h1.site-title,
.site-branding p.site-title,
.site-branding .site-title,
.site-description,
.beta-site-title {
    display: none !important;
}
.storefront-product-search,
.site-search,
.widget_product_search {
    display: none !important;
}

/* Logo seul, bien centré à gauche */
.site-branding {
    padding: 5px 0 !important;
    margin: 0 !important;
}
.custom-logo-link {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.custom-logo {
    max-height: 50px !important;
    width: auto !important;
    vertical-align: middle !important;
}

/* Header ultra serré */
.site-header .col-full {
    padding: 5px 15px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
}
.site-header {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
