/* AM-PureZone — Custom Styles (complément Tailwind) */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --primary: #1a3a5c;
    --primary-light: #245580;
    --secondary: #2ecc71;
    --secondary-dark: #27ae60;
    --urgence: #e67e22;
    --urgence-dark: #d35400;
    --bg-light: #f8f9fa;
    --bg-dark: #1e2d3d;
    --text: #333333;
    --text-light: #6c757d;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar .promo-badge {
    background: var(--urgence);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    animation: pulse-badge 2s infinite;
}

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

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar.scrolled {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary) !important;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 70%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,92,0.88) 0%, rgba(30,45,61,0.75) 100%);
}

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

/* Buttons */
.btn-cta-primary {
    background: var(--secondary);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46,204,113,0.35);
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.45);
    color: white;
}

.btn-cta-phone {
    background: var(--urgence);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230,126,34,0.35);
    text-decoration: none;
    display: inline-block;
}

.btn-cta-phone:hover {
    background: var(--urgence-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.45);
    color: white;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-card .card-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-card .card-link:hover {
    gap: 10px;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(46,204,113,0.3);
}

.process-step .step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.process-step h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 35px;
        right: -15%;
        width: 30%;
        height: 2px;
        background: linear-gradient(90deg, var(--secondary), rgba(46,204,113,0.2));
    }
}

/* Benefits Section */
.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--urgence) 0%, var(--urgence-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

/* Zone Map Section */
.zone-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin: 4px;
    transition: all 0.2s;
}

.zone-tag:hover {
    background: var(--primary);
    color: white;
}

/* Form Section */
.form-section {
    background: var(--bg-light);
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2.5rem;
}

.form-container input,
.form-container select,
.form-container textarea {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}

.form-container label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
}

.site-footer h5 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--secondary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Floating Phone Button (Mobile) */
.floating-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: var(--urgence);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(230,126,34,0.5);
    animation: phone-ring 2s infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    25% { transform: rotate(0deg); }
}

@media (min-width: 768px) {
    .floating-phone {
        bottom: 30px;
        right: 30px;
        width: 65px;
        height: 65px;
    }
}

/* Section Titles */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin: 1rem auto;
}

/* FAQ Accordion */
.faq-item {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: var(--secondary);
}

.faq-question {
    padding: 1rem 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Trust Badge Row */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service page hero */
.service-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,92,0.9) 0%, rgba(30,45,61,0.8) 100%);
}

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-custom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: white;
}

.breadcrumb-custom .separator {
    color: rgba(255,255,255,0.5);
    margin: 0 8px;
}

.breadcrumb-custom .current {
    color: var(--secondary);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }
}
