/* =====================================
   AGDE CROISIERE PECHE - MARITIME THEME
   ===================================== */

:root {
    /* Colors from logo analysis */
    --maritime-primary: #0a4f7c;
    --maritime-secondary: #1a8ab4;
    --maritime-accent: #f5a623;
    --maritime-text: #1a2a3a;
    --maritime-light: #f8fcff;
    --maritime-sand: #f4f1e8;
    --maritime-white: #ffffff;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max: 1200px;
}

/* =====================================
   BASE STYLES
   ===================================== */

body {
    font-family: var(--font-body);
    color: var(--maritime-text);
    line-height: 1.7;
    padding-top: 100px;
}

.container {
    max-width: var(--container-max);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--maritime-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    color: var(--maritime-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--maritime-accent);
}

/* =====================================
   NAVIGATION
   ===================================== */

.maritime-nav {
    background: linear-gradient(135deg, var(--maritime-primary) 0%, var(--maritime-secondary) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(10, 79, 124, 0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.maritime-nav .navbar-brand {
    transition: transform 0.3s ease;
}

.maritime-nav .navbar-brand:hover {
    transform: scale(1.05);
}

.maritime-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.maritime-link:hover {
    color: var(--maritime-accent) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.maritime-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--maritime-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.maritime-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    color: white;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =====================================
   HERO SECTION
   ===================================== */

.hero-section {
    background: linear-gradient(135deg, var(--maritime-primary) 0%, var(--maritime-secondary) 50%, var(--maritime-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q5,0 10,10 T20,10" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>');
    opacity: 0.3;
    animation: waveMove 20s infinite linear;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20px); }
}

.hero-title {
    color: white;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.btn-maritime {
    background: linear-gradient(45deg, var(--maritime-accent), #ffb347);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-maritime:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 166, 35, 0.6);
    color: white;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.hero-waves svg {
    width: 100%;
    height: 120px;
    animation: waveFloat 6s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.min-vh-75 {
    min-height: 75vh;
}

/* =====================================
   CONTENT SECTIONS
   ===================================== */

.content-section {
    background: white;
    position: relative;
    z-index: 3;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
}

.bg-light-maritime {
    background: var(--maritime-light);
}

.section-title {
    font-family: var(--font-display);
    color: var(--maritime-primary);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title i {
    color: var(--maritime-accent);
}

/* =====================================
   ARTICLE CARDS
   ===================================== */

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 42, 58, 0.1);
    transition: all 0.4s ease;
    border: none;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 42, 58, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(10, 79, 124, 0.7), rgba(26, 138, 180, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
}

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

.category-badge {
    background: var(--maritime-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge:hover {
    background: #e6941f;
    color: white;
}

.card-content {
    padding: 2rem;
}

.card-title a {
    color: var(--maritime-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-bottom: 1rem;
}

.card-title a:hover {
    color: var(--maritime-secondary);
}

.card-meta {
    color: #666;
    font-size: 0.95rem;
}

.card-meta i {
    color: var(--maritime-accent);
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    color: var(--maritime-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--maritime-accent);
    border-bottom-color: var(--maritime-accent);
}

/* =====================================
   ARTICLE DETAIL
   ===================================== */

.article-detail {
    padding: 3rem 0;
}

.article-header {
    border-bottom: 2px solid var(--maritime-light);
    margin-bottom: 3rem;
}

.category-link {
    background: var(--maritime-light);
    color: var(--maritime-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--maritime-accent);
    color: white;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 2rem 0;
    text-align: center;
}

.article-meta {
    color: #666;
    font-size: 1.1rem;
}

.article-meta i {
    color: var(--maritime-accent);
}

.article-featured-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 42, 58, 0.15);
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 3rem 0 1.5rem;
    color: var(--maritime-primary);
}

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

.article-content img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(26, 42, 58, 0.1);
    margin: 2rem 0;
}

.article-content blockquote {
    background: var(--maritime-light);
    border-left: 5px solid var(--maritime-accent);
    padding: 2rem;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.3rem;
    margin: 3rem 0;
}

.toc-wrapper {
    background: var(--maritime-light);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid var(--maritime-secondary);
}

.article-author {
    background: var(--maritime-light);
    border-radius: 20px;
    padding: 2rem;
}

/* =====================================
   BREADCRUMB
   ===================================== */

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "⚓";
    color: var(--maritime-accent);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--maritime-secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--maritime-text);
}

/* =====================================
   PAGINATION
   ===================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.maritime-pagination {
    color: var(--maritime-primary);
    border: 2px solid var(--maritime-light);
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: white;
}

.maritime-pagination:hover {
    background: var(--maritime-secondary);
    border-color: var(--maritime-secondary);
    color: white;
    transform: translateY(-2px);
}

.maritime-pagination.active {
    background: var(--maritime-accent);
    border-color: var(--maritime-accent);
    color: white;
}

/* =====================================
   FOOTER
   ===================================== */

.maritime-footer {
    background: linear-gradient(135deg, var(--maritime-primary), var(--maritime-secondary));
    color: white;
    margin-top: auto;
}

.footer-copyright {
    font-size: 1rem;
    opacity: 0.9;
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }
    
    .maritime-nav {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-maritime {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .article-content {
        font-size: 1.1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* =====================================
   UTILITIES
   ===================================== */

.text-maritime {
    color: var(--maritime-primary) !important;
}

.bg-maritime {
    background-color: var(--maritime-primary) !important;
}

.border-maritime {
    border-color: var(--maritime-primary) !important;
}

.shadow-maritime {
    box-shadow: 0 15px 35px rgba(10, 79, 124, 0.1) !important;
}

/* Animation for smooth loading */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
