/* ===========================
   PAGE DÉPARTEMENT - CSS COMPLET
   departement.css
   =========================== */

:root {
    --adc-primary: #FF5A3C;
    --adc-secondary: #667EEA;
    --adc-accent: #00A7B5;
    --adc-deep: #17233A;
    --adc-soft-bg: #F8F9FC;
    --adc-border-subtle: rgba(102, 126, 234, 0.15);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   BREADCRUMB DÉPARTEMENT
   =========================== */

.dept-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: #666;
    flex-wrap: wrap;
}

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

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

.dept-breadcrumb i {
    font-size: 0.7rem;
    color: #999;
}

.dept-breadcrumb span {
    color: var(--adc-deep);
    font-weight: 600;
}

/* ===========================
   HERO SERVICE - DÉPARTEMENT
   =========================== */

.service-hero {
    position: relative;
    padding: 90px 0 70px;
    background: linear-gradient(135deg,
        #fffdfc 0%,
        #ffe9dc 35%,
        #ffeaf6 100%);
}

.service-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.service-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.08);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--adc-deep);
}

.service-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--adc-deep);
}

.service-hero-highlight {
    display: block;
    color: var(--adc-primary);
}

.service-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 0 18px;
    color: #4a4a4a;
}

.service-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.service-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.08);
    font-size: 0.8rem;
    box-shadow: 0 8px 18px rgba(23, 35, 58, 0.08);
    font-weight: 500;
}

.service-hero-pill i {
    color: var(--adc-secondary);
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-service-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--adc-primary), #ff8e5d);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 16px 36px rgba(255, 90, 60, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 90, 60, 0.6);
}

.btn-service-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(23, 35, 58, 0.18);
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adc-deep);
    box-shadow: 0 10px 24px rgba(23, 35, 58, 0.12);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(23, 35, 58, 0.16);
    border-color: var(--adc-secondary);
}

.service-hero-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #666;
}

/* HERO RIGHT */

.service-hero-right {
    position: relative;
    min-height: 260px;
}

.service-hero-blob {
    position: absolute;
    inset: -40px -10px 20px -40px;
    background: conic-gradient(from 220deg,
        rgba(255, 90, 60, 0.45),
        rgba(255, 200, 87, 0.6),
        rgba(0, 167, 181, 0.5),
        rgba(255, 90, 60, 0.45));
    filter: blur(22px);
    border-radius: 40px;
    pointer-events: none;
}

.service-hero-photo {
    position: relative;
    max-width: 360px;
    margin-left: auto;
    margin-right: 0;
    z-index: 1;
}

.service-hero-photo-inner {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(23, 35, 58, 0.45);
    background: #ffffff;
}

.service-hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.service-hero-card {
    position: absolute;
    left: 0;
    top: 18%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(23, 35, 58, 0.35);
    z-index: 2;
}

.service-hero-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adc-secondary), var(--adc-primary));
    color: #ffffff;
    font-size: 0.85rem;
}

.service-hero-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-hero-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--adc-deep);
    line-height: 1.2;
}

.service-hero-card-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    color: #666;
}

.service-hero-floating {
    position: absolute;
    right: 0;
    bottom: 6px;
    z-index: 2;
}

.service-hero-floating-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(23, 35, 58, 0.92);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===========================
   SECTION STANDARD
   =========================== */

.service-section {
    padding: 80px 0;
    position: relative;
}

.service-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.service-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 35, 58, 0.08);
    box-shadow: 0 8px 20px rgba(23, 35, 58, 0.1);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--adc-deep);
    margin-bottom: 16px;
}

.service-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--adc-deep);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    font-family: "Space Grotesk", sans-serif;
}

.service-section-sub {
    max-width: 720px;
    margin: 0 auto;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===========================
   SECTION VILLES DU DÉPARTEMENT
   =========================== */

#dept-villes {
    padding: 90px 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        var(--adc-soft-bg) 100%
    );
}

/* Grid des villes */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 0;
}

/* Card ville individuelle */
.city-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid var(--adc-border-subtle);
    box-shadow: 0 8px 24px rgba(23, 35, 58, 0.08);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Barre colorée au survol */
.city-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--adc-primary) 0%,
        var(--adc-secondary) 50%,
        var(--adc-accent) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.city-card:hover::before {
    transform: scaleX(1);
}

.city-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(23, 35, 58, 0.12);
    border-color: var(--adc-primary);
}

/* Icône de la ville */
.city-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--adc-primary), var(--adc-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(255, 90, 60, 0.25);
    transition: transform var(--transition-normal);
}

.city-card:hover .city-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 90, 60, 0.35);
}

/* Contenu de la card */
.city-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.city-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--adc-deep);
    margin: 0;
    line-height: 1.3;
}

.city-card-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--adc-secondary);
    letter-spacing: 0.02em;
}

/* Flèche */
.city-card-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adc-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}

.city-card:hover .city-card-arrow {
    background: var(--adc-secondary);
    color: #ffffff;
    transform: translateX(3px);
}

/* ===========================
   SECTION POURQUOI CHOISIR ADC
   =========================== */

.dept-why-choose {
    padding: 90px 0;
    background: #ffffff;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-choose-item {
    text-align: center;
    padding: 0;
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--adc-primary), var(--adc-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(255, 90, 60, 0.3);
    transition: transform 0.3s ease;
}

.why-choose-item:hover .why-choose-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-choose-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--adc-deep);
    margin: 0 0 14px;
    line-height: 1.3;
}

.why-choose-item p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ===========================
   SECTION NOS GARANTIES
   =========================== */

.dept-guarantees {
    padding: 90px 0;
    background: linear-gradient(
        135deg,
        var(--adc-soft-bg) 0%,
        #ffffff 100%
    );
}

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

.guarantee-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 26px;
    border: 2px solid var(--adc-border-subtle);
    box-shadow: 0 10px 28px rgba(23, 35, 58, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guarantee-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--adc-primary), var(--adc-secondary));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.guarantee-card:hover::before {
    transform: scaleY(1);
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(23, 35, 58, 0.12);
    border-color: var(--adc-primary);
}

.guarantee-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 90, 60, 0.1), rgba(102, 126, 234, 0.1));
    color: var(--adc-primary);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-family: "Space Grotesk", sans-serif;
}

.guarantee-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--adc-deep);
    margin: 0 0 12px;
    line-height: 1.3;
}

.guarantee-card p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .why-choose-grid,
    .guarantees-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .dept-why-choose,
    .dept-guarantees {
        padding: 60px 0;
    }

    .why-choose-grid,
    .guarantees-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-choose-item {
        max-width: 500px;
        margin: 0 auto;
    }

    .guarantee-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ===========================
   ANIMATIONS REVEAL
   =========================== */

.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE - TABLETTES
   =========================== */

@media (max-width: 1024px) {
    .service-hero {
        padding: 70px 0 60px;
    }

    .service-hero-inner {
        gap: 36px;
    }

    .service-section {
        padding: 70px 0;
    }

    #dept-villes {
        padding: 70px 0;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
    
    .service-engagements {
        padding: 70px 0;
    }
}

/* ===========================
   RESPONSIVE - MOBILE LARGE
   =========================== */

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0 50px;
    }

    .service-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-hero-right {
        min-height: 200px;
    }

    .service-hero-photo {
        max-width: 100%;
        margin: 0 auto;
    }

    .service-section {
        padding: 60px 0;
    }

    .service-section-title {
        font-size: 1.9rem;
    }

    #dept-villes {
        padding: 60px 0;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .city-card {
        padding: 20px 18px;
        gap: 14px;
    }
    
    .city-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }
    
    .service-engagements {
        padding: 60px 0;
    }
    
    .service-engagements-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */

@media (max-width: 600px) {
    .service-hero {
        padding: 50px 0 40px;
    }

    .service-hero-title {
        font-size: 1.8rem;
    }

    .service-hero-subtitle {
        font-size: 0.92rem;
    }

    .service-hero-badges {
        gap: 6px;
    }

    .service-hero-pill {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .btn-service-primary,
    .btn-service-secondary {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .service-hero-right {
        min-height: 180px;
    }

    .service-hero-card {
        left: 5px;
        padding: 6px 10px;
    }

    .service-hero-card-title {
        font-size: 0.82rem;
    }

    .service-hero-card-sub {
        font-size: 0.7rem;
    }

    .service-section {
        padding: 50px 0;
    }

    .service-section-title {
        font-size: 1.7rem;
    }

    .service-section-sub {
        font-size: 0.98rem;
    }

    .dept-breadcrumb {
        font-size: 0.8rem;
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .dept-breadcrumb i {
        font-size: 0.65rem;
    }
    
    #dept-villes {
        padding: 50px 0;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .city-card {
        padding: 18px 16px;
        gap: 12px;
    }
    
    .city-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .city-card-title {
        font-size: 1rem;
    }
    
    .city-card-sub {
        font-size: 0.82rem;
    }
    
    .city-card-arrow {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .service-engagements {
        padding: 50px 0;
    }

    .service-engagement-card {
        padding: 28px 24px;
    }

    .service-engagement-card h3 {
        font-size: 1.15rem;
    }

    .service-engagement-card p {
        font-size: 0.96rem;
    }
}

/* ===========================
   RESPONSIVE - TRÈS PETIT MOBILE
   =========================== */

@media (max-width: 400px) {
    .service-hero-title {
        font-size: 1.6rem;
    }

    .dept-breadcrumb {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .city-card {
        padding: 16px 14px;
    }
    
    .city-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
    }
    
    .city-card-title {
        font-size: 0.95rem;
    }
    
    .city-card-sub {
        font-size: 0.78rem;
    }
}

/* ===========================
   ANIMATIONS AU CHARGEMENT
   =========================== */

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

/* Animation désactivée par défaut - peut être réactivée avec JS */
/*.city-card {
    animation: fadeInUp 0.6s ease forwards;
}

.city-card:nth-child(1) { animation-delay: 0.05s; }
.city-card:nth-child(2) { animation-delay: 0.1s; }
.city-card:nth-child(3) { animation-delay: 0.15s; }
.city-card:nth-child(4) { animation-delay: 0.2s; }
.city-card:nth-child(5) { animation-delay: 0.25s; }
.city-card:nth-child(6) { animation-delay: 0.3s; }
.city-card:nth-child(7) { animation-delay: 0.35s; }
.city-card:nth-child(8) { animation-delay: 0.4s; }
.city-card:nth-child(n+9) { animation-delay: 0.4s; }*/

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .dept-breadcrumb,
    .service-hero-actions,
    .city-card-arrow,
    .service-hero-blob {
        display: none;
    }
    
    .city-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .service-hero {
        background: #fff;
    }
}

/* ===========================
   SECTION EXPERTISE PLOMBERIE
   =========================== */

.dept-expertise {
    padding: 70px 0;
    background: linear-gradient(
        135deg,
        #f0f4ff 0%,
        #fff5f0 50%,
        #f0faff 100%
    );
    position: relative;
    overflow: hidden;
}

.dept-expertise::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.expertise-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.expertise-blocks {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.expertise-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.expertise-block:nth-child(even) {
    flex-direction: row-reverse;
}

.expertise-block-left {
    flex: 0 0 280px;
    position: relative;
}

.expertise-block-icon-large {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--adc-primary) 0%, var(--adc-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 5rem;
    box-shadow: 0 12px 32px rgba(255, 90, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.expertise-block-icon-large::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.expertise-block-number {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--adc-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expertise-block-right {
    flex: 1;
}

.expertise-block-right h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--adc-deep);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.expertise-block-right p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 16px 0;
    text-align: justify;
}

.expertise-block-right p:last-child {
    margin-bottom: 0;
}

/* ===========================
   SECTION NOS GARANTIES
   =========================== */

.dept-guarantees {
    padding: 90px 0;
    background: linear-gradient(
        135deg,
        var(--adc-soft-bg) 0%,
        #ffffff 100%
    );
}