/**
 * Autour de la Roue - Style Magazine Éditorial
 * Design asymétrique et moderne
 */

:root {
    --petrol: #0f4c5c;
    --petrol-light: #1a6373;
    --terracotta: #e07a5f;
    --terracotta-dark: #c9694f;
    --cream: #faf3e0;
    --cream-dark: #f0e6cc;
    --charcoal: #2d3436;
    --slate: #636e72;
    --light: #f8f9fa;
    --white: #ffffff;
    
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    
    --radius: 4px;
    --radius-lg: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    background: var(--cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--petrol);
    line-height: 1.3;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--terracotta-dark); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

/* HEADER - Minimaliste centré */
.site-header {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-top {
    background: var(--petrol);
    padding: 8px 0;
    text-align: center;
}

.header-top span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-main {
    padding: 25px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.logo:hover .logo-icon { transform: rotate(360deg); }

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--petrol);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--petrol); }

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    font-size: 1.2rem;
    padding: 10px;
    transition: var(--transition);
}

.search-toggle:hover { color: var(--terracotta); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--charcoal);
    margin: 5px 0;
    transition: var(--transition);
}

/* HERO - Style éditorial */
.hero {
    background: var(--petrol);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

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

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--petrol);
    padding: 16px 35px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* SECTION */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }

.section-header {
    margin-bottom: 60px;
}

.section-header.center { text-align: center; }

.section-label {
    display: inline-block;
    color: var(--terracotta);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
}

.section-header.center .section-desc { margin: 0 auto; }

/* GRID MAGAZINE - Asymétrique */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.magazine-grid .card-featured {
    grid-column: span 7;
    grid-row: span 2;
}

.magazine-grid .card-standard {
    grid-column: span 5;
}

.magazine-grid .card-small {
    grid-column: span 4;
}

/* CARDS - Style overlay */
.card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

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

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

.card-featured .card-image { height: 100%; min-height: 500px; }
.card-standard .card-image { height: 250px; }
.card-small .card-image { height: 220px; }

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

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
}

.card-featured .card-overlay { padding: 60px 40px; }

.card-category {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.card-title {
    font-family: var(--font-serif);
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-featured .card-title { font-size: 2rem; }
.card-standard .card-title { font-size: 1.25rem; }
.card-small .card-title { font-size: 1.1rem; }

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.card-meta i { margin-right: 5px; }

/* CARD HORIZONTAL - Style alternatif */
.card-horizontal {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card-horizontal:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.card-horizontal .card-image {
    width: 280px;
    flex-shrink: 0;
}

.card-horizontal .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-horizontal .card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-horizontal .card-title {
    color: var(--petrol);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-horizontal .card-excerpt {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-horizontal .card-meta {
    color: var(--slate);
}

/* CATEGORIES - Style pilules */
.categories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid transparent;
}

.cat-pill:hover {
    border-color: var(--terracotta);
    transform: translateY(-3px);
}

.cat-pill span { color: var(--charcoal); font-weight: 500; }
.cat-pill .count {
    background: var(--cream);
    color: var(--petrol);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ARTICLE PAGE */
.article-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.8));
}

.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    color: var(--white);
    max-width: 800px;
}

.article-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.article-hero .card-meta { font-size: 1rem; }

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 80px 0;
}

.article-content {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.article-lead {
    font-size: 1.3rem;
    color: var(--petrol);
    line-height: 1.8;
    padding-left: 30px;
    border-left: 4px solid var(--terracotta);
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 2;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 50px 0 25px;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 40px 0 20px;
}

.article-body p { margin-bottom: 25px; }

.article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 30px 0;
}

.article-body blockquote {
    background: var(--cream);
    padding: 30px 40px;
    border-left: 4px solid var(--terracotta);
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
}

/* SIDEBAR */
.sidebar { position: sticky; top: 120px; }

.widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--petrol);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cream);
}

.widget-list { list-style: none; }

.widget-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--cream);
}

.widget-list li:last-child { border-bottom: none; }

.widget-list a {
    display: flex;
    justify-content: space-between;
    color: var(--charcoal);
    font-weight: 500;
}

.widget-list a:hover { color: var(--terracotta); }

.widget-list .count {
    color: var(--slate);
    font-size: 0.9rem;
}

.mini-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--cream);
}

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

.mini-post-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.mini-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 5px;
    line-height: 1.4;
}

.mini-post-title:hover { color: var(--terracotta); }

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

/* FOOTER */
.footer {
    background: var(--petrol);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-links { list-style: none; }

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

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

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

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* BREADCRUMB */
.breadcrumb-bar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--cream-dark);
}

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

.breadcrumb li::after { content: '›'; margin-left: 10px; color: var(--slate); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .current { color: var(--petrol); font-weight: 500; }

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

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

.pagination a:hover {
    background: var(--petrol);
    color: var(--white);
}

.pagination .active {
    background: var(--terracotta);
    color: var(--white);
}

/* FORMS */
.form-group { margin-bottom: 25px; }

.form-label {
    display: block;
    font-weight: 600;
    color: var(--petrol);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--terracotta);
}

textarea.form-control { min-height: 150px; resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--petrol);
    color: var(--petrol);
}

.btn-outline:hover {
    background: var(--petrol);
    color: var(--white);
}

/* ALERT */
.alert {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* BACK TO TOP */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--petrol);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-medium);
}

.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--terracotta); transform: translateY(-5px); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .magazine-grid .card-featured { grid-column: span 12; }
    .magazine-grid .card-standard { grid-column: span 6; }
    .magazine-grid .card-small { grid-column: span 6; }
    .article-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .magazine-grid .card-standard,
    .magazine-grid .card-small { grid-column: span 12; }
    .card-horizontal { flex-direction: column; }
    .card-horizontal .card-image { width: 100%; height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 0; }
    .section { padding: 60px 0; }
    .article-content { padding: 30px; }
    .article-hero h1 { font-size: 2rem; }
}
