/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-blue: #005bf0;
    --primary-hover: #0046b8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #edf3ff;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 10px;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.logo-icon {
    background: var(--primary-blue);
    color: white;
    padding: 8px 10px;
    border-radius: 100%;
    font-size: 1.2rem;
    width: 70px;
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
}
a {
    color: var(--primary-blue);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-blue:hover {
    background-color: var(--primary-hover);
}

.btn-blue:active {
    transform: scale(0.98);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-blue);
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 380px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 40px;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-meta-text {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* --- LAYOUT PRINCIPAL --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-bottom: 60px;
}

/* ARTICLE */
.article-intro {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.article-end {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0 7px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}
.section-body {
    color: #475569;
    margin-bottom: 25px;
    font-size: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.content-grid-img {
    border-radius: var(--radius-md);
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.team-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.callout-box {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.callout-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.callout-icon {
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-text label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.info-text span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* "Voir Plus" (Articles) */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-card {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recent-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.recent-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* App Widget */
.app-widget {
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.app-widget h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.store-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-btn {
    background: #000;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

/* CTA BANNER PRE-FOOTER */
.cta-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-features {
    display: flex;
    gap: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-feature-item i {
    color: var(--primary-blue);
}

/* FOOTER */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-desc p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 15px 0 20px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-section { flex-direction: column; gap: 20px; text-align: center; }
    .cta-left { flex-direction: column; }
    .cta-features { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-banner { height: 300px; }
    .hero-title { font-size: 1.8rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- MODAL RECHERCHE --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.search-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-header input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px 20px;
}

.search-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

.search-result-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-item h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.search-result-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}