/* ==========================================================================
   RETRO-PHOTO.FR - CSS Clean & Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --noir: #1a1a1a;
    --gris-fonce: #333;
    --gris: #666;
    --gris-clair: #999;
    --creme: #faf9f7;
    --blanc: #fff;
    --or: #b8956b;
    --or-clair: #d4b896;
    
    --font-titre: 'Playfair Display', Georgia, serif;
    --font-corps: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-corps);
    background: var(--creme);
    color: var(--noir);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-titre); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--gris-fonce); }

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

/* HEADER */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--blanc); border-bottom: 1px solid rgba(0,0,0,0.08);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 60px; max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.logo { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 700; }
.logo span { color: var(--or); }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--gris-fonce); transition: color 0.3s; }
.nav a:hover { color: var(--or); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 8px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--noir); }

@media (max-width: 700px) {
    .nav { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
        background: var(--blanc); flex-direction: column; padding: 30px; gap: 15px; }
    .nav.active { display: flex; }
    .nav a { font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--creme); }
    .nav-toggle { display: flex; }
}

/* HERO */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 80px 20px 60px;
    background: var(--noir); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--or);
    margin-bottom: 15px; padding: 8px 15px; border: 1px solid var(--or);
}
.hero h1 { color: var(--blanc); margin-bottom: 15px; }
.hero-text { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 25px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
    .hero { min-height: auto; padding: 100px 20px 50px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
}

/* BUTTONS */
.btn {
    display: inline-block; font-size: 0.85rem; font-weight: 600;
    padding: 12px 25px; border: 2px solid transparent; border-radius: 3px;
    cursor: pointer; transition: all 0.3s; text-align: center;
}
.btn-primary { background: var(--or); color: var(--blanc); border-color: var(--or); }
.btn-primary:hover { background: var(--or-clair); border-color: var(--or-clair); }
.btn-outline { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn-dark { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn-dark:hover { background: var(--gris-fonce); border-color: var(--gris-fonce); }

/* SECTIONS */
section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-badge {
    display: inline-block; font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--or); margin-bottom: 10px;
}
.section-header p { max-width: 500px; margin: 0 auto; color: var(--gris); }

/* ARTICLES GRID */
.articles-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px;
}
.article-card {
    background: var(--blanc); border-radius: 4px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: all 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.article-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 20px; }
.article-card-category {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--or); margin-bottom: 5px;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color 0.3s; }
.article-card:hover h3 { color: var(--or); }
.article-card p { font-size: 0.85rem; color: var(--gris); margin-bottom: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; }
}

/* FEATURED */
.featured-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.featured-main { position: relative; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; }
.featured-main img { width: 100%; height: 100%; object-fit: cover; }
.featured-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
}
.featured-main h3 { color: var(--blanc); font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 5px; }
.featured-main p { color: rgba(255,255,255,0.75); margin-bottom: 0; font-size: 0.9rem; }
.featured-main .article-card-category { color: var(--or-clair); }
.featured-side { display: flex; flex-direction: column; gap: 20px; }
.featured-small { position: relative; flex: 1; border-radius: 4px; overflow: hidden; min-height: 150px; }
.featured-small img { width: 100%; height: 100%; object-fit: cover; }
.featured-small .featured-overlay { padding: 15px; }
.featured-small h3 { color: var(--blanc); font-size: 1rem; }

@media (max-width: 800px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-side { flex-direction: row; }
    .featured-small { min-height: 200px; }
}
@media (max-width: 500px) {
    .featured-side { flex-direction: column; }
}

/* STATS */
.stats { background: var(--noir); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-number { font-family: var(--font-titre); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--or); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 5px; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* NEWSLETTER */
.newsletter { background: var(--noir); text-align: center; padding: 60px 20px; }
.newsletter h2 { color: var(--blanc); margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.7); max-width: 450px; margin: 0 auto 25px; }
.newsletter-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 12px 15px; border: 1px solid var(--gris-fonce);
    border-radius: 3px; background: transparent; color: var(--blanc); font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: var(--gris); }
.newsletter-form input:focus { outline: none; border-color: var(--or); }
@media (max-width: 450px) { .newsletter-form { flex-direction: column; } }

/* FOOTER */
.footer { background: var(--noir); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--blanc); font-size: 1.6rem; display: inline-block; margin-bottom: 15px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-nav h4 { color: var(--blanc); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 15px; }
.footer-nav a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); padding: 5px 0; transition: color 0.3s; }
.footer-nav a:hover { color: var(--or); }
.footer-bottom { padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-legal a:hover { color: var(--or); }

@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* ARTICLE PAGE */
.article-header {
    position: relative; min-height: 50vh; display: flex; align-items: flex-end;
    background: var(--noir); padding-top: 60px;
}
.article-header-bg { position: absolute; inset: 0; }
.article-header-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.article-header-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%); }
.article-header-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 700px; }
.article-header h1 { color: var(--blanc); margin-bottom: 15px; }
.article-meta { display: flex; gap: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.article-content { padding: 50px 20px; max-width: 700px; margin: 0 auto; }
.article-content h2 { margin-top: 40px; margin-bottom: 15px; }
.article-content h3 { margin-top: 30px; margin-bottom: 10px; }
.article-content p { font-size: 1rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 25px; }
.article-content li { margin-bottom: 8px; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content figure { margin: 35px 0; }
.article-content figcaption { font-size: 0.8rem; color: var(--gris); text-align: center; padding-top: 10px; }
.article-content blockquote {
    font-family: var(--font-titre); font-size: 1.3rem; font-style: italic;
    color: var(--gris); border-left: 3px solid var(--or); padding-left: 20px; margin: 35px 0;
}

.info-box { background: var(--noir); color: var(--blanc); padding: 25px; border-radius: 4px; margin: 35px 0; }
.info-box h4 { color: var(--or); margin-bottom: 15px; }
.info-box ul { margin: 0; padding: 0; }
.info-box li { list-style: none; padding: 5px 0; }
.info-box a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.info-box a:hover { color: var(--or); }

.toc { background: var(--blanc); border: 1px solid #eee; padding: 20px; border-radius: 4px; margin-bottom: 35px; }
.toc h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--or); margin-bottom: 10px; }
.toc ul { margin: 0; padding: 0; }
.toc li { list-style: none; padding: 5px 0; }
.toc a { font-size: 0.9rem; color: var(--gris-fonce); }
.toc a:hover { color: var(--or); }

/* BLOG PAGE */
.blog-header { background: var(--noir); padding: 100px 20px 50px; text-align: center; }
.blog-header h1 { color: var(--blanc); margin-bottom: 10px; }
.blog-header p { color: rgba(255,255,255,0.7); }
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 25px 20px; border-bottom: 1px solid #eee; }
.filter-btn { font-size: 0.75rem; font-weight: 500; padding: 8px 15px; background: transparent;
    border: 1px solid var(--gris-clair); border-radius: 20px; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--noir); color: var(--blanc); border-color: var(--noir); }

/* LEGAL */
.legal-header { background: var(--noir); padding: 100px 20px 40px; }
.legal-header h1 { color: var(--blanc); }
.legal-content { padding: 50px 20px; max-width: 700px; margin: 0 auto; }
.legal-content h2 { margin-top: 35px; font-size: 1.2rem; }
.legal-content h3 { margin-top: 25px; font-size: 1rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: var(--blanc); padding: 30px; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; color: var(--gris-fonce); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #eee;
    border-radius: 3px; font-family: inherit; font-size: 0.95rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--or); }
.form-group textarea { min-height: 130px; resize: vertical; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ABOUT */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img { border-radius: 4px; overflow: hidden; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.value-card { background: var(--blanc); padding: 30px 20px; border-radius: 4px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.value-icon { font-size: 2rem; margin-bottom: 15px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.85rem; color: var(--gris); margin-bottom: 0; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } .values-grid { grid-template-columns: 1fr; } }

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