/* ========================================
   RAMONEUR BAS-RHIN - STYLES PAGES VILLES
   ======================================== */

/* ===== HERO VILLE ===== */
.ville-hero {
    position: relative;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Cercles décoratifs animés */
.ville-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.ville-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.ville-hero-content {
    position: relative;
    z-index: 2;
}

.ville-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.ville-breadcrumb a {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.ville-breadcrumb a:hover {
    opacity: 0.8;
}

.ville-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.ville-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.ville-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== INFOS VILLE (Glassmorphism) ===== */
.ville-infos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ville-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.ville-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ville-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ville-info-content {
    display: flex;
    flex-direction: column;
}

.ville-info-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.ville-info-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== SECTION CONTENU VILLE ===== */
.ville-content {
    padding: var(--spacing-xl) 0;
}

.ville-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

/* Contenu principal */
.content-main {
    background: var(--white);
}

.content-section {
    margin-bottom: var(--spacing-lg);
}

.content-section h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.content-section h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text {
    line-height: 1.8;
    color: var(--text-light);
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Listes avec icônes check dégradées */
.content-text ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.content-text ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.content-text ol {
    counter-reset: custom-counter;
    list-style: none;
    margin-bottom: 1.5rem;
}

.content-text ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    counter-increment: custom-counter;
}

.content-text ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== SIDEBAR ===== */
.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Contact rapide */
.sidebar-contact {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.sidebar-contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.sidebar-contact h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.sidebar-contact-phone {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-decoration: none;
}

.sidebar-contact-phone:hover {
    color: var(--white);
    text-decoration: underline;
}

.sidebar-contact-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sidebar-contact .btn {
    width: 100%;
}

/* Horaires */
.sidebar-horaires {
    list-style: none;
}

.sidebar-horaires li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
}

.sidebar-horaires li:last-child {
    border-bottom: none;
}

.sidebar-horaires-jour {
    font-weight: 600;
    color: var(--text);
}

.sidebar-horaires-heures {
    color: var(--text-light);
}

.sidebar-horaires-ouvert {
    color: var(--success);
}

/* ===== SERVICES CARDS AVEC PRIX ===== */
.ville-services {
    padding: var(--spacing-xl) 0;
    background: var(--light);
}

.ville-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card .price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
}

.price-amount {
    font-size: 1.5rem;
}

.price-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== FAQ ACCORDION ===== */
.ville-faq {
    padding: var(--spacing-xl) 0;
}

.faq-list {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.faq-item.active .faq-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    list-style: none;
    margin-top: 1rem;
}

.faq-answer-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-answer-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== COMMUNES LIST (Pills) ===== */
.communes-section {
    padding: var(--spacing-xl) 0;
    background: var(--light);
}

.communes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
}

.communes-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.communes-list a::before {
    content: '📍';
    font-size: 0.9rem;
}

.communes-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.communes-list a.current {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
}

.communes-list a.current::before {
    content: '✓';
}

/* ===== URGENCE BANNER ===== */
.urgence-banner {
    position: relative;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    overflow: hidden;
}

.urgence-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: slide 20s linear infinite;
    pointer-events: none;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(20px);
    }
}

.urgence-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.urgence-banner-text {
    flex: 1;
}

.urgence-banner h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.urgence-banner-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.urgence-banner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.urgence-banner-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.urgence-banner-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.urgence-banner-phone:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ===== TÉMOIGNAGES VILLE ===== */
.ville-temoignages {
    padding: var(--spacing-xl) 0;
}

.temoignages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.temoignage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-base);
}

.temoignage-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(211, 84, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.temoignage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.temoignage-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.temoignage-star {
    color: #FFC107;
    font-size: 1.25rem;
}

.temoignage-text {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.temoignage-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.temoignage-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.temoignage-info {
    flex: 1;
}

.temoignage-name {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.temoignage-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== ZONE INTERVENTION ===== */
.zone-intervention {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-lg);
}

.zone-intervention h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.zone-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.zone-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.zone-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-md);
}

.zone-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.zone-detail-text {
    flex: 1;
}

.zone-detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.zone-detail-value {
    font-weight: 600;
    color: var(--text);
}

/* ===== CERTIFICATIONS ===== */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.certification-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.certification-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.certification-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* ===== CALL TO ACTION VILLE ===== */
.ville-cta {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.ville-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.ville-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.ville-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
    .ville-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-sidebar {
        position: static;
    }

    .ville-infos {
        gap: 1rem;
    }

    .ville-info {
        padding: 1rem 1.5rem;
    }

    .zone-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ville-hero {
        padding: 2rem 0;
        min-height: 300px;
    }

    .ville-hero h1 {
        font-size: 2rem;
    }

    .ville-hero-subtitle {
        font-size: 1.1rem;
    }

    .ville-infos {
        flex-direction: column;
        gap: 1rem;
    }

    .ville-info {
        width: 100%;
    }

    .urgence-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .urgence-banner h3 {
        font-size: 1.5rem;
        justify-content: center;
    }

    .urgence-banner-phone {
        width: 100%;
        font-size: 1.25rem;
    }

    .communes-list {
        gap: 0.5rem;
    }

    .communes-list a {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .temoignages-grid {
        grid-template-columns: 1fr;
    }

    .ville-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ville-cta-buttons .btn {
        width: 100%;
    }

    .certifications {
        gap: 1.5rem;
    }

    .certification-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 479px) {
    .ville-hero h1 {
        font-size: 1.75rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .sidebar-contact-phone {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .urgence-banner {
        padding: 1.5rem;
    }

    .urgence-banner h3 {
        font-size: 1.25rem;
    }

    .content-text ul li,
    .content-text ol li {
        padding-left: 1.75rem;
    }
}
