/*
Theme Name: Edelize
Theme URI: https://example.com/edelize
Author: Yohann
Author URI: https://example.com
Description: Thème WordPress custom Edelize, basé sur une structure classique (PHP) légère et facile à étendre.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: edelize
*/

/* ==========================================================================
   Reset / base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

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

a {
    color: #1a56db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.site-header .site-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.site-header .site-title a {
    color: #111;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 10px 0 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
}

.content-area {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

#primary {
    flex: 1;
    min-width: 0;
}

#secondary {
    width: 280px;
    flex-shrink: 0;
}

.site-footer {
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #777;
}

/* ==========================================================================
   Articles
   ========================================================================== */

.entry-title {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 1rem;
}

article + article {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
    .content-area {
        flex-direction: column;
    }

    #secondary {
        width: 100%;
    }
}
