/* ============================================================
   TUTORIELS / CENTRE D'AIDE - Easy Concierge
   ============================================================ */

/* --- HERO CENTRE D'AIDE --- */
.tuto-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 60px 20px 50px;
    text-align: center;
}

.tuto-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* --- BARRE DE RECHERCHE --- */
.tuto-search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tuto-search-box input {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: none;
    outline: none;
    font-family: inherit;
    color: var(--text);
}

.tuto-search-box input::placeholder {
    color: #aaa;
}

.tuto-search-box button {
    padding: 16px 30px;
    background: var(--success);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.tuto-search-box button:hover {
    background: #219a52;
}

/* --- INDEX : GRILLE DE CARTES --- */
.tuto-index {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.tuto-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* --- CARTE CATEGORIE --- */
.tuto-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

.tuto-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.tuto-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    width: 56px;
    height: 56px;
    color: var(--secondary);
}

.tuto-card-icon svg {
    width: 40px;
    height: 40px;
}

.tuto-card h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px 0;
}

/* --- LIENS DANS LES CARTES --- */
.tuto-card-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tuto-card-links li {
    padding: 0;
    margin: 0;
}

.tuto-card-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.tuto-card-links li:last-child a {
    border-bottom: none;
}

.tuto-card-links a::before {
    content: '\203A';
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    flex-shrink: 0;
}

.tuto-card-links a:hover {
    color: var(--primary);
}

/* --- ARTICLE TUTORIEL --- */
.tuto-article {
    display: none;
    background: var(--white);
    animation: tutoFadeIn 0.3s ease;
}

@keyframes tutoFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tuto-article-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* --- BREADCRUMB (FIL D'ARIANE) --- */
.tuto-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tuto-breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tuto-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.tuto-breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

/* --- TITRE ARTICLE --- */
.tuto-article h2 {
    color: var(--primary);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* --- CORPS ARTICLE --- */
.tuto-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 40px;
}

.tuto-article-body p {
    margin: 0 0 16px 0;
}

.tuto-article-body ul,
.tuto-article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.tuto-article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.tuto-article-body strong {
    color: var(--primary);
}

/* --- SECTION MEDIA (Images + Vidéos) --- */
.tuto-media-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- PLACEHOLDERS MEDIA --- */
.tuto-media-placeholder {
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    border: 2px dashed #d5d5d5;
    transition: border-color 0.2s;
}

.tuto-media-placeholder:hover {
    border-color: var(--secondary);
}

.tuto-img-placeholder {
    background: #f8fafb;
}

.tuto-video-placeholder {
    background: #faf8f5;
}

.tuto-placeholder-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.tuto-placeholder-icon svg {
    color: #c0c0c0;
}

.tuto-media-placeholder p {
    margin: 0;
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

/* --- VIDEO EMBED (quand la vidéo sera intégrée) --- */
.tuto-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.tuto-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* --- IMAGE TUTORIEL (quand l'image sera intégrée) --- */
.tuto-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    margin-top: 15px;
}

/* --- INTRO VIDÉO (texte avant embed) --- */
.tuto-video-intro {
    font-size: 16px;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 5px;
}

/* --- ENCADRÉ INFO / NOTE --- */
.tuto-info-box {
    background: #eaf6ff;
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.tuto-info-box strong {
    color: var(--secondary);
}

/* --- ENCADRÉ AVERTISSEMENT --- */
.tuto-warning-box {
    background: #fff8e1;
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* --- BANDEAU IMPORTANT --- */
.tuto-highlight-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #3498db 100%);
    color: white;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

.tuto-highlight-box strong {
    color: #fff;
}

/* --- ZOOM IMAGE (lightbox) --- */
.tuto-screenshot {
    cursor: zoom-in;
}

.tuto-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: tutoFadeIn 0.2s ease;
}

.tuto-lightbox img {
    max-width: 92%;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- BOUTON RETOUR EN HAUT --- */
.tuto-back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
    z-index: 999;
}

.tuto-back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.tuto-back-to-top svg {
    width: 24px;
    height: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .tuto-hero {
        padding: 40px 15px 35px;
    }

    .tuto-hero h1 {
        font-size: 26px;
    }

    .tuto-search-box {
        flex-direction: column;
        border-radius: 8px;
    }

    .tuto-search-box input {
        border-radius: 8px 8px 0 0;
        padding: 14px 18px;
    }

    .tuto-search-box button {
        border-radius: 0 0 8px 8px;
        padding: 14px;
    }

    .tuto-index {
        padding: 30px 15px 20px;
    }

    .tuto-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tuto-article-inner {
        padding: 25px 15px 60px;
    }

    .tuto-article h2 {
        font-size: 24px;
    }

    .tuto-breadcrumb {
        font-size: 13px;
        gap: 5px;
    }

    .tuto-media-placeholder {
        padding: 35px 20px;
    }

    .tuto-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .tuto-hero h1 {
        font-size: 22px;
    }

    .tuto-card {
        padding: 25px 20px;
    }

    .tuto-article h2 {
        font-size: 22px;
    }
}