/* ============================================
   REFONTE - Pages de services (2 colonnes)
   ============================================ */

/* ===== PAGE SERVICES (vue d'ensemble) ===== */
.refonte-services-overview-main {
    background: var(--refonte-bg-content);
    padding: 60px 30px 80px;
    min-height: calc(100vh - 300px);
}

.refonte-services-overview-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.refonte-services-overview-intro h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--refonte-text-white);
    margin: 0 0 16px;
}

.refonte-services-overview-tagline {
    font-size: 1.1em;
    color: var(--refonte-text-light);
    margin: 0 0 24px;
}

.refonte-services-overview-text {
    font-size: 15px;
    color: var(--refonte-text-light);
    line-height: 1.75;
    margin: 0 0 16px;
    text-align: left;
}

.refonte-services-overview-text:last-of-type {
    margin-bottom: 0;
}

.refonte-services-overview-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: 40%;
    margin: 0 auto;
}

.refonte-services-overview-link {
    display: block;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.refonte-services-overview-link:hover {
    transform: translateY(-3px);
}

.refonte-services-overview-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.refonte-services-overview-link:hover .refonte-services-overview-card {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.refonte-services-overview-img {
    width: 360px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    display: block;
}

.refonte-services-overview-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.65);
    font-family: 'Oswald', sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--refonte-text-white);
    text-align: center;
}

.refonte-services-overview-link:nth-child(2),
.refonte-services-overview-link:nth-child(4) {
    align-self: flex-end;
}

@media (max-width: 900px) {
    .refonte-services-overview-main {
        padding: 50px 24px 70px;
    }
    
    .refonte-services-overview-intro {
        margin-bottom: 48px;
    }
    
    .refonte-services-overview-intro h1 {
        font-size: 2em;
    }
    
    .refonte-services-overview-grid {
        max-width: 300px;
        gap: 28px;
    }
    
    .refonte-services-overview-img {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .refonte-services-overview-main {
        padding: 40px 20px 60px;
    }
    
    .refonte-services-overview-grid {
        max-width: 240px;
        gap: 24px;
    }
    
    .refonte-services-overview-img {
        width: 220px;
    }
}

.refonte-service-hero {
    position: relative;
    min-height: 120px;
    background: var(--refonte-bg-content);
    overflow: hidden;
}

.refonte-service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/banniere.jpeg) no-repeat center 30%;
    background-size: cover;
    filter: grayscale(80%) contrast(1.05);
}

.refonte-service-surveillance .refonte-service-hero-bg {
    background-image: url(../images/banniere.jpeg);
}

.refonte-service-distribution .refonte-service-hero-bg {
    background-image: url(../images/banniere.jpeg);
}

.refonte-service-evenementiel .refonte-service-hero-bg {
    background-image: url(../images/banniere.jpeg);
}

.refonte-service-incendie .refonte-service-hero-bg {
    background-image: url(../images/banniere.jpeg);
}

.refonte-service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--refonte-bg-nav) 0%, transparent 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.refonte-service-hero-inner {
    position: relative;
    max-width: var(--refonte-max-width);
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refonte-service-hero .refonte-header-overlay {
    background: linear-gradient(105deg, rgba(11, 41, 64, 0.85) 0%, rgba(11, 41, 64, 0.6) 50%, transparent 100%);
}

.refonte-service-brand {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--refonte-text-white);
    letter-spacing: 2px;
}

/* Main content - 2 colonnes */
.refonte-service-main {
    background: var(--refonte-bg-content);
    padding: 60px 30px 80px;
}

.refonte-service-content {
    max-width: var(--refonte-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.refonte-service-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--refonte-text-white);
    margin: 0 0 40px;
    text-align: center;
    grid-column: 1 / -1;
}

.refonte-service-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--refonte-text-white);
    margin: 25px 0 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.refonte-service-text h3:first-of-type {
    margin-top: 0;
}

.refonte-service-text p {
    font-size: 17px;
    color: var(--refonte-text-light);
    line-height: 1.7;
    margin: 0 0 16px;
}

.refonte-service-images {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.refonte-service-img {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    object-position: center;
}

/* Pages services - images carrées, position top, effet décalé */
.refonte-service-surveillance .refonte-service-images,
.refonte-service-distribution .refonte-service-images,
.refonte-service-evenementiel .refonte-service-images,
.refonte-service-incendie .refonte-service-images {
    align-items: flex-start;
}

.refonte-service-surveillance .refonte-service-img,
.refonte-service-distribution .refonte-service-img,
.refonte-service-evenementiel .refonte-service-img,
.refonte-service-incendie .refonte-service-img {
    width: 360px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-position: top;
}

.refonte-service-surveillance .refonte-service-img:nth-child(2),
.refonte-service-distribution .refonte-service-img:nth-child(2),
.refonte-service-evenementiel .refonte-service-img:nth-child(2),
.refonte-service-incendie .refonte-service-img:nth-child(2) {
    align-self: flex-end;
}

@media (max-width: 900px) {
    .refonte-service-content {
        grid-template-columns: 1fr;
    }
    
    .refonte-service-images {
        order: -1;
    }
    
    .refonte-service-img {
        height: 220px;
    }
    
    .refonte-service-surveillance .refonte-service-img,
    .refonte-service-distribution .refonte-service-img,
    .refonte-service-evenementiel .refonte-service-img,
    .refonte-service-incendie .refonte-service-img {
        height: auto;
        width: 240px;
    }
    
    .refonte-service-hero {
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .refonte-service-main {
        padding: 40px 20px 60px;
    }
    
    .refonte-service-title {
        font-size: 2em;
    }
    
    .refonte-service-img {
        height: 200px;
    }
    
    .refonte-service-surveillance .refonte-service-img,
    .refonte-service-distribution .refonte-service-img,
    .refonte-service-evenementiel .refonte-service-img,
    .refonte-service-incendie .refonte-service-img {
        width: 200px;
    }
    
    .refonte-service-hero {
        min-height: 120px;
    }
    
    .refonte-service-brand {
        font-size: 14px;
        bottom: 16px;
    }
}
