:root {
    --primary: hsl(219, 79%, 49%);
    --secondary: #95a5a6;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
}

/* #2c3e50 */
body {
    font-family: "Roboto", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa; /* Fond gris très léger pour desktop */
    padding-left: 10px;
    padding-right: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.navbar-brand {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 1.8rem;
}

.hero-section {
    background: linear-gradient(
            135deg,
            var(--primary) 0%,
            rgba(52, 101, 151, 0.9) 100%
        ),
        url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80")
            center/cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    position: relative;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.article-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 50vh;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

.featured-article {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

.podcast-card {
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.podcast-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-button {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 0;
}

.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 60px 0 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.reading-time {
    font-size: 0.85rem;
    color: var(--secondary);
}

.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

/* artile */

body {
    font-family: "Inter", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.navbar-brand {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 1.8rem;
}

.article-header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        rgba(52, 73, 94, 0.9) 100%
    );
    color: white;
    padding: 120px 0 60px;
    position: relative;
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.article-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2rem 1.5rem;
        margin-top: -30px;
    }
}

.article-image {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
    background: var(--light);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    background: var(--light);
    border: none;
    padding: 0.1rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 8px;
}
.tags a {
    display: inline-block;
    margin-right: 10px;
}

.tags li {
    display: inline-block;
    margin-right: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.5rem 0;
}

.tag {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.author-card {
    background: var(--light);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.related-articles {
    margin: 4rem 0 2rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.article-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-card-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

.reading-time {
    font-size: 0.85rem;
    color: var(--secondary);
}

.comments-section {
    margin: 3rem 0;
}

.comment-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 1.125rem;
}

.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 1001;
    transition: width 0.3s ease;
}

.table-of-contents {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.toc-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.toc-list a.active {
    color: var(--accent);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
/* articles */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 100px 0 60px;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.article-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reading-time {
    font-size: 0.85rem;
    color: var(--secondary);
}

.filter-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.pagination .page-link {
    color: var(--primary);
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 3px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.team-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--light);
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.1);
}

/* le figaro */
:root {
    --lefigaro-blue: #0f49a0; /* Bleu caractéristique */
    --lefigaro-text: #222;
}

@media (max-width: 768px) {
    /* Conteneur principal simulé mobile sur desktop */
    .mobile-container {
        max-width: 480px;
        margin: 0 auto;
        background-color: #fff;
        min-height: 100vh;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    /* --- HEADER --- */
    .main-header {
        border-bottom: 1px solid #e0e0e0;
        background: #fff;
    }

    .logo-text {
        display: none;
        font-family: "Playfair Display", serif;
        font-weight: 700;
        color: var(--lefigaro-blue);
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    /* Navigation horizontale (Scrollable) */
    .nav-scroller {
        overflow-x: auto;
        white-space: nowrap;
        background-color: white;
        margin-top: 25px;
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    }

    .nav-scroller::-webkit-scrollbar {
        display: none; /* Cacher la scrollbar */
    }

    .nav-link-custom {
        display: inline-block;
        color: #555;
        text-decoration: none;
        padding: 10px 15px;
        font-size: 0.95rem;
        font-weight: 500;
    }

    .nav-link-custom:first-child {
        padding-left: 20px;
    }

    /* --- CONTENU --- */
    .ad-placeholder {
        background-color: #f0f0f0;
        color: #888;
        height: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .article-title {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        color: var(--lefigaro-blue);
        line-height: 1.2;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .article-image {
        width: 100%;
        height: auto;
        border-radius: 2px;
        object-fit: cover;
    }

    .related-link {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        color: var(--lefigaro-blue);
        text-decoration: none;
        line-height: 1.3;
    }

    /* --- BOTTOM NAV BAR --- */
    .bottom-nav {
        max-width: 480px; /* S'aligne avec le container */
        margin: 0 auto;
        background: #fff;
        border-top: 1px solid #ddd;
        left: 0;
        right: 0;
    }

    .nav-item-bottom {
        color: #666;
        text-align: center;
        font-size: 0.7rem;
        padding: 8px 0;
        flex: 1;
        text-decoration: none;
        transition: color 0.2s;
    }

    .nav-item-bottom i {
        font-size: 1.2rem;
        display: block;
        margin-bottom: 4px;
    }

    .nav-item-bottom.active {
        color: var(--lefigaro-blue);
        font-weight: bold;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
        color: var(--primary) !important;
        font-weight: 700;
        transition: color 0.3s ease;
        font-size: 1.5rem;
    }
    /* --- HEADER --- */
    .main-header {
        border-bottom: 1px solid #e0e0e0;
        background: #fff;
    }

    .logo-text {
        font-family: "Playfair Display", serif;
        font-weight: 700;
        color: var(--lefigaro-blue);
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    /* Navigation horizontale (Scrollable) */
    .nav-scroller {
        overflow-x: auto;
        margin-top: 20px;
        white-space: nowrap;
        display: flex;
        justify-content: center; /* Centre tous les liens */
        border-bottom: 2px solid #e0e0e0; /* Mieux sur desktop */
    }

    .nav-scroller::-webkit-scrollbar {
        display: none; /* Cacher la scrollbar */
    }

    .nav-link-custom {
        display: block; /* Flexbox gère l'alignement, on n'a plus besoin du inline-block */
        padding: 10px 15px;
        color: #555;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 500;
    }

    .nav-link-custom:first-child {
        padding-left: 20px;
    }
}

.nav-link-custom {
    text-transform: uppercase;
}

/* whatsapp */
.mywhatsapp {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: green;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
