/**
 * RVR94 - Styles personnalisés pour les pages villes
 * Version: 1.0.0
 */

/* ===========================================================================
   VARIABLES CSS
   =========================================================================== */
:root {
    --rvr-blue: #1e3a5f;
    --rvr-blue-light: #2a4a6f;
    --rvr-red: #d42626;
    --rvr-red-hover: #b81f1f;
    --rvr-orange: #f5a623;
    --rvr-green: #28a745;
    --rvr-gray: #f8f9fa;
    --rvr-gray-dark: #6c757d;
    --rvr-text: #333333;
    --rvr-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --rvr-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --rvr-radius: 8px;
    --rvr-radius-large: 12px;
    --rvr-transition: all 0.3s ease;
}

/* ===========================================================================
   RESET & BASE
   =========================================================================== */
.rvr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================================================
   HERO SECTION
   =========================================================================== */
.rvr-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 80px 20px;
}

.rvr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.7) 100%);
    z-index: 1;
}

.rvr-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.rvr-hero h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rvr-hero p {
    font-family: 'Heebo', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===========================================================================
   BOUTONS
   =========================================================================== */
.rvr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--rvr-radius);
    transition: var(--rvr-transition);
    cursor: pointer;
    border: none;
}

.rvr-btn-primary {
    background: var(--rvr-red);
    color: #fff;
}

.rvr-btn-primary:hover {
    background: var(--rvr-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--rvr-shadow-hover);
    color: #fff;
}

.rvr-btn-secondary {
    background: #fff;
    color: var(--rvr-blue);
    border: 2px solid var(--rvr-blue);
}

.rvr-btn-secondary:hover {
    background: var(--rvr-blue);
    color: #fff;
}

.rvr-btn-phone {
    background: var(--rvr-green);
    color: #fff;
}

.rvr-btn-phone:hover {
    background: #218838;
    color: #fff;
}

/* ===========================================================================
   STATS BAR (Bandeau des 3 features)
   =========================================================================== */
.rvr-stats-bar {
    background: var(--rvr-blue);
    padding: 25px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: var(--rvr-radius-large);
    margin-left: 5%;
    margin-right: 5%;
    box-shadow: var(--rvr-shadow);
}

.rvr-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.rvr-stat-item {
    color: #fff;
    padding: 15px;
}

.rvr-stat-item i {
    font-size: 2.5rem;
    color: var(--rvr-orange);
    margin-bottom: 10px;
    display: block;
}

.rvr-stat-item h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 10px 0 5px;
}

.rvr-stat-item p {
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* ===========================================================================
   SECTIONS DE CONTENU
   =========================================================================== */
.rvr-section {
    padding: 60px 0;
}

.rvr-section-gray {
    background: var(--rvr-gray);
}

.rvr-content-block {
    padding: 50px 0;
}

.rvr-content-block h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    color: var(--rvr-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.rvr-content-block h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    color: var(--rvr-blue);
    margin: 30px 0 15px;
    font-weight: 500;
}

.rvr-content-block p {
    font-family: 'Heebo', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rvr-text);
    margin-bottom: 15px;
}

.rvr-content-block ul {
    font-family: 'Heebo', sans-serif;
    padding-left: 25px;
    margin-bottom: 20px;
}

.rvr-content-block li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rvr-text);
    margin-bottom: 8px;
}

/* ===========================================================================
   GRILLE DE SERVICES
   =========================================================================== */
.rvr-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rvr-service-card {
    background: #fff;
    border-radius: var(--rvr-radius-large);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--rvr-shadow);
    transition: var(--rvr-transition);
}

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

.rvr-service-card i {
    font-size: 3rem;
    color: var(--rvr-blue);
    margin-bottom: 20px;
    display: block;
}

.rvr-service-card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    color: var(--rvr-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.rvr-service-card p {
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    color: var(--rvr-gray-dark);
    line-height: 1.6;
}

/* ===========================================================================
   FAQ ACCORDION
   =========================================================================== */
.rvr-faq {
    padding: 60px 0;
    background: var(--rvr-gray);
}

.rvr-faq h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    color: var(--rvr-blue);
    text-align: center;
    margin-bottom: 40px;
}

.rvr-faq-item {
    background: #fff;
    border-radius: var(--rvr-radius);
    margin-bottom: 15px;
    box-shadow: var(--rvr-shadow);
    overflow: hidden;
}

.rvr-faq-question {
    padding: 20px 25px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--rvr-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--rvr-transition);
}

.rvr-faq-question:hover {
    background: var(--rvr-gray);
}

.rvr-faq-question::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--rvr-transition);
}

.rvr-faq-item.active .rvr-faq-question::after {
    transform: rotate(180deg);
}

.rvr-faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.rvr-faq-item.active .rvr-faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.rvr-faq-answer p {
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rvr-text);
}

/* ===========================================================================
   CTA BOX
   =========================================================================== */
.rvr-cta-box {
    background: linear-gradient(135deg, var(--rvr-blue) 0%, var(--rvr-blue-light) 100%);
    padding: 60px 40px;
    border-radius: var(--rvr-radius-large);
    text-align: center;
    color: #fff;
    margin: 50px 0;
}

.rvr-cta-box h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.rvr-cta-box p {
    font-family: 'Heebo', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.rvr-cta-box .rvr-phone-number {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rvr-orange);
    display: block;
    margin-bottom: 20px;
}

/* ===========================================================================
   ZONE LOCALE (Mairie, etc.)
   =========================================================================== */
.rvr-local-info {
    background: #fff;
    padding: 30px;
    border-radius: var(--rvr-radius);
    box-shadow: var(--rvr-shadow);
    margin-top: 40px;
}

.rvr-local-info h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.4rem;
    color: var(--rvr-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rvr-orange);
}

.rvr-local-info p {
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.rvr-local-info strong {
    color: var(--rvr-blue);
}

/* ===========================================================================
   BREADCRUMB
   =========================================================================== */
.rvr-breadcrumb {
    padding: 15px 0;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
}

.rvr-breadcrumb a {
    color: var(--rvr-blue);
    text-decoration: none;
}

.rvr-breadcrumb a:hover {
    text-decoration: underline;
}

.rvr-breadcrumb span {
    color: var(--rvr-gray-dark);
    margin: 0 8px;
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 992px) {
    .rvr-hero h1 {
        font-size: 2.2rem;
    }
    
    .rvr-stats-bar {
        margin-left: 2%;
        margin-right: 2%;
    }
    
    .rvr-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .rvr-stat-item i {
        font-size: 2rem;
    }
    
    .rvr-stat-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .rvr-hero {
        min-height: 400px;
        padding: 60px 15px;
    }
    
    .rvr-hero h1 {
        font-size: 1.8rem;
    }
    
    .rvr-hero p {
        font-size: 1.1rem;
    }
    
    .rvr-stats-bar {
        margin-top: -40px;
        padding: 20px 10px;
    }
    
    .rvr-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rvr-stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }
    
    .rvr-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .rvr-content-block h2 {
        font-size: 1.6rem;
    }
    
    .rvr-cta-box {
        padding: 40px 20px;
    }
    
    .rvr-cta-box h2 {
        font-size: 1.5rem;
    }
    
    .rvr-cta-box .rvr-phone-number {
        font-size: 1.8rem;
    }
    
    .rvr-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .rvr-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rvr-hero h1 {
        font-size: 1.5rem;
    }
    
    .rvr-container {
        padding: 0 15px;
    }
    
    .rvr-section {
        padding: 40px 0;
    }
}

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

.rvr-animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===========================================================================
   UTILITAIRES
   =========================================================================== */
.rvr-text-center {
    text-align: center;
}

.rvr-mt-30 {
    margin-top: 30px;
}

.rvr-mb-30 {
    margin-bottom: 30px;
}

.rvr-py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ===========================================================================
   SECTION CONTACT (Wrapper pour Elementor Template)
   =========================================================================== */
.rvr-contact-section {
    padding: 60px 0;
    background: var(--rvr-gray);
}

/* Style pour la grille contact (fallback) */
.rvr-contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: stretch;
}

/* Boîte téléphone (rouge) - fallback */
.rvr-phone-box {
    background: var(--rvr-red);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--rvr-radius-large);
    display: flex;
    flex-direction: column;
}

.rvr-phone-box .rvr-phone-number {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    display: block;
}

.rvr-phone-box .rvr-phone-number:hover {
    color: var(--rvr-orange);
}

.rvr-phone-box p {
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.rvr-phone-box .rvr-btn-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    margin-top: auto;
}

.rvr-phone-box .rvr-btn-white:hover {
    background: #fff;
    color: var(--rvr-red);
}

/* Boîte formulaire (bleu marine) - fallback */
.rvr-form-box {
    background: var(--rvr-blue);
    color: #fff;
    padding: 40px;
    border-radius: var(--rvr-radius-large);
}

.rvr-form-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: var(--rvr-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rvr-form-box h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 15px 0;
}

.rvr-form-box p {
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Responsive contact section */
@media (max-width: 992px) {
    .rvr-contact-grid {
        grid-template-columns: 1fr;
    }
}
