/*
Theme Name: Normandie Decouverte
Author: Media Squad
Author URI: http://www.media-squad.fr/
Description: Thème du nouveau site Normandie Decouverte.
Version: 2.0
License: Private
License URI: http://www.media-squad.fr/
*/



/* --- IDENTITÉ VISUELLE --- */
        :root {
            --color-green: #5c7c58; /* Vert Pommeraie */
            --color-slate: #3d4c53; /* Gris Ardoise */
            --color-cream: #f9f7f2; /* Sable/Crème */
            --color-apple-red: #c92a2a; /* Rouge Pomme */
            --font-serif: 'Playfair Display', serif;
            --font-sans: 'Montserrat', sans-serif;
        }

        body {
            font-family: var(--font-sans);
            color: var(--color-slate);
            background-color: #f9f7f2;
        }

        h1, h2, h3, h4, h5, .navbar-brand, .font-serif {
            font-family: var(--font-serif);
        }
        
        .text-normandy-green { color: var(--color-green) !important; }
        .bg-normandy-green { background-color: var(--color-green) !important; }
        .text-apple-red { color: var(--color-apple-red) !important; }

        /* --- NAVIGATION --- */
        .navbar {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .navbar-brand {
            font-weight: 700;
            color: var(--color-green) !important;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
        }
        /* Modification du logo pomme */
        .navbar-brand i {
            color: var(--color-apple-red);
            font-size: 1.8rem;
        }

        .nav-link {
            color: var(--color-slate) !important;
            font-weight: 500;
            margin-right: 15px;
        }
        .btn-normandy {
            background-color: var(--color-green);
            color: white;
            border-radius: 30px;
            padding: 8px 25px;
            transition: all 0.3s;
            border: none;
        }
        .btn-normandy:hover {
            background-color: var(--color-slate);
            color: white;
        }

        /* --- HERO SECTION --- */
        .hero-section {
            height: 85vh;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1520966774635-423521e17dce?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-top: 60px;
        }
        .hero-title {
            font-size: 4rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        .search-bar {
            background: white;
            padding: 10px;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            max-width: 600px;
            margin: 30px auto 0;
            display: flex;
        }
        .search-input {
            border: none;
            flex-grow: 1;
            padding: 10px 20px;
            outline: none;
            border-radius: 50px;
        }

        /* --- CARDS GENERAL --- */
        .card-custom {
            border: none;
            border-radius: 0;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        .card-custom:hover {
            transform: translateY(-5px);
        }
        .card-custom img {
            height: 250px;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .card-custom:hover img {
            transform: scale(1.05);
        }

        /* --- IMMERSIVE SECTION --- */
        .immersive-section {
            background-color: var(--color-slate);
            color: white;
        }
        .immersive-img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 4px;
        }
        .quote {
            font-style: italic;
            font-size: 1.2rem;
            border-left: 3px solid var(--color-green);
            padding-left: 20px;
            margin: 20px 0;
            opacity: 0.9;
        }

        /* --- NEWS SECTION & PAGINATION --- */
        .news-card-img {
             height: 100%;
             min-height: 140px;
             object-fit: cover;
        }
        .pagination .page-link {
            color: var(--color-green);
            border: none;
            margin: 0 5px;
            border-radius: 5px;
        }
        .pagination .page-item.active .page-link {
            background-color: var(--color-green);
            color: white;
        }
        .pagination .page-link:hover:not(.active) {
            background-color: #e9ecef;
            color: var(--color-slate);
        }

        /* --- FOOTER --- */
        footer {
            background-color: #2c383d;
            color: #ccc;
            padding-top: 60px;
            padding-bottom: 30px;
        }
        footer h5 {
            color: white;
            margin-bottom: 20px;
        }
        footer a {
            color: #ccc;
            text-decoration: none;
            transition: 0.3s;
        }
        footer a:hover {
            color: var(--color-green);
        }


        /* --- CATEGORY HERO --- */
        .category-header {
            background-color: var(--color-slate);
            color: white;
            padding: 120px 0 60px;
            margin-bottom: 0; /* Réduit pour coller au breadcrumb */
            position: relative;
            overflow: hidden;
        }
        .category-header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: url('https://images.unsplash.com/photo-1599581845184-a169df3158c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
            opacity: 0.2;
            z-index: 0;
        }
        .category-content {
            position: relative;
            z-index: 1;
            }


/* --- FILTERS --- */
        .filter-bar {
            overflow-x: auto;
            white-space: nowrap;
            padding-bottom: 10px;
            margin-bottom: 20px;
            scrollbar-width: none;
        }
        .filter-bar::-webkit-scrollbar { display: none; }
        .filter-btn {
            display: inline-block;
            padding: 8px 20px;
            margin-right: 10px;
            border: 1px solid #ddd;
            border-radius: 50px;
            color: var(--color-slate);
            text-decoration: none;
            transition: 0.3s;
            background: white;
            font-size: 0.9rem;
        }
        .filter-btn.active, .filter-btn:hover {
            background-color: var(--color-green);
            color: white;
            border-color: var(--color-green);
        }

        /* --- CARDS --- */
        .featured-card {
            border: none;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            background: white;
            transition: transform 0.3s;
        }
        .featured-card:hover { transform: translateY(-5px); }
        .featured-img { height: 100%; min-height: 350px; object-fit: cover; }

        .article-card {
            border: none;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
            transition: 0.3s;
            height: 100%;
        }
        .article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
        .article-card img { height: 220px; width: 100%; object-fit: cover; }
        .card-meta {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-green);
            font-weight: 600;
            margin-bottom: 10px;
            display: block;
        }

        /* --- LIST VIEW --- */
        .article-list-item {
            background: white;
            border-bottom: 1px solid #e9ecef;
            transition: background-color 0.2s;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        .article-list-item:hover { background-color: #f8f9fa; }
        .article-list-item:hover h5 { color: var(--color-green); }
        .list-thumb {
            width: 120px;
            height: 90px;
            object-fit: cover;
            border-radius: 6px;
        }
        .list-meta {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: #888;
            font-weight: 600;
            margin-bottom: 4px;
            display: block;
        }


        /* --- ARTICLE HEADER --- */
        .article-header {
            position: relative;
            height: 50vh;
            /*background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1503917988258-f87a78e3c999?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');*/
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            display: flex;
            align-items: flex-end;
            margin-top: 60px;
            padding-bottom: 60px;
            color: white;
        }
        .article-meta span {
            margin-right: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* --- BREADCRUMB (Fil d'Ariane) --- */
        .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 0;
            font-size: 0.9rem;
        }
        .breadcrumb-item a {
            color: var(--color-green);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }
        .breadcrumb-item a:hover {
            color: var(--color-slate);
            text-decoration: underline;
        }
        .breadcrumb-item.active {
            color: #888;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: #ccc;
        }

        /* --- ARTICLE CONTENT --- */
        .article-body {
            font-size: 1.05rem;
            color: #4a4a4a;
        }
        
        .article-body h2 {
            margin-bottom: 1.5rem !important;
            margin-top: 3rem !important;
        }
        .article-body h3 {
            margin-bottom: 1.5rem !important;
            margin-top: 3rem !important;
        }
        
        .drop-cap::first-letter {
            float: left;
            font-family: var(--font-serif);
            font-size: 3.5rem;
            line-height: 0.8;
            padding-right: 15px;
            padding-top: 5px;
            color: var(--color-green);
        }

        blockquote {
            border-left: 4px solid var(--color-green);
            padding-left: 20px;
            margin: 30px 0;
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 1.3rem;
            color: var(--color-slate);
            background: #fff;
            padding: 25px;
            border-radius: 0 10px 10px 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .info-box {
            background-color: #eef3ed;
            border: 1px solid #dbead9;
            padding: 25px;
            border-radius: 8px;
            margin: 30px 0;
        }

        .article-img {
            border-radius: 4px;
            margin: 30px 0 10px 0;
            width: 100%;
            height: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        /* --- SIDEBAR WIDGETS --- */
        .sidebar-widget {
            background: white;
            padding: 25px;
            border-radius: 8px;
            margin-bottom: 30px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.05);
        }
        .widget-title {
            font-family: var(--font-serif);
            font-size: 1.25rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f9f7f2;
            color: var(--color-slate);
        }
        
        .tiny-card {
            display: flex;
            margin-bottom: 15px;
            text-decoration: none;
            color: inherit;
            transition: 0.2s;
        }
        .tiny-card:hover h6 {
            color: var(--color-green);
        }
        .tiny-card img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 15px;
        }
        .tiny-card h6 {
            font-size: 0.95rem;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .sticky-sidebar {
            position: sticky;
            top: 100px;
        }

        /* --- ADS STYLING --- */
        .ad-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 30px 0;
        }
        .ad-placeholder {
            background-color: #f1f3f5;
            border: 1px dashed #ced4da;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-weight: bold;
            font-size: 0.9rem;
            position: relative;
            text-align: center;
        }
        .ad-placeholder::after {
            content: 'PUBLICITÉ';
            position: absolute;
            top: 0;
            right: 0;
            font-size: 0.6rem;
            background: #fff;
            padding: 2px 4px;
            border-bottom: 1px solid #dee2e6;
            border-left: 1px solid #dee2e6;
            color: #999;
        }
        .sidebar-ad {
            margin-bottom: 30px;
            background: white;
            padding: 10px;
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            display: flex;
            justify-content: center;
        }

        /* --- RELATED POSTS --- */
        .related-card:hover { transform: translateY(-5px); }
        .related-card img { height: 200px; object-fit: cover; }
        .related-category {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 1px;
            color: var(--color-green);
            text-transform: uppercase;
        }





/* =WordPress Core
-------------------------------------------------------------- */

.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;

}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}
