/* ========================================
   1. Variables CSS
   ======================================== */
:root {
    --primary: #1a3a5c;
    --primary-light: #2c5282;
    --primary-dark: #0f2440;
    --accent: #e8590c;
    --accent-hover: #c2410c;
    --accent-light: #fed7aa;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --text: #333333;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ========================================
   2. Typographie
   ======================================== */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-padding {
    padding: 5rem 0;
}

/* ========================================
   3. Boutons
   ======================================== */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 89, 12, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.icon-sm {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* ========================================
   4. Barre supérieure
   ======================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-link {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--accent-light);
}

.top-bar-info {
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-urgence {
    background: var(--accent);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(232, 89, 12, 0); }
}

/* ========================================
   5. Navigation
   ======================================== */
.navbar {
    padding: 0.75rem 0;
    z-index: 1030;
}

.navbar-brand img {
    transition: transform 0.2s;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* ========================================
   6. Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.88) 0%, rgba(26, 58, 92, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   7. Barre de confiance
   ======================================== */
.trust-bar {
    background: var(--primary);
    padding: 1.5rem 0;
    color: var(--white);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
}

.trust-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-light);
}

.trust-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   8. Carte qualité (présentation)
   ======================================== */
.quality-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
}

.quality-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quality-item {
    margin-bottom: 1.25rem;
}

.quality-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quality-item strong {
    color: var(--accent);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
}

.bg-accent {
    background-color: var(--accent) !important;
}

/* ========================================
   9. Cartes services
   ======================================== */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.service-card-img {
    height: 180px;
    overflow: hidden;
}

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

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

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

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.service-card-icon i {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.service-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card-text {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   10. Bannière urgence
   ======================================== */
.urgence-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    padding: 4rem 0;
    color: var(--white);
}

.urgence-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    animation: shake 1.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.urgence-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.urgence-text {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.urgence-btn {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}

.urgence-btn:hover {
    background: var(--white);
    color: var(--accent-hover);
    transform: scale(1.05);
}

/* ========================================
   11. Réalisations / Galerie
   ======================================== */
.realisation-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.realisation-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.realisation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 64, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-overlay i {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.realisation-card:hover .realisation-img {
    transform: scale(1.08);
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
}

/* ========================================
   12. Vidéos
   ======================================== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* ========================================
   13. Témoignages
   ======================================== */
.testimonial-card {
    padding: 2.5rem 2rem;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star-icon {
    width: 22px;
    height: 22px;
    color: #f59e0b;
    fill: #f59e0b;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 1rem 0 1.5rem;
    border: none;
    padding: 0;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.testimonial-author span {
    color: var(--text-light);
}

.testimonial-service {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: transparent;
    margin: 0 4px;
    padding: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* ========================================
   14. Processus timeline
   ======================================== */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
    overflow: hidden;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-200);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent);
}

.process-number {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent);
    line-height: 1;
}

.process-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.process-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.process-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* ========================================
   15. FAQ
   ======================================== */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
    padding: 1.15rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(232, 89, 12, 0.05);
    color: var(--accent);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a3a5c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    color: var(--text);
    line-height: 1.8;
    padding: 0 1.5rem 1.25rem;
}

/* ========================================
   16. CTA final
   ======================================== */
.cta-final {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 5rem 0;
    color: var(--white);
}

.cta-final h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-final p {
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.8;
}

.cta-contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.julie-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.cta-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-phone-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.cta-phone-link:hover {
    color: var(--accent-light);
}

.cta-phone-link.secondary {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.cta-email-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.cta-email-link:hover {
    color: var(--white);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   17. Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-contact li i {
    margin-top: 3px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ========================================
   18. Page contact
   ======================================== */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(232, 89, 12, 0.15);
}

.contact-form label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.contact-sidebar {
    background: var(--primary-dark);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--white);
}

.contact-sidebar h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.flash-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.flash-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

/* ========================================
   19. Mentions légales
   ======================================== */
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* ========================================
   20. Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

    .section-padding {
        padding: 3.5rem 0;
    }

    .process-timeline {
        flex-wrap: wrap;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        flex: 0 0 33.333%;
        margin-bottom: 1.5rem;
    }

    .cta-final {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh;
    }

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

    .hero-cta .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

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

    .section-padding {
        padding: 3rem 0;
    }

    .process-step {
        flex: 0 0 50%;
    }

    .urgence-title {
        font-size: 1.5rem;
    }

    .realisation-img {
        height: 200px;
    }

    .trust-icon {
        width: 24px;
        height: 24px;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    .cta-final h2 {
        font-size: 1.6rem;
    }

    .cta-phone-link {
        font-size: 1.1rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-collapse .btn-accent {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

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

    .process-step {
        flex: 0 0 100%;
    }
}

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

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