/* ============================================
   DEVIS AUCAMVILLE — Styles CSS (Refonte Radicale v3)
   ============================================ */

:root {
    --primary: #EA580C; /* Construction Orange */
    --primary-hover: #C2410C;
    --primary-light: #FFF7ED;
    --secondary: #0F172A; /* Steel/Navy */
    --success: #10B981;
    --bg-color: #F8FAFC; 
    --text-color: #0F172A;
    --text-light: #475569;
    --text-muted: #94A3B1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.5);
    --footer-bg: #0F172A;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; color: var(--text-color); font-weight: 700; letter-spacing: -0.5px; }

/* --- Globals --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.pt-8 { padding-top: 4rem; } .pb-8 { padding-bottom: 4rem; } .mt-6 { margin-top: 3rem; } .mt-4 { margin-top: 1.5rem; }

/* ════════════════ HEADER SITE (Asymétrique) ════════════════ */
.site-header { background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; }
.logo { font-size: 1.5rem; font-weight: 800; font-family: 'Outfit', sans-serif; display: flex; align-items: center; gap: 0.5rem; color: var(--text-color); }
.logo span { color: var(--primary); }
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a { font-weight: 600; color: var(--text-color); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); }
.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #F97316 100%); color: #fff;
    padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4); transition: transform 0.2s;
}
.btn-nav-cta:hover { transform: translateY(-2px); }
 
/* ════════════════ BREADCRUMB (Fil d'Ariane) ════════════════ */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border-color); padding: 0.75rem 2rem; position: relative; z-index: 10; }
.breadcrumb-flow { max-width: 1400px; margin: 0 auto; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; }
.breadcrumb-list li { display: flex; align-items: center; color: var(--text-light); }
.breadcrumb-list li::after { content: '/'; margin-left: 0.5rem; color: var(--text-muted); font-weight: 400; }
.breadcrumb-list li:last-child::after { content: none; }
.breadcrumb-list a { color: var(--text-light); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list li.active { color: var(--primary); font-weight: 700; }

/* ════════════════ INDEX: SPLIT HERO ════════════════ */
.split-hero-container {
    display: flex; min-height: 80vh; max-width: 1400px; margin: 0 auto; padding: 2rem; gap: 4rem;
}
.hero-left-pane { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-right: 2rem; }
.hero-right-pane {
    flex: 1; position: relative; background: radial-gradient(circle at center, rgba(234,88,12,0.1) 0%, transparent 70%);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
}
.badge-tag { display: inline-block; padding: 0.4rem 1rem; background: var(--primary-light); color: var(--primary); font-weight: 700; border-radius: 50px; font-size: 0.9rem; margin-bottom: 1.5rem; align-self: flex-start; }
.display-massive { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.hero-lead { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.6; }
.search-simulator {
    display: flex; align-items: center; background: #fff; padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 50px; box-shadow: var(--shadow-soft); cursor: text; margin-bottom: 2rem;
}
.search-simulator .placeholder-text { flex: 1; color: var(--text-muted); margin-left: 1rem; }
.btn-search { background: var(--primary); color: #fff; border: none; padding: 1rem 2rem; border-radius: 50px; font-weight: 700; cursor: pointer; }
.hero-reassurance-list { display: flex; gap: 2rem; font-size: 0.9rem; font-weight: 600; color: var(--text-light); }
.hero-reassurance-list li { display: flex; align-items: center; gap: 0.5rem; }
.hero-reassurance-list i { color: var(--success); width: 16px; height: 16px; }

.floating-stat-box {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
    padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
    display: flex; align-items: center; gap: 1rem; min-width: 280px;
    animation: float 6s ease-in-out infinite; border: 1px solid rgba(255,255,255,0.6);
}
.box-1 { transform: translateX(-40px); animation-delay: 0s; }
.box-2 { transform: translateX(40px); animation-delay: 3s; }
.floating-stat-box i { width: 40px; height: 40px; color: var(--primary); padding: 8px; background: var(--primary-light); border-radius: 12px; }
.box-content strong { display: block; font-size: 1.25rem; font-family: 'Outfit'; }
.box-content span { color: var(--text-light); font-size: 0.9rem; }

@keyframes float { 0% { transform: translateY(0px) translateX(var(--tx, 0)); } 50% { transform: translateY(-15px) translateX(var(--tx, 0)); } 100% { transform: translateY(0px) translateX(var(--tx, 0)); } }

/* ════════════════ INDEX: PILL DIRECTORY ════════════════ */
.directory-pills-area { max-width: 1400px; margin: 4rem auto; padding: 0 2rem; }
.directory-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; }
.directory-header h2 { font-size: 2.5rem; }
.link-forward { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.pills-masonry { display: flex; flex-wrap: wrap; gap: 1rem; }
.directory-pill {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.5rem; background: #fff; border: 1px solid var(--border-color);
    border-radius: 50px; font-weight: 600; color: var(--text-color); box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.directory-pill:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2); }

/* ════════════════ INDEX: TIMELINE ════════════════ */
.timeline-block-wrapper { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.timeline-intro { text-align: center; margin-bottom: 4rem; }
.section-heading { font-size: 2.5rem; margin-bottom: 1rem; }
.vertical-timeline { position: relative; padding-left: 3rem; border-left: 2px dashed rgba(234, 88, 12, 0.3); }
.timeline-event { position: relative; margin-bottom: 3rem; }
.event-marker {
    position: absolute; left: -4.5rem; top: 0; width: 3rem; height: 3rem;
    background: var(--primary); color: #fff; font-weight: 800; font-family: 'Outfit';
    border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}
.event-content { padding: 2rem; }
.event-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* ════════════════ INDEX: EDITORIAL SEO ════════════════ */
.editorial-seo-section { padding: 6rem 2rem; margin-top: 4rem; background: rgba(234, 88, 12, 0.03); }
.editorial-container { max-width: 900px; margin: 0 auto; }
.editorial-container h2 { font-size: 2.8rem; margin-bottom: 2rem; }
.text-flow p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 1.5rem; }
.text-flow h3 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.dense-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.dense-list li { background: #fff; border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.05); }
.dense-list a { display: block; padding: 1rem; font-weight: 600; color: var(--text-color); }
.dense-list a:hover { color: var(--primary); background: var(--primary-light); }

/* ════════════════ INDEX: FAQ DENSE GRID ════════════════ */
.faq-dense-grid { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.faq-header-cell { padding-right: 4rem; position: sticky; top: 100px; }
.faq-header-cell h2 { font-size: 3rem; margin-bottom: 1rem; }
.faq-card { padding: 2rem; margin-bottom: 2rem; }
.faq-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary); }

/* ════════════════ INDEX: BOTTOM RIBBON ════════════════ */
.slim-cta-ribbon {
    background: linear-gradient(90deg, #0F172A 0%, #1E1B4B 100%); color: #fff;
    display: flex; justify-content: space-between; align-items: center; padding: 2rem 4rem; cursor: pointer; transition: padding 0.3s;
}
.slim-cta-ribbon:hover { padding: 2rem 5rem; }
.ribbon-text { font-size: 1.5rem; font-weight: 700; font-family: 'Outfit'; }
.ribbon-action { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; color: #4ADE80; }

/* ════════════════ DIRECTORY LAYOUT (metiers.php) ════════════════ */
.directory-layout-wrapper { max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; }
.directory-page-heading { margin-bottom: 4rem; max-width: 800px; }
.directory-split-view { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
.directory-sidebar { position: sticky; top: 120px; }
.sidebar-title { font-size: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); }
.sidebar-nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-btn {
    width: 100%; text-align: left; background: none; border: none; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--text-light); cursor: pointer; display: flex; align-items: center; gap: 0.75rem;
    transition: background 0.2s, color 0.2s;
}
.filter-btn:hover { background: rgba(0,0,0,0.03); color: var(--text-color); }
.filter-btn.active { background: var(--primary); color: #fff; }
.sidebar-promo { padding: 1.5rem; text-align: center; }
.sidebar-promo strong { display: block; color: var(--primary); margin-bottom: 0.5rem; font-size: 1.2rem; }

.category-block { margin-bottom: 4rem; transition: opacity 0.3s; }
.category-block-title { font-size: 2rem; margin-bottom: 2rem; color: var(--text-color); }
.list-editorial { display: flex; flex-direction: column; gap: 1rem; }
.list-item-row { display: flex; align-items: center; background: #fff; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.row-icon { width: 50px; height: 50px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 1.5rem; flex-shrink: 0; }
.row-text { flex: 1; }
.row-text h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.row-text p { color: var(--text-light); font-size: 0.95rem; }
.row-action { margin-left: 2rem; }
.btn-text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 0.25rem; }

/* ════════════════ ARTISAN PROFILE (artisan.php) ════════════════ */
.artisan-profile-layout { position: relative; }
.profile-masthead { padding: 6rem 2rem 4rem; text-align: center; border-bottom: 1px solid var(--border-color); margin-bottom: 4rem; }
.container-narrow { max-width: 800px; margin: 0 auto; }
.profile-avatar { width: 80px; height: 80px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3); }
.profile-avatar i { width: 40px; height: 40px; }
.profile-subtitle { font-size: 1.25rem; margin-bottom: 2rem; }
.profile-tags { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.profile-tags .tag { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.info-section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.info-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.data-cell { background: #fff; padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.data-label { display: block; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; }
.data-value { font-weight: 600; font-size: 1.1rem; }
.editorial-text { padding: 2rem; line-height: 1.8; font-size: 1.1rem; }

.sticky-action-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); border-radius: 50px; padding: 1rem 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.3); z-index: 999;
}
.sticky-inner { display: flex; justify-content: space-between; align-items: center; color: #fff; }
.sticky-info strong { display: block; font-size: 1.1rem; }
.sticky-info span { font-size: 0.85rem; color: #94A3B8; }
.btn-primary { background: var(--primary); border: none; padding: 0.8rem 1.5rem; border-radius: 50px; color: #fff; font-weight: 700; cursor: pointer; }

/* ════════════════ UTILS / FOOTER ════════════════ */
.bg-light-purple { background: rgba(234, 88, 12, 0.05); }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 5rem 2rem 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #94A3B8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: #94A3B8; font-size: 0.9rem; }

/* ════════════════ MODAL VUD (TRES IMPORTANT) ════════════════ */
.vud-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.8); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center; z-index: 9999; opacity: 0; transition: opacity 0.3s;
}
.vud-modal-overlay.active { display: flex; opacity: 1; }
.vud-modal-content {
    background: #fff; width: 100%; max-width: 600px; border-radius: var(--radius-lg); padding: 2.5rem;
    position: relative; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s;
}
.vud-modal-overlay.active .vud-modal-content { transform: scale(1); }
.vud-modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-light); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .split-hero-container { flex-direction: column; text-align: center; }
    .hero-left-pane { padding-right: 0; align-items: center; }
    .display-massive { font-size: 3.5rem; }
    .search-simulator { width: 100%; max-width: 500px; }
    .directory-split-view { grid-template-columns: 1fr; }
    .directory-sidebar { position: static; }
    .faq-dense-grid { grid-template-columns: 1fr; }
    .faq-header-cell { position: static; padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 2rem; border-bottom: 1px solid var(--border-color); }
    .main-nav.nav-open { display: flex; }
    .info-data-grid { grid-template-columns: 1fr; }
    .slim-cta-ribbon { padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; text-align: center; }
    .hero-reassurance-list { flex-direction: column; gap: 0.5rem; }
    .sticky-action-bar { padding: 1rem; flex-direction: column; gap: 1rem; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
}