/**
 * France PA - CSS Personnalisé avec Bulma
 * Style français moderne et élégant
 */

:root {
    --french-blue: #002654;
    --french-blue-light: #003d7a;
    --french-red: #ce1126;
    --french-red-light: #e63946;
    --silver: #c0c0c0;
    --gold: #d4af37;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    --shadow-card: 0 4px 25px rgba(0, 38, 84, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 38, 84, 0.15);
    --transition: all 0.35s ease;
}

/* Reset Bulma overrides */
.button.is-primary {
    background-color: var(--french-blue);
}

.button.is-primary:hover {
    background-color: var(--french-blue-light);
}

.button.is-danger {
    background-color: var(--french-red);
}

/* Typography */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--light-bg);
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Navbar Custom */
.navbar-france {
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 0.5rem 0;
}

.navbar-france .navbar-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
}

.navbar-france .navbar-item:hover {
    background: transparent;
    color: var(--french-blue);
}

.navbar-france .navbar-item.is-active {
    color: var(--french-red);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-blue-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--french-red);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--french-blue);
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--french-red);
}

/* Top Banner Tricolore */
.top-banner {
    background: var(--french-blue);
    padding: 8px 0;
    position: relative;
}

.top-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--french-blue);
}

.top-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--french-red);
}

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

.top-banner-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.top-banner-link {
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.top-banner-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-france {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    position: relative;
    overflow: hidden;
}

.hero-france::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--french-blue) 33%, var(--white) 33%, var(--white) 66%, var(--french-red) 66%);
}

.hero-france .hero-body {
    padding: 6rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge i {
    color: var(--french-red);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-title .accent {
    background: linear-gradient(90deg, var(--french-blue), var(--french-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-custom {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards - Style Bulma personnalisé */
.card-france {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-france:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-france .card-image {
    position: relative;
    overflow: hidden;
}

.card-france .card-image figure {
    margin: 0;
}

.card-france .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card-france:hover .card-image img {
    transform: scale(1.08);
}

.card-france .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--french-blue), var(--french-blue-light));
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card-france .title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-france .title a {
    color: var(--dark);
    transition: var(--transition);
}

.card-france .title a:hover {
    color: var(--french-blue);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 20px;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
}

.card-meta i {
    color: var(--french-red);
    margin-right: 5px;
}

/* Featured Card - Grand format */
.card-featured {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
}

.card-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.card-featured:hover .card-featured-bg {
    transform: scale(1.05);
}

.card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.85));
}

.card-featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: var(--white);
    width: 100%;
}

.card-featured .card-tag {
    background: var(--french-red);
}

.card-featured .title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.card-featured .title a {
    color: var(--white);
}

.card-featured .card-meta {
    border-top-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.card-featured .card-meta i {
    color: var(--gold);
}

/* Section Titles */
.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--french-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--french-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--french-red);
}

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

.category-menu li {
    margin-bottom: 8px;
}

.category-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.category-menu a:hover,
.category-menu a.is-active {
    background: var(--french-blue);
    color: var(--white);
    border-left-color: var(--french-red);
}

.category-menu .tag {
    background: var(--french-blue);
    color: var(--white);
    font-size: 0.8rem;
}

.category-menu a:hover .tag,
.category-menu a.is-active .tag {
    background: var(--white);
    color: var(--french-blue);
}

/* Mini Posts */
.mini-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mini-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-post-image {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-post-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.mini-post-content h6 a {
    color: var(--dark);
    transition: var(--transition);
}

.mini-post-content h6 a:hover {
    color: var(--french-blue);
}

.mini-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Article Page */
.article-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 4rem 0;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--french-blue) 33%, var(--white) 33%, var(--white) 66%, var(--french-red) 66%);
}

.article-title-main {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: rgba(255,255,255,0.8);
}

.article-meta-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-header i {
    color: var(--gold);
}

.article-body-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-card);
}

.article-lead {
    font-size: 1.25rem;
    color: var(--french-blue);
    line-height: 1.8;
    padding-left: 1.5rem;
    border-left: 4px solid var(--french-red);
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--french-blue);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 2rem 0 1rem;
}

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

.article-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content blockquote {
    background: var(--light-bg);
    padding: 2rem;
    border-left: 4px solid var(--french-blue);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
}

/* Footer */
.footer-france {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 0;
    position: relative;
}

.footer-france::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--french-blue) 33%, var(--white) 33%, var(--white) 66%, var(--french-red) 66%);
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand-name span {
    color: var(--french-red);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.breadcrumb-custom {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-custom li::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-custom li:last-child::after {
    display: none;
}

.breadcrumb-custom a {
    color: var(--text-light);
}

.breadcrumb-custom a:hover {
    color: var(--french-blue);
}

.breadcrumb-custom .is-active {
    color: var(--french-blue);
    font-weight: 600;
}

/* Pagination */
.pagination-france {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.pagination-france a,
.pagination-france span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--white);
    color: var(--text);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.pagination-france a:hover {
    background: var(--french-blue);
    color: var(--white);
}

.pagination-france .is-current {
    background: var(--french-red);
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--french-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-hover);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--french-red);
    transform: translateY(-5px);
}

/* Forms */
.input-france,
.textarea-france,
.select-france select {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 12px 18px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-france:focus,
.textarea-france:focus,
.select-france select:focus {
    border-color: var(--french-blue);
    box-shadow: 0 0 0 3px rgba(0, 38, 84, 0.1);
}

/* Alerts */
.notification.is-success {
    background: #d4edda;
    color: #155724;
}

.notification.is-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-title-main {
        font-size: 2rem;
    }
    
    .article-body-content {
        padding: 1.5rem;
        margin-top: -1.5rem;
    }
    
    .card-featured {
        min-height: 350px;
    }
    
    .top-banner .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
