/* ============================================
   ATSE SERVICE - Surcharge couleurs
   Bleu #2E7ABF / Noir #1a1a1a
   ============================================ */

:root {
    --bleu: #2E7ABF;
    --bleu-fonce: #245F96;
    --bleu-glow: rgba(46, 122, 191, 0.25);
    --jaune: #2E7ABF;
    --jaune-fonce: #245F96;
    --jaune-glow: rgba(46, 122, 191, 0.25);
}

/* Hero spécifique */
.hero::before {
    background: url('../../images/atse%20service/hero-technicien.png') center/cover;
    background-image: image-set(url('../../images/atse%20service/hero-technicien.webp') type('image/webp'), url('../../images/atse%20service/hero-technicien.png') type('image/png'));
    opacity: 0.75;
    filter: saturate(0.75);
}

/* Badge hero */
.hero-badge {
    background: rgba(46, 122, 191, 0.12);
    border: 1px solid rgba(46, 122, 191, 0.4);
}

/* Boutons */
.btn-primary {
    background: var(--bleu);
    color: var(--blanc, #fff);
    box-shadow: 0 4px 15px var(--bleu-glow);
}

.btn-primary:hover {
    background: var(--bleu-fonce);
    box-shadow: 0 8px 25px var(--bleu-glow);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
    color: #fff;
}

/* Service cards top bar */
.service-card::before {
    background: var(--bleu);
}

.service-card:hover {
    border-color: rgba(46, 122, 191, 0.2);
}

.service-card .icon {
    background: linear-gradient(135deg, rgba(46, 122, 191, 0.12), rgba(46, 122, 191, 0.04));
}

.service-card:hover .icon {
    background: var(--bleu);
}

/* Chiffres */
.chiffres::before {
    background: radial-gradient(circle, var(--bleu-glow) 0%, transparent 70%);
}

/* Section label */
.section-label::before {
    background: var(--bleu);
}

/* Contrats tableau */
.contrat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contrat-card {
    background: var(--blanc, #fff);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contrat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bleu);
}

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

.contrat-card .contrat-label {
    display: inline-block;
    background: rgba(46, 122, 191, 0.1);
    color: var(--bleu);
    font-weight: 800;
    font-size: 1.4rem;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.contrat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contrat-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
}

/* Secteurs */
.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.secteur-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--blanc, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.secteur-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.secteur-icon {
    width: 48px;
    height: 48px;
    background: rgba(46, 122, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.secteur-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bleu);
    stroke: var(--bleu);
}

.secteur-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Nav contact btn */
.nav-contact-btn {
    background: var(--bleu) !important;
}

.nav-contact-btn:hover {
    background: var(--bleu-fonce) !important;
}

/* Bouton ATSE Bordes dans la nav (jaune = pôle installation & études) */
.nav-bordes-btn {
    background: #F5CB00 !important;
    color: #1a1a1a !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(245, 203, 0, 0.3);
}

.nav-bordes-btn::after {
    display: none !important;
}

.nav-bordes-btn:hover {
    background: #d9b400 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 203, 0, 0.4);
}

/* Footer link */
.footer a:hover {
    color: var(--bleu);
}

/* Logo footer ATSE Service - ajusté pour matcher la largeur visuelle du logo ATSE BORDES */
.footer-logo img {
    height: 55px !important;
}

/* Progress fill override */
.progress-fill {
    background: linear-gradient(90deg, var(--bleu), var(--bleu-fonce));
}

/* Back to top */
.back-to-top {
    background: var(--bleu);
}

.back-to-top:hover {
    background: var(--bleu-fonce);
}

/* ============================================
   TARIFS
   ============================================ */

.tarif-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.tarif-block {
    background: var(--blanc, #fff);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.tarif-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bleu);
}

.tarif-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tarif-horaires {
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 20px;
}

.tarif-full {
    margin-bottom: 24px;
}

.tarif-small {
    max-width: 500px;
}

.tarif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.tarif-table thead th {
    background: rgba(46, 122, 191, 0.06);
    color: var(--bleu);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: right;
    border-bottom: 2px solid rgba(46, 122, 191, 0.15);
}

.tarif-table thead th:first-child {
    text-align: left;
    border-radius: 8px 0 0 0;
}

.tarif-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.tarif-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    text-align: right;
}

.tarif-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.tarif-table tbody tr:last-child td {
    border-bottom: none;
}

.tarif-table tbody tr:hover {
    background: rgba(46, 122, 191, 0.03);
}

.tarif-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

.tarif-note-top {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    margin-top: -8px;
    font-style: italic;
}

.tarif-mentions {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(46, 122, 191, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--bleu);
}

.tarif-mentions p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

.tarif-mentions p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SERVICES PARTICULIERS V2
   ============================================ */

.serv-part-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1050px;
    margin: 40px auto 0;
}

.serv-part {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: all 0.35s ease;
    position: relative;
}

.serv-part:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(46, 122, 191, 0.12);
    border-color: rgba(46, 122, 191, 0.25);
}

.serv-part-accent {
    background: linear-gradient(180deg, rgba(46, 122, 191, 0.03) 0%, #fff 40%);
    border-color: rgba(46, 122, 191, 0.2);
}

.serv-part-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.serv-part-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(46, 122, 191, 0.1);
    line-height: 1;
    letter-spacing: -1px;
}

.serv-part-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-fonce));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.serv-part-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.serv-part-icon-urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.serv-part:hover .serv-part-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(46, 122, 191, 0.3);
}

.serv-part:hover .serv-part-icon-urgent {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.serv-part-badge-urgent {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.serv-part h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.serv-part > p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.serv-part-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.serv-tag {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--bleu);
    background: rgba(46, 122, 191, 0.06);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(46, 122, 191, 0.12);
}

/* ============================================
   SECTEURS V2
   ============================================ */

.secteurs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.secteur-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.secteur-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: rgba(46, 122, 191, 0.2);
}

.secteur-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(46, 122, 191, 0.12), rgba(46, 122, 191, 0.04));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.secteur-card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--bleu);
}

.secteur-card:hover .secteur-card-icon {
    background: var(--bleu);
}

.secteur-card:hover .secteur-card-icon svg {
    color: #fff;
}

.secteur-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.secteur-card p {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

/* ============================================
   CONTRATS V2
   ============================================ */

.contrat-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px auto 0;
    max-width: 820px;
    align-items: start;
}

.contrat-card-v2 {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contrat-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bleu);
}

.contrat-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.contrat-card-featured {
    border-color: rgba(46, 122, 191, 0.3);
    box-shadow: 0 4px 20px rgba(46, 122, 191, 0.12);
}

.contrat-card-featured::before {
    height: 4px;
    background: linear-gradient(90deg, var(--bleu), var(--bleu-fonce));
}

.contrat-popular {
    position: absolute;
    top: 16px;
    right: -28px;
    background: var(--bleu);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 36px;
    transform: rotate(45deg);
}

.contrat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.contrat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(46, 122, 191, 0.1);
    color: var(--bleu);
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.contrat-card-v2 h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.contrat-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 18px;
}

.contrat-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.contrat-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #444;
    padding: 6px 0;
}

.contrat-features li svg {
    color: var(--bleu);
    flex-shrink: 0;
}

/* Combos */
.contrat-combos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contrat-combo-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
}

.contrat-combo-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contrat-pill {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bleu);
    background: rgba(46, 122, 191, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(46, 122, 191, 0.2);
}

.contrat-pill-full {
    background: var(--bleu);
    color: #fff;
    border-color: var(--bleu);
}

/* ============================================
   VIDEO METIERS (SERVICE)
   ============================================ */

.section-video-service {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.video-service-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-service-text .section-label {
    margin-bottom: 16px;
}

.video-service-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.video-service-text h2 span {
    color: var(--bleu);
}

.video-service-text > p {
    font-size: 1rem;
    color: #666;
    line-height: 1.75;
    margin-bottom: 24px;
}

.video-service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #333;
}

.video-service-features li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 4px;
    background: rgba(46, 122, 191, 0.12);
    color: var(--bleu);
    border-radius: 50%;
}

.video-service-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(46, 122, 191, 0.18);
    border: 1px solid rgba(46, 122, 191, 0.1);
}

.video-service-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

@media (max-width: 968px) {
    .video-service-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-service-text h2 {
        font-size: 1.7rem;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .serv-part-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .contrat-grid-v2 {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .tarif-duo {
        grid-template-columns: 1fr;
    }

    .tarif-small {
        max-width: 100%;
    }

    .contrat-popular {
        top: 12px;
        right: -32px;
        font-size: 0.62rem;
    }
}

@media (max-width: 600px) {
    .secteurs-grid-v2 {
        grid-template-columns: 1fr;
    }

    .serv-part-grid {
        grid-template-columns: 1fr;
    }

    .contrat-combos {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   STYLES D'IMPRESSION (tarifs maintenance)
   ============================================ */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
    }
    body {
        font-size: 11pt;
        line-height: 1.45;
        font-family: Georgia, "Times New Roman", serif;
    }
    .header, .footer, .hamburger, .nav-main, .back-to-top, .hero, video, iframe, .btn {
        display: none !important;
    }
    body::before {
        content: "ATSE SERVICE — Maintenance & Dépannage — 144 Rue du Péchal, 24590 Saint-Geniès — 05 53 59 09 81";
        display: block;
        font-size: 9pt;
        text-align: center;
        border-bottom: 1pt solid #000;
        padding-bottom: 8pt;
        margin-bottom: 14pt;
    }
    @page {
        margin: 1.6cm 1.2cm;
    }
    h1, h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
    }
    .tarifs-table, table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 10pt;
    }
    .tarifs-table th,
    .tarifs-table td,
    table th, table td {
        border: 1pt solid #888 !important;
        padding: 4pt 6pt !important;
    }
    a[href^="http"]::after,
    a[href^="https"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
    }
    a[href^="#"]::after,
    a[href^="tel:"]::after,
    a[href^="mailto:"]::after { content: "" !important; }
    img { max-width: 100% !important; height: auto !important; }
    section, .container { padding: 0 !important; margin: 0 !important; }
}
