/*
Theme Name: ComfortSuites Magazine
Theme URI: https://comfortsuitesnb.com
Author: ComfortSuites
Author URI: https://comfortsuitesnb.com
Description: Magazine voyage et hébergement - Guides destinations, séjours confortables, voyages d'affaires et activités touristiques. Conseils pour voyageurs exigeants.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comfortsuites
Tags: blog, travel, tourism, custom-logo, custom-menu, featured-images, light-mode

ComfortSuites - Votre confort, notre destination.
*/

/* ================================
   DESIGN TOKENS - LIGHT THEME
   ================================ */
:root {
    /* Light Theme Base */
    --cs-bg-primary: #FDFBF7;
    --cs-bg-secondary: #F7F4EE;
    --cs-bg-tertiary: #FFFFFF;
    --cs-bg-card: #FFFFFF;
    
    /* Warm Accent Colors */
    --cs-accent-coral: #E07A5F;
    --cs-accent-sand: #D4A574;
    --cs-accent-gold: #C9A227;
    --cs-accent-sage: #81B29A;
    --cs-accent-navy: #3D405B;
    
    /* Text Colors */
    --cs-text-primary: #2D2D2D;
    --cs-text-secondary: #5A5A5A;
    --cs-text-muted: #8A8A8A;
    --cs-text-light: #FFFFFF;
    
    /* Borders & Surfaces */
    --cs-border: rgba(0, 0, 0, 0.08);
    --cs-border-dark: rgba(0, 0, 0, 0.12);
    --cs-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --cs-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.08);
    --cs-shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --cs-font-heading: 'Playfair Display', Georgia, serif;
    --cs-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --cs-container: 1180px;
    --cs-radius-sm: 6px;
    --cs-radius-md: 12px;
    --cs-radius-lg: 20px;
    --cs-radius-xl: 32px;
    --cs-radius-full: 100px;
    
    /* Transitions */
    --cs-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--cs-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--cs-text-primary);
    background: var(--cs-bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cs-accent-coral);
    text-decoration: none;
    transition: color var(--cs-transition);
}

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

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--cs-font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--cs-text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1em 0;
}

.cs-text-accent {
    color: var(--cs-accent-coral);
}

.cs-text-elegant {
    font-family: var(--cs-font-heading);
    font-style: italic;
}

/* ================================
   LAYOUT
   ================================ */
.cs-container {
    width: 100%;
    max-width: var(--cs-container);
    margin: 0 auto;
    padding: 0 24px;
}

.cs-section {
    padding: 100px 0;
}

.cs-section--cream {
    background: var(--cs-bg-secondary);
}

.cs-section--white {
    background: var(--cs-bg-tertiary);
}

/* ================================
   BUTTONS
   ================================ */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--cs-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--cs-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--cs-transition);
    text-decoration: none;
}

.cs-btn--primary {
    background: var(--cs-accent-coral);
    color: var(--cs-text-light);
    border-color: var(--cs-accent-coral);
}

.cs-btn--primary:hover {
    background: var(--cs-accent-navy);
    border-color: var(--cs-accent-navy);
    color: var(--cs-text-light);
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-medium);
}

.cs-btn--outline {
    background: transparent;
    color: var(--cs-text-primary);
    border-color: var(--cs-border-dark);
}

.cs-btn--outline:hover {
    border-color: var(--cs-accent-coral);
    color: var(--cs-accent-coral);
}

.cs-btn--small {
    padding: 10px 20px;
    font-size: 13px;
}

/* ================================
   CARDS
   ================================ */
.cs-card {
    background: var(--cs-bg-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-lg);
    overflow: hidden;
    transition: all var(--cs-transition);
}

.cs-card:hover {
    border-color: var(--cs-border-dark);
    transform: translateY(-6px);
    box-shadow: var(--cs-shadow-strong);
}

.cs-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.cs-card:hover .cs-card__image img {
    transform: scale(1.05);
}

.cs-card__content {
    padding: 28px;
}

.cs-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cs-accent-coral);
    margin-bottom: 12px;
}

.cs-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.cs-card__title a {
    color: var(--cs-text-primary);
}

.cs-card__title a:hover {
    color: var(--cs-accent-coral);
}

.cs-card__excerpt {
    font-size: 15px;
    color: var(--cs-text-secondary);
    line-height: 1.6;
}

.cs-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cs-border);
    font-size: 13px;
    color: var(--cs-text-muted);
}

/* ================================
   HEADER - CENTERED LOGO VARIANT
   ================================ */
.cs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cs-border);
    transition: all var(--cs-transition);
}

.cs-header.scrolled {
    box-shadow: var(--cs-shadow-soft);
}

.cs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.cs-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-header__nav--left {
    flex: 1;
    justify-content: flex-end;
    padding-right: 48px;
}

.cs-header__nav--right {
    flex: 1;
    justify-content: flex-start;
    padding-left: 48px;
}

.cs-nav__link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--cs-transition);
}

.cs-nav__link:hover {
    color: var(--cs-accent-coral);
}

.cs-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cs-accent-coral);
    transition: all var(--cs-transition);
    transform: translateX(-50%);
}

.cs-nav__link:hover::after {
    width: 24px;
}

/* Logo Centered */
.cs-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.cs-logo__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.cs-logo__text {
    font-family: var(--cs-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--cs-text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-logo__text span {
    color: var(--cs-accent-coral);
}

/* Mobile Menu Toggle */
.cs-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ================================
   FOOTER
   ================================ */
.cs-footer {
    background: var(--cs-accent-navy);
    color: var(--cs-text-light);
    padding: 80px 0 40px;
}

.cs-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.cs-footer__brand {
    max-width: 280px;
}

.cs-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cs-footer__logo-text {
    font-family: var(--cs-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--cs-text-light);
}

.cs-footer__tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.cs-footer__title {
    font-family: var(--cs-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-accent-sand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

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

.cs-footer__links li {
    margin-bottom: 12px;
}

.cs-footer__links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--cs-transition);
}

.cs-footer__links a:hover {
    color: var(--cs-text-light);
}

.cs-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.cs-footer__social {
    display: flex;
    gap: 12px;
}

.cs-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--cs-radius-md);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--cs-transition);
}

.cs-footer__social a:hover {
    background: var(--cs-accent-coral);
    color: var(--cs-text-light);
}

/* ================================
   CATEGORY COLORS
   ================================ */
.cs-cat-hebergement { --cat-color: #E07A5F; }
.cs-cat-destinations { --cat-color: #81B29A; }
.cs-cat-business { --cat-color: #C9A227; }
.cs-cat-activites { --cat-color: #3D405B; }

/* ================================
   PAGINATION
   ================================ */
.cs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.cs-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-text-secondary);
    background: var(--cs-bg-tertiary);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-md);
    transition: all var(--cs-transition);
}

.cs-pagination__link:hover,
.cs-pagination__link--current {
    background: var(--cs-accent-coral);
    border-color: var(--cs-accent-coral);
    color: var(--cs-text-light);
}

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

/* Header Spacer */
.cs-header-spacer {
    height: 80px;
}

@media (max-width: 768px) {
    .cs-header-spacer {
        height: 70px;
    }
}

/* Mobile Menu Close Button */
.cs-mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-bg-secondary);
    border: none;
    border-radius: var(--cs-radius-md);
    cursor: pointer;
    color: var(--cs-text-primary);
    transition: all var(--cs-transition);
    z-index: 10;
}

.cs-mobile-menu__close:hover {
    background: var(--cs-accent-coral);
    color: var(--cs-text-light);
}

/* Mobile Menu Styles */
.cs-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: var(--cs-bg-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
}

.cs-mobile-menu.is-open {
    transform: translateX(0);
}

.cs-mobile-menu__inner {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
}

.cs-mobile-menu__nav {
    display: flex;
    flex-direction: column;
}

.cs-mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cs-text-primary);
    border-bottom: 1px solid var(--cs-border);
    text-decoration: none;
    transition: color var(--cs-transition);
}

.cs-mobile-menu__link:hover {
    color: var(--cs-accent-coral);
}

.cs-mobile-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cs-bg-secondary);
    border-radius: var(--cs-radius-md);
}

/* Heart Icon in Footer */
.cs-heart-icon {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 1024px) {
    .cs-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cs-header__nav--left,
    .cs-header__nav--right {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .cs-section {
        padding: 60px 0;
    }
    
    .cs-header__nav {
        display: none;
    }
    
    .cs-menu-toggle {
        display: block;
    }
    
    .cs-header__inner {
        height: 70px;
    }
    
    .cs-logo {
        flex-direction: row;
        gap: 10px;
    }
    
    .cs-logo__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
    }
    
    .cs-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cs-footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
