/*
Theme Name: Tucson Model Group
Theme URI: https://tucsonmodelgroup.com
Author: Tucson Model Group
Author URI: https://tucsonmodelgroup.com
Description: Magazine éditorial dédié à l'univers du mannequinat, de l'image professionnelle et des carrières dans la mode. Conseils beauté, photographie, formation et business du modeling.
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: tucson-model
Tags: blog, fashion, lifestyle, custom-logo, custom-menu, featured-images, editorial

Tucson Model Group - L'excellence dans l'image professionnelle.
*/

/* ============================================
   DESIGN SYSTEM - TOKENS
   ============================================ */
:root {
    /* 
     * Palette - Tons naturels et élégants
     * Inspirée des magazines mode haut de gamme
     */
    --tm-white: #ffffff;
    --tm-ivory: #faf8f5;
    --tm-cream: #f5f1eb;
    --tm-sand: #e8e2d9;
    --tm-taupe: #b8a99a;
    --tm-warm-gray: #8c8279;
    --tm-charcoal: #3d3a36;
    --tm-ink: #1a1815;
    
    /* Accent - Terracotta subtil */
    --tm-accent: #c4a17b;
    --tm-accent-dark: #a68660;
    
    /* Backgrounds */
    --tm-bg-primary: var(--tm-ivory);
    --tm-bg-secondary: var(--tm-cream);
    --tm-bg-card: var(--tm-white);
    
    /* Text */
    --tm-text-primary: var(--tm-ink);
    --tm-text-secondary: var(--tm-charcoal);
    --tm-text-muted: var(--tm-warm-gray);
    --tm-text-light: var(--tm-taupe);
    
    /* Borders */
    --tm-border: rgba(0, 0, 0, 0.08);
    --tm-border-strong: rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --tm-font-display: 'DM Serif Display', Georgia, serif;
    --tm-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --tm-container: 1180px;
    --tm-container-narrow: 720px;
    --tm-gap: 24px;
    --tm-gap-lg: 48px;
    --tm-gap-xl: 80px;
    
    /* Radius - Subtil */
    --tm-radius: 4px;
    --tm-radius-md: 8px;
    
    /* Transitions */
    --tm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tm-transition-fast: 0.15s ease;
}

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

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

body {
    font-family: var(--tm-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--tm-text-primary);
    background-color: var(--tm-bg-primary);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tm-transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tm-font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--tm-text-primary);
    letter-spacing: -0.01em;
}

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

p {
    margin-bottom: 1.5em;
}

p:last-child {
    margin-bottom: 0;
}

.tm-label {
    font-family: var(--tm-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tm-text-muted);
}

.tm-lead {
    font-size: 1.125rem;
    color: var(--tm-text-secondary);
    line-height: 1.8;
}

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

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

.tm-section {
    padding: var(--tm-gap-xl) 0;
}

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

/* ============================================
   HEADER
   ============================================ */
.tm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tm-border);
    transition: transform var(--tm-transition), box-shadow var(--tm-transition);
}

.tm-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

/* Logo */
.tm-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tm-logo__mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-logo__text {
    font-family: var(--tm-font-display);
    font-size: 1.375rem;
    color: var(--tm-text-primary);
    letter-spacing: -0.02em;
}

/* Navigation */
.tm-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tm-nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tm-text-secondary);
    position: relative;
    padding: 8px 0;
}

.tm-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tm-accent);
    transition: width var(--tm-transition);
}

.tm-nav__link:hover {
    color: var(--tm-text-primary);
}

.tm-nav__link:hover::after {
    width: 100%;
}

/* Header CTA */
.tm-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tm-text-primary);
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius);
    transition: all var(--tm-transition-fast);
}

.tm-header__cta:hover {
    background: var(--tm-ink);
    color: var(--tm-white);
    border-color: var(--tm-ink);
}

/* Mobile Menu Toggle */
.tm-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
}

.tm-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tm-text-primary);
    transition: all var(--tm-transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--tm-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--tm-radius);
    border: none;
    transition: all var(--tm-transition);
}

.tm-btn--primary {
    background: var(--tm-ink);
    color: var(--tm-white);
}

.tm-btn--primary:hover {
    background: var(--tm-charcoal);
    transform: translateY(-1px);
}

.tm-btn--outline {
    background: transparent;
    color: var(--tm-text-primary);
    border: 1px solid var(--tm-border-strong);
}

.tm-btn--outline:hover {
    border-color: var(--tm-ink);
    background: var(--tm-ink);
    color: var(--tm-white);
}

.tm-btn--ghost {
    background: transparent;
    color: var(--tm-text-secondary);
    padding: 8px 0;
}

.tm-btn--ghost:hover {
    color: var(--tm-text-primary);
}

/* ============================================
   CARDS
   ============================================ */
.tm-card {
    background: var(--tm-bg-card);
    border-radius: var(--tm-radius-md);
    overflow: hidden;
    transition: transform var(--tm-transition), box-shadow var(--tm-transition);
}

.tm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

.tm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tm-transition);
}

.tm-card:hover .tm-card__image img {
    transform: scale(1.03);
}

.tm-card__content {
    padding: var(--tm-gap);
}

.tm-card__category {
    display: inline-block;
    margin-bottom: 12px;
}

.tm-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tm-card__title a:hover {
    color: var(--tm-accent-dark);
}

.tm-card__excerpt {
    font-size: 0.9375rem;
    color: var(--tm-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tm-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--tm-text-muted);
}

/* Featured Card (Large) */
.tm-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.tm-card--featured .tm-card__image {
    aspect-ratio: auto;
    min-height: 400px;
}

.tm-card--featured .tm-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--tm-gap-lg);
}

.tm-card--featured .tm-card__title {
    font-size: 2rem;
}

/* ============================================
   ARTICLE GRID
   ============================================ */
.tm-grid {
    display: grid;
    gap: var(--tm-gap);
}

.tm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.tm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.tm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--tm-gap-lg);
    padding-bottom: var(--tm-gap);
    border-bottom: 1px solid var(--tm-border);
}

.tm-section-header__title {
    font-size: 1.75rem;
}

.tm-section-header__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tm-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tm-section-header__link:hover {
    color: var(--tm-text-primary);
}

.tm-section-header__link svg {
    transition: transform var(--tm-transition-fast);
}

.tm-section-header__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.tm-footer {
    background: var(--tm-ink);
    color: var(--tm-sand);
    padding: var(--tm-gap-xl) 0 var(--tm-gap-lg);
}

.tm-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--tm-gap-lg);
    margin-bottom: var(--tm-gap-xl);
}

.tm-footer__brand {
    max-width: 300px;
}

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

.tm-footer__logo-text {
    font-family: var(--tm-font-display);
    font-size: 1.25rem;
    color: var(--tm-white);
}

.tm-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--tm-taupe);
}

.tm-footer__title {
    font-family: var(--tm-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-white);
    margin-bottom: 20px;
}

.tm-footer__links {
    list-style: none;
}

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

.tm-footer__links a {
    font-size: 0.9375rem;
    color: var(--tm-taupe);
    transition: color var(--tm-transition-fast);
}

.tm-footer__links a:hover {
    color: var(--tm-white);
}

.tm-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--tm-gap-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tm-footer__copy {
    font-size: 0.8125rem;
    color: var(--tm-warm-gray);
}

.tm-footer__legal {
    display: flex;
    gap: 24px;
}

.tm-footer__legal a {
    font-size: 0.8125rem;
    color: var(--tm-warm-gray);
}

.tm-footer__legal a:hover {
    color: var(--tm-white);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.tm-article {
    padding-top: 120px;
}

.tm-article__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--tm-gap-lg);
    padding: 0 var(--tm-gap);
}

.tm-article__category {
    margin-bottom: 20px;
}

.tm-article__title {
    margin-bottom: 24px;
}

.tm-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--tm-text-muted);
}

.tm-article__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-article__featured-image {
    max-width: 1000px;
    margin: 0 auto var(--tm-gap-xl);
    border-radius: var(--tm-radius-md);
    overflow: hidden;
}

.tm-article__featured-image img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

.tm-article__content {
    max-width: var(--tm-container-narrow);
    margin: 0 auto;
    padding: 0 var(--tm-gap);
}

.tm-article__content p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--tm-text-secondary);
}

.tm-article__content h2 {
    margin: 48px 0 24px;
}

.tm-article__content h3 {
    margin: 40px 0 20px;
}

.tm-article__content ul,
.tm-article__content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.tm-article__content li {
    margin-bottom: 12px;
}

.tm-article__content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--tm-bg-secondary);
    border-left: 3px solid var(--tm-accent);
    font-family: var(--tm-font-display);
    font-size: 1.375rem;
    font-style: italic;
    color: var(--tm-text-primary);
}

/* ============================================
   ARCHIVE
   ============================================ */
.tm-archive__header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--tm-bg-secondary);
}

.tm-archive__title {
    margin-bottom: 16px;
}

.tm-archive__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--tm-text-secondary);
}

/* ============================================
   PAGINATION
   ============================================ */
.tm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--tm-gap-xl);
}

.tm-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tm-text-secondary);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius);
    transition: all var(--tm-transition-fast);
}

.tm-pagination__link:hover,
.tm-pagination__link--current {
    background: var(--tm-ink);
    color: var(--tm-white);
    border-color: var(--tm-ink);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.tm-newsletter {
    background: var(--tm-bg-secondary);
    padding: var(--tm-gap-xl) 0;
}

.tm-newsletter__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tm-newsletter__title {
    margin-bottom: 16px;
}

.tm-newsletter__text {
    color: var(--tm-text-secondary);
    margin-bottom: 32px;
}

.tm-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.tm-newsletter__input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--tm-font-body);
    font-size: 0.9375rem;
    color: var(--tm-text-primary);
    background: var(--tm-white);
    border: 1px solid var(--tm-border-strong);
    border-radius: var(--tm-radius);
    outline: none;
    transition: border-color var(--tm-transition-fast);
}

.tm-newsletter__input:focus {
    border-color: var(--tm-accent);
}

.tm-newsletter__input::placeholder {
    color: var(--tm-text-muted);
}

/* ============================================
   404 PAGE
   ============================================ */
.tm-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--tm-gap);
}

.tm-404__code {
    font-family: var(--tm-font-display);
    font-size: 8rem;
    color: var(--tm-sand);
    line-height: 1;
    margin-bottom: 24px;
}

.tm-404__title {
    margin-bottom: 16px;
}

.tm-404__text {
    color: var(--tm-text-secondary);
    margin-bottom: 32px;
}

/* ============================================
   UTILITIES
   ============================================ */
.tm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tm-text-center { text-align: center; }
.tm-text-muted { color: var(--tm-text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .tm-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-card--featured {
        grid-template-columns: 1fr;
    }
    
    .tm-card--featured .tm-card__image {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --tm-gap-xl: 60px;
    }
    
    .tm-header__inner {
        height: 64px;
    }
    
    .tm-nav {
        display: none;
    }
    
    .tm-header__cta {
        display: none;
    }
    
    .tm-menu-toggle {
        display: flex;
    }
    
    .tm-grid--2,
    .tm-grid--3,
    .tm-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .tm-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--tm-gap-lg);
    }
    
    .tm-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .tm-newsletter__form {
        flex-direction: column;
    }
    
    .tm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tm-article__meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .tm-404__code {
        font-size: 5rem;
    }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.tm-mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--tm-bg-primary);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
}

.tm-mobile-nav.is-active {
    transform: translateX(0);
    visibility: visible;
}

.tm-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-mobile-nav__link {
    display: block;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tm-text-primary);
    border-bottom: 1px solid var(--tm-border);
    transition: color var(--tm-transition-fast);
}

.tm-mobile-nav__link:hover {
    color: var(--tm-accent-dark);
}

.tm-mobile-nav__link--cta {
    margin-top: 16px;
    padding: 16px 24px;
    background: var(--tm-ink);
    color: var(--tm-white);
    border-radius: var(--tm-radius);
    text-align: center;
    border: none;
}

.tm-mobile-nav__link--cta:hover {
    background: var(--tm-charcoal);
    color: var(--tm-white);
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Menu toggle animation */
.tm-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.tm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.tm-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
