/* ==========================================================================
   Vente-unique.com - Relations Investisseurs
   Modern Design - 2026
   Primary: #97040c | Dark: #1a1a2e | Light: #f8f9fa
   ========================================================================== */

:root {
    --primary: #97040c;
    --primary-dark: #6e0309;
    --primary-light: #c4232d;
    --dark: #1a1a2e;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #adb5bd;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --transition: all .25s ease;
}

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

img { max-width: 100%; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--dark);
    padding: 6px 0;
    font-size: 13px;
}

.lang-switch a {
    color: var(--gray-500);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lang-switch a.active {
    color: var(--white);
    background: var(--primary);
}
.lang-switch a:hover { color: var(--white); }

.btn-alert {
    color: var(--gray-500);
    font-size: 12px;
    margin-left: 16px;
    padding: 3px 12px;
    border: 1px solid var(--gray-500);
    border-radius: 20px;
    transition: var(--transition);
}
.btn-alert:hover {
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
}

/* ---- Navbar ---- */
.navbar {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    transition: var(--transition);
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(151, 4, 12, .05);
}
.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: rgba(151, 4, 12, .08);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.page-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-hero__title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.page-hero__image {
    position: absolute;
    right: 8%;
    top: 0;
    height: 100%;
    object-fit: contain;
    opacity: .85;
}
@media (max-width: 767px) {
    .page-hero__image { display: none; }
}

/* ---- Home Hero ---- */
.home-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: rgba(151, 4, 12, .15);
    border-radius: 50%;
    filter: blur(80px);
}
.home-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.home-hero h1 span { color: var(--primary-light); }
.home-hero p {
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ---- Content Section ---- */
.content-section {
    padding: 48px 0 60px;
}

/* ---- Section Titles ---- */
.section-title {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 40px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}
.section-title:first-child { margin-top: 0; }

/* ---- Cards ---- */
.card-modern {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    height: 100%;
}
.card-modern:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
    transform: translateY(-2px);
}

.card-modern h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-modern .card-date {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

/* ---- Document Row ---- */
.doc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 10px;
    transition: var(--transition);
    background: var(--white);
}
.doc-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.doc-row__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(151, 4, 12, .08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.doc-row__body {
    flex: 1;
    min-width: 0;
}
.doc-row__title {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
}
.doc-row__date {
    font-size: 12px;
    color: var(--gray-500);
    margin: 2px 0 0;
}

.doc-row__download {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(151, 4, 12, .06);
    transition: var(--transition);
    font-size: 16px;
}
.doc-row__download:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---- Home Cards (Agenda, Label, Publications) ---- */
.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
@media (max-width: 991px) {
    .home-cards { grid-template-columns: 1fr; }
}

.home-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.home-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}
.home-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.home-card .next-event {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.home-card .next-event .date {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(151, 4, 12, .25);
}

.btn-outline-custom {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---- Publication Item (home) ---- */
.pub-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.pub-item:last-child { border-bottom: none; }
.pub-item .fa-file-pdf { color: var(--primary); font-size: 20px; margin-top: 2px; }
.pub-item p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: var(--gray-700);
}

/* ---- Carousel ---- */
.home-carousel {
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 0;
}
.carousel-cell img {
    border-radius: 16px;
}

/* ---- Bourse / Stock ---- */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) {
    .stock-grid { grid-template-columns: 1fr; }
}

/* ---- Archive Links ---- */
.archive-links {
    text-align: center;
    padding: 32px 0;
}
.archive-links a {
    display: inline-block;
    margin: 4px 8px;
    padding: 6px 16px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.archive-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---- Footer ---- */
footer {
    background: #F6F4F4;
    color: var(--gray-700);
    padding: 48px 0 24px;
    font-size: 14px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-address {
    color: var(--gray-500);
    font-size: 13px;
}

.footer-heading {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--gray-700);
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e0dede;
}
.footer-bottom small {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.6;
}

/* ---- Forms ---- */
.form-control {
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(151, 4, 12, .1);
}

/* ---- Viewer ---- */
iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius);
}
@media (min-width: 801px) {
    iframe { height: 1100px; }
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 32px 0;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .home-hero h1 { font-size: 1.8rem; }
    .page-hero { padding: 32px 0; }
    .page-hero__title { font-size: 1.5rem; }
    .content-section { padding: 32px 0 40px; }
    .navbar { padding: 8px 0; }
}

/* ---- Utilities ---- */
.text-primary-custom { color: var(--primary) !important; }
.bg-light-custom { background: var(--gray-100) !important; }
.mb-section { margin-bottom: 48px; }

/* ---- Legacy compat (for pages not yet refactored) ---- */
.content-section h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 36px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}
.content-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}
.content-section h3:first-child { margin-top: 0; }
h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}
.m-top-10 { margin-top: 10px; }

/* Old macro compat - wraps in new doc-row style */
#macro-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 10px;
    transition: var(--transition);
}
#macro-container:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

#macro-body {
    display: flex;
    flex: 1;
    align-items: center;
}
#macro-download {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-object {
    width: 48px;
    height: auto;
    border-radius: 6px;
}

.download-doc {
    color: var(--primary);
    transition: var(--transition);
}
.download-doc:hover { color: var(--primary-dark); }

.fa-download {
    font-size: 18px;
    line-height: 1;
}

.inline { width: 100%; }
