/* ============================================================
   install.css — Styles autonomes des pages installation tivizer.net
   ----------------------------------------------------------
   Couvre les 7 pages du dossier installation-tivizer/.
   Charge UNIQUEMENT en complément de style.css (header + footer).
   Aucune dépendance avec pages.css.
   Toutes les classes sont préfixées .install-* pour éviter tout conflit.
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET / BASE
   ------------------------------------------------------------ */
.install-page *,
.install-page *::before,
.install-page *::after {
    box-sizing: border-box;
}

.install-page {
    font-family: 'Roboto', sans-serif;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

.install-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------
   2. ICÔNES SVG INLINE
   Usage : <svg class="install-ic install-ic--sm">...</svg>
   ------------------------------------------------------------ */
.install-ic {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.install-ic--sm { width: 18px; height: 18px; }
.install-ic--lg { width: 32px; height: 32px; }
.install-ic--xl { width: 56px; height: 56px; }

/* ------------------------------------------------------------
   3. HERO COMPACT (header haut de page)
   Utilise .navbar de style.css (position absolute) à l'intérieur
   ------------------------------------------------------------ */
.install-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    padding: 130px 60px 50px;
    background:
        linear-gradient(105deg, rgba(10,24,80,.92) 0%, rgba(10,45,168,.78) 45%, rgba(10,45,168,.55) 100%),
        url('../img/banner/hero-bg.webp') center/cover no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.install-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.install-hero-pretitle {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: var(--shadow-btn);
}

.install-hero h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #fff;
}

.install-hero-sub {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,.9);
    margin: 0 auto 24px;
    max-width: none;
    width: 100%;
}

.install-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.install-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(6px);
}

/* ------------------------------------------------------------
   4. BREADCRUMB
   ------------------------------------------------------------ */
.install-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 60px 0;
    font-size: 14px;
    color: #6B7280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.install-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color .2s;
}
.install-breadcrumb a:hover {
    color: var(--red);
}
.install-breadcrumb-sep {
    color: #9CA3AF;
}
.install-breadcrumb [aria-current="page"] {
    color: #111;
    font-weight: 700;
}

/* ------------------------------------------------------------
   5. SECTION GÉNÉRIQUE (pleine largeur, contenu centré 1400px)
   Pattern aligné sur le footer landing pour cohérence
   ------------------------------------------------------------ */
.install-section {
    padding: 60px 60px;
    width: 100%;
}
.install-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.install-section.--dark {
    background: var(--blue-dark);
    color: #fff;
}
.install-section.--light {
    background: #F4F5F8;
    color: #111;
}
.install-section.--white {
    background: #fff;
    color: #111;
}

.install-section h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 18px;
    line-height: 1.2;
    color: inherit;
}
.install-section h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
    color: inherit;
}
.install-section p {
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: none;
    width: 100%;
}

/* ------------------------------------------------------------
   6. CHECKLIST (liste à coches type prérequis)
   ------------------------------------------------------------ */
.install-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.install-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}
.install-checklist li svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 3px;
}
.install-checklist li strong {
    font-weight: 800;
    white-space: normal;
}

/* ------------------------------------------------------------
   7. INFO BOX (encadré bleu remplaçant l'emoji 💡)
   ------------------------------------------------------------ */
.install-info {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(10,45,168,.08);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    margin: 24px 0;
    align-items: flex-start;
}
.install-info-icon {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.install-info p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #111;
}
.install-info strong {
    color: var(--blue-dark);
}

/* ------------------------------------------------------------
   8. DEVICE HUB GRID (page index — 6 cartes appareils)
   ------------------------------------------------------------ */
.install-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}
.install-device-card {
    display: block;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    padding: 36px 24px 30px;
    text-align: center;
    text-decoration: none;
    color: #111;
    transition: all .25s ease;
    position: relative;
}
.install-device-card:hover {
    border-color: var(--red);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(237,41,57,.18);
}
.install-device-card svg.install-device-icon {
    width: 60px;
    height: 60px;
    color: var(--blue);
    margin: 0 auto 18px;
    display: block;
}
.install-device-card:hover svg.install-device-icon {
    color: var(--red);
}
.install-device-card h3 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px;
}
.install-device-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
}
.install-device-arrow {
    margin-top: 16px;
    color: var(--red);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   9. HOW-TO STEPS (étapes d'installation)
   ------------------------------------------------------------ */
.install-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}
.install-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 28px;
    background: #fff;
    border: 2px solid #F3F4F6;
    border-radius: 16px;
    align-items: flex-start;
}
.install-step-num {
    width: 64px;
    height: 64px;
    background: var(--red);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 64px;
    text-align: center;
    border-radius: 14px;
    flex-shrink: 0;
}
.install-step-body h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111;
}
.install-step-body p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}
.install-step-body img {
    margin-top: 14px;
    border-radius: 12px;
    max-width: 100%;
    border: 1px solid #E5E7EB;
}

/* Code court à mettre en valeur (ex: 4858164) */
.install-code {
    display: inline-block;
    background: #111;
    color: #FFD500;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   10. FAQ MINI (questions problèmes courants)
   ------------------------------------------------------------ */
.install-faq {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.install-faq-item {
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}
.install-faq-item[open] {
    border-color: var(--red);
}
.install-faq-summary {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}
.install-faq-summary::-webkit-details-marker {
    display: none;
}
.install-faq-summary::after {
    content: "+";
    background: var(--red);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    text-align: center;
    line-height: 30px;
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
    transition: transform .25s;
}
.install-faq-item[open] .install-faq-summary::after {
    content: "−";
}
.install-faq-body {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* ------------------------------------------------------------
   11. INTERNAL LINKING (autres appareils en bas de sous-page)
   ------------------------------------------------------------ */
.install-related {
    background: #F4F5F8;
}
.install-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.install-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 12px;
    text-decoration: none;
    color: #111;
    text-align: center;
    transition: all .2s;
}
.install-related-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}
.install-related-card svg {
    color: var(--blue);
    width: 32px;
    height: 32px;
}
.install-related-card span {
    font-size: 13px;
    font-weight: 700;
}

/* ------------------------------------------------------------
   12. CTA BUTTON (autonome — ne dépend pas des btn de style.css)
   ------------------------------------------------------------ */
.install-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-btn);
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.install-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(237,41,57,.45);
}
.install-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.install-cta-wrap {
    text-align: center;
    padding: 40px 0 20px;
}

/* Variant "Pourquoi choisir" — section avec arguments + CTA */
.install-why {
    background: var(--blue-dark);
    color: #fff;
    text-align: center;
}
.install-why h2 {
    color: #fff;
}
.install-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0 28px;
    text-align: left;
}
.install-why-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 24px;
}
.install-why-item svg {
    color: var(--red);
    margin-bottom: 12px;
}
.install-why-item h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}
.install-why-item p {
    font-size: 14px;
    color: rgba(255,255,255,.78);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   RESPONSIVE — Tablette ≤ 992px
   ============================================================ */
@media (max-width: 992px) {

    .install-hero {
        padding: 110px 28px 40px;
        min-height: 320px;
    }
    .install-hero h1 {
        font-size: 32px;
    }
    .install-hero-sub {
        font-size: 16px;
    }

    .install-breadcrumb {
        padding: 20px 28px 0;
    }

    .install-section {
        padding: 50px 28px;
    }
    .install-section h2 {
        font-size: 26px;
    }

    .install-device-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .install-step {
        grid-template-columns: 60px 1fr;
        gap: 18px;
        padding: 22px;
    }
    .install-step-num {
        width: 50px;
        height: 50px;
        font-size: 22px;
        line-height: 50px;
    }
    .install-step-body h3 {
        font-size: 19px;
    }

    .install-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .install-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE — Mobile ≤ 600px
   Padding latéral 28px = identique au footer landing
   ============================================================ */
@media (max-width: 600px) {

    .install-hero {
        padding: 100px 28px 35px;
        min-height: 280px;
    }
    .install-hero h1 {
        font-size: 26px;
        line-height: 1.2;
    }
    .install-hero-sub {
        font-size: 15px;
    }
    .install-hero-badges {
        gap: 8px;
    }
    .install-hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .install-breadcrumb {
        padding: 16px 28px 0;
        font-size: 13px;
    }

    .install-section {
        padding: 40px 28px;
    }
    .install-section h2 {
        font-size: 22px;
        line-height: 1.25;
    }
    .install-section h3 {
        font-size: 19px;
    }
    .install-section p {
        font-size: 15px;
    }

    .install-checklist li {
        font-size: 15px;
        white-space: normal !important;
    }

    .install-device-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .install-device-card {
        padding: 28px 20px;
    }

    .install-step {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }
    .install-step-num {
        width: 50px;
        height: 50px;
        font-size: 22px;
        line-height: 50px;
    }
    .install-step-body h3 {
        font-size: 18px;
    }
    .install-step-body p {
        font-size: 15px;
    }

    .install-faq-summary {
        font-size: 15px;
        padding: 16px;
    }
    .install-faq-body {
        font-size: 14px;
        padding: 0 16px 16px;
    }

    .install-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .install-info {
        padding: 14px 16px;
        gap: 10px;
    }
    .install-info p {
        font-size: 14px;
    }

    /* CTA EN MOBILE : pleine largeur + texte 1 ligne */
    .install-cta {
        width: 100%;
        max-width: 100%;
        padding: 16px 18px;
        font-size: 14px;
        letter-spacing: 0.02em;
        white-space: nowrap;
        box-sizing: border-box;
    }
}

/* ============================================================
   RESPONSIVE — Très petit ≤ 360px (Galaxy Fold)
   ============================================================ */
@media (max-width: 360px) {
    .install-section,
    .install-hero,
    .install-breadcrumb {
        padding-left: 18px;
        padding-right: 18px;
    }
    .install-hero h1 { font-size: 23px; }
    .install-section h2 { font-size: 20px; }
    .install-cta {
        font-size: 13px;
        padding: 14px 10px;
    }
}
