:root {
    --primary: #0077B6;
    --secondary: #90E0EF;
    --dark: #023E8A;
    --light: #F8F9FA;
    --text: #333;
    --text-light: #6C757D;
    --border: #E9ECEF;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--dark); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 500;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--dark); }
.btn-secondary:hover { background: #70c8e0; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }

/* ==================== TOP CTA BAR ==================== */
.top-cta-bar {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
}

.top-cta-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 30px; }

/* ==================== DEVIS CTA BAR (remplace le formulaire inline) ==================== */
.devis-cta-bar {
    background: var(--white);
    border-top: 4px solid var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 40px;
}

.devis-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.devis-cta-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.devis-cta-text i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
}

.devis-cta-text strong {
    display: block;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 2px;
}

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

@media (max-width: 640px) {
    .devis-cta-inner { flex-direction: column; text-align: center; }
    .devis-cta-text { flex-direction: column; }
}

/* ==================== POPUP MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Quand la classe is-open est ajoutée */
.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 62, 138, 0.6);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    margin: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
    padding: 28px 32px;
    text-align: center;
}

.modal-header i {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--secondary);
}

.modal-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.modal-form-body {
    padding: 24px 28px 32px;
    min-height: 200px;
}

/* Bouton fermer */
.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.close-modal:hover { background: rgba(255,255,255,0.35); }

@media (max-width: 480px) {
    .modal-content { border-radius: 12px; }
    .modal-header { padding: 20px; }
    .modal-form-body { padding: 16px; }
}

/* ==================== LOCAL LINKS ==================== */
.local-links { padding: 40px 0; }
.local-links h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.card-link {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    text-align: center;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

.card-link:hover {
    border-color: var(--primary);
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==================== WHY US ==================== */
.why-us { padding: 60px 0; background: var(--white); }
.feat { text-align: center; padding: 30px 20px; }
.feat i { width: 48px; height: 48px; color: var(--primary); margin: 0 auto 15px; display: block; }
.feat h3 { margin-bottom: 10px; color: var(--dark); }

/* ==================== MOVER CARDS ==================== */
.mover-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }

.mover-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.mover-card:hover { border-color: var(--primary); }

.mover-info h3 { color: var(--primary); margin-bottom: 5px; }
.mover-info .address { font-size: 0.9rem; color: #666; display: flex; align-items: center; gap: 5px; }
.mover-info .siret { font-size: 0.8rem; color: #999; margin-top: 5px; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state i { width: 56px; height: 56px; margin: 0 auto 16px; display: block; opacity: 0.4; }
.empty-state p { margin-bottom: 20px; }

/* ==================== DETAIL PAGE ==================== */
.mover-detail { padding: 40px 0; }

.detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detail-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.main-icon {
    width: 60px;
    height: 60px;
    color: var(--primary);
    background: #EFF8FF;
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

.title-group h2 { color: var(--dark); margin-bottom: 8px; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.status i { width: 14px; height: 14px; }
.status.active { background: #D1FAE5; color: #065F46; }
.status.inactive { background: #FEE2E2; color: #991B1B; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.info-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-block h4 i { width: 16px; height: 16px; }
.info-block p { color: #555; margin-bottom: 6px; }

.detail-cta { text-align: center; }

@media (max-width: 640px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-card { padding: 24px; }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 50px 0 40px;
}

.page-header h1 { font-size: 2rem; margin-bottom: 12px; }
.page-header p { opacity: 0.85; font-size: 1.1rem; }

/* ==================== BREADCRUMB ==================== */
.breadcrumb { background: #E9ECEF; padding: 10px 0; font-size: 0.9rem; }
.breadcrumb a { color: #6C757D; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--dark); font-weight: 600; }

/* ==================== SECTIONS ==================== */
.city-list, .movers-results, .local-content, .content-text { padding: 50px 0; }
.city-list h2, .movers-results h2 {
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.prose { max-width: 800px; margin: 0 auto; }
.prose h3 { margin-bottom: 15px; color: var(--dark); }
.prose p { margin-bottom: 15px; color: #555; line-height: 1.8; }

/* ==================== FOOTER ==================== */
.main-footer {
    background: #1B263B;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo { color: var(--white); }
.footer-col p { color: #ADB5BD; line-height: 1.7; }
.footer-col h4 { margin-bottom: 20px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #ADB5BD; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #ADB5BD;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==================== MT UTILITY ==================== */
.mt-4 { margin-top: 40px; }

/* ==================== SCROLL REVEAL ==================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}