/* ===== CHARLES.MÉDIA — Feuille de style principale ===== */

:root {
  --navy:        #112244;
  --bordeaux:    #8B2635;
  --bordeaux-h:  #6E1D29;
  --rouille:     #B85C38;
  --rouille-h:   #934830;
  --nude-bg:     #FFFFFF;
  --nude-card:   #F5EDE4;
  --nude-card2:  #FDF8F4;
  --body:        #2A1A14;
  --secondary:   #6B5248;
  --muted:       #A08878;
  --border:      #DDD0C4;
  --border2:     #CCC0B0;
  --radius:      8px;
}

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

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

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--nude-bg);
  color: var(--body);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-h); text-decoration: underline; }

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

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--bordeaux);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  background: var(--nude-bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo-charles {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #0B3157;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.logo-media {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: .62rem;
  color: #0B3157;
  letter-spacing: .55em;
  margin-right: -.55em;
  text-transform: uppercase;
  margin-top: .3rem;
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }

.site-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--secondary);
  text-decoration: none;
  transition: color .2s;
}

.site-nav a:hover { color: var(--bordeaux); text-decoration: none; }

/* ===== HERO (masqué) ===== */
.hero { display: none; }

/* ===== FEATURED ARTICLE ===== */
.featured-section { padding: 3rem 1.5rem; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--nude-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(17,34,68,.12);
  border: 1px solid var(--border);
}

.featured-img { width: 100%; height: 380px; object-fit: cover; }

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tag {
  display: inline-block;
  background: var(--rouille);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

.featured-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: .75rem;
}

.featured-content p { color: var(--secondary); margin-bottom: 1.5rem; }

.article-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--bordeaux);
  color: white;
}
.btn-primary:hover {
  background: var(--bordeaux-h);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--bordeaux);
  border: 2px solid var(--bordeaux);
}
.btn-outline:hover {
  background: var(--bordeaux);
  color: white;
  text-decoration: none;
}

/* ===== TAG FILTERS ===== */
.tag-filter-section {
  padding: 0 1.5rem 2rem;
  text-align: center;
}

.tag-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.tag-btn {
  padding: .4rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--border2);
  background: white;
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tag-btn:hover, .tag-btn.active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: white;
}

/* ===== ARTICLE GRID ===== */
.articles-section { padding: 2rem 1.5rem 4rem; }

.section-title {
  font-size: .75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--nude-card2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17,34,68,.12);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body { padding: 1.25rem; }
.card-body .category-tag { margin-bottom: .5rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card-body p { font-size: .9rem; color: var(--secondary); margin-bottom: .75rem; }
.card-body .article-meta { margin-bottom: 0; }

/* ===== ARTICLE PAGE ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-header { margin-bottom: 2rem; }

.article-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { margin: 2rem 0 1rem; }
.article-body h3 { margin: 1.5rem 0 .75rem; }
.article-body blockquote {
  border-left: 4px solid var(--rouille);
  padding: 1rem 1.5rem;
  background: var(--nude-card);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-box {
  background: var(--nude-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rouille);
}

/* ===== DEBATE ===== */
.debate-questions { display: flex; flex-direction: column; gap: .75rem; }

.debate-item {
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
}

.debate-question {
  width: 100%;
  background: white;
  border: none;
  padding: .85rem 1rem;
  text-align: left;
  font-family: 'Lora', Georgia, serif;
  font-size: .9rem;
  color: var(--body);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}

.debate-question:hover { background: var(--nude-card2); }
.debate-question .arrow { color: var(--rouille); font-size: .8rem; transition: transform .3s; }
.debate-question[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.debate-answer {
  display: none;
  padding: 1rem;
  background: var(--nude-bg);
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--secondary);
}

.debate-answer.open { display: block; }

/* ===== COMMENTAIRES ===== */
.comment-form { display: flex; flex-direction: column; gap: .75rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.form-group { display: flex; flex-direction: column; gap: .3rem; }

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  padding: .6rem .85rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-family: 'Lora', Georgia, serif;
  font-size: .9rem;
  color: var(--body);
  background: white;
  transition: border-color .2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
}

.form-hint {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}

.btn-submit {
  background: var(--navy);
  color: white;
  padding: .7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  transition: background .2s;
  align-self: flex-start;
}

.btn-submit:hover { background: #1a3366; }

.comments-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.comment-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.comment-pseudo {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--bordeaux);
}

.comment-date {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  color: var(--muted);
}

.comment-text { font-size: .9rem; color: var(--secondary); }

/* ===== RGPD NOTICE ===== */
.rgpd-notice {
  background: var(--nude-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .75rem;
  color: var(--secondary);
  line-height: 1.5;
}

.rgpd-notice a { color: var(--bordeaux); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-logo-charles {
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-logo-media {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-size: .55rem;
  color: white;
  letter-spacing: .55em;
  margin-right: -.55em;
  text-transform: uppercase;
  margin-top: .3rem;
}

.footer-tagline { margin: .5rem 0 1.5rem; color: rgba(255,255,255,.5); }

.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--rouille); text-decoration: none; }

.footer-disclaimer {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

/* ===== MENTIONS LÉGALES ===== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page .legal-date { color: var(--muted); font-size: .85rem; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; color: var(--bordeaux); }
.legal-page p, .legal-page li { color: var(--secondary); }
.legal-page ul { margin: .5rem 0 1rem 1.5rem; }
.legal-page li { margin-bottom: .3rem; }

.warning-box {
  background: #FFF3CD;
  border: 2px solid #F0AD4E;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.warning-box strong { color: #856404; display: block; margin-bottom: .5rem; }
.warning-box p { color: #664D03; margin: 0; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page .error-code { font-size: 6rem; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.error-page h2 { margin-bottom: 1rem; }
.error-page p { color: var(--secondary); margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { height: 240px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 1rem 2rem; }
}
