/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
  --ink: #1a1612;
  --ink-light: #3d3530;
  --ink-muted: #7a6e66;
  --paper: #f7f4ef;
  --paper-warm: #ede9e2;
  --accent: #c0392b;
  --accent-dark: #922b21;
  --border: #d4cdc4;
  --highlight: #fdf3e7;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  border-bottom: 3px solid var(--ink);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}

.site-logo {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-logo strong {
  color: var(--ink);
}

.header-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.rubrique {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rubrique::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.standfirst {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.65;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.meta-sep {
  opacity: 0.3;
}

/* ==========================================================================
   AD PLACEHOLDER
   ========================================================================== */
.ad-banner {
  margin: 0.75rem auto;
  text-align: center;
  overflow: hidden; 
}

.ad-banner:empty,
.ad-banner:has(ins[data-ad-status="unfilled"]) {
  display: none;
}
/* ==========================================================================
   LAYOUT
   ========================================================================== */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ==========================================================================
   SOMMAIRE
   ========================================================================== */
.sommaire {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.sommaire-titre,
.sources-titre {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.sommaire ol {
  padding-left: 1.25rem;
}

.sommaire li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* Links shared by .sommaire and .sources */
.sommaire a,
.sources a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.sommaire a:hover,
.sources a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   SECTIONS & TYPOGRAPHY
   ========================================================================== */
.section {
  margin: 3.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-light);
  margin: 2rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

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

/* ==========================================================================
   CHIFFRES CLÉS
   ========================================================================== */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.chiffre-item {
  background: var(--paper);
  padding: 1.5rem;
  text-align: center;
}

.chiffre-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.chiffre-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.tl-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.tl-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.tl-text {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   ENCADRÉ
   ========================================================================== */
.encadre {
  background: var(--highlight);
  border: 1px solid #e8d5b0;
  border-left: 4px solid #c17f24;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.encadre-titre {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c17f24;
  margin-bottom: 0.75rem;
}

.encadre p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* ==========================================================================
   MISE AU POINT
   ========================================================================== */
.mise-au-point {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.mise-au-point .map-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mise-au-point h2 {
  color: var(--paper);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.mise-au-point p {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.85);
  line-height: 1.7;
}

.mise-au-point a {
  color: #e8c99a;
}

/* ==========================================================================
   SOURCES
   ========================================================================== */
.sources {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
}

.sources ul {
  list-style: none;
  padding: 0;
}

.sources li {
  font-size: 0.82rem;
  color: var(--ink-light);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

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

.sources li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.sources a {
  border-bottom-color: var(--border);
  word-break: break-all;
}

/* Inline source link */
sup a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-decoration: none;
  vertical-align: super;
}

/* ==========================================================================
   FOOTER
   (merged: base rule + override; the base 3px top border and its colours
   were fully overridden, so only letter-spacing is carried over)
   ========================================================================== */
footer {
  clear: both;
  text-align: center;
  padding: 10px 15px;
  border: 1px solid #ccc;
  margin-top: 20px;
  background: #f8f8f8;
  font-family: "Comic Sans MS", Tahoma, Arial, sans-serif;
  font-size: 0.85em;
  color: #523A4E;
  letter-spacing: 0.06em;
}

footer a {
  color: #D645BE;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-sep {
  color: #ccc;
  margin: 0 6px;
}

/* ==========================================================================
   COCOLAND NOTICE
   ========================================================================== */
#cocoland-notice {
  all: initial;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  background: #1a1a2e;
  color: #e8e6e0;
  border-bottom: 4px solid #c8a84b;
  width: 100%;
  box-sizing: border-box;
}

#cocoland-notice * {
  box-sizing: border-box;
}

#cocoland-notice .cn-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 28px 40px;
}

#cocoland-notice .cn-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(200, 168, 75, 0.3);
  padding-bottom: 20px;
}

#cocoland-notice .cn-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

#cocoland-notice .cn-title {
  display: block;
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 4px;
}

/* Merged from .cn-headline + h1.cn-headline */
#cocoland-notice .cn-headline {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

#cocoland-notice .cn-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(200, 168, 75, 0.12);
  border: 1px solid rgba(200, 168, 75, 0.5);
  color: #c8a84b;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

#cocoland-notice .cn-intro {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #ddd8cc;
  margin: 0 0 28px 0;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border-left: 3px solid rgba(200, 168, 75, 0.5);
}

#cocoland-notice .cn-section {
  margin-bottom: 22px;
}

#cocoland-notice .cn-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 10px;
}

#cocoland-notice .cn-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 168, 75, 0.2);
}

#cocoland-notice p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #ccc8be;
  margin: 0 0 10px 0;
  padding: 0;
}

#cocoland-notice strong {
  color: #f0ece0;
  font-weight: bold;
}

#cocoland-notice a {
  color: #ffd65f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cocoland-notice .cn-highlight {
  background: rgba(200, 168, 75, 0.1);
  border-left: 3px solid #c8a84b;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}

#cocoland-notice .cn-highlight p {
  margin: 0;
  font-style: italic;
  color: #ddd8cc;
}

#cocoland-notice .cn-cooperation {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 168, 75, 0.3);
  border-radius: 4px;
  padding: 20px 22px;
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#cocoland-notice .cn-cooperation-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

#cocoland-notice .cn-cooperation-text {
  flex: 1;
}

#cocoland-notice .cn-cooperation-text strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: #ffffff;
}

#cocoland-notice .cn-cooperation-text p {
  font-size: 0.91rem;
  margin: 0;
}

#cocoland-notice .cn-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#cocoland-notice .cn-footer-date {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(200, 168, 75, 0.6);
  letter-spacing: 0.08em;
}

#cocoland-notice .cn-footer-domain {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 8px;
}

.form-group label em {
  color: #e06060;
  font-style: normal;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: 3px;
  padding: 14px 16px;
  color: #e8e6e0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: rgba(200, 168, 75, 0.7);
  background: rgba(200, 168, 75, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-style: italic;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

/* reCAPTCHA wrapper */
.recaptcha-wrap {
  margin-bottom: 28px;
  filter: invert(0.85) hue-rotate(180deg);
  opacity: 0.9;
}

/* Send button */
.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid #c8a84b;
  color: #c8a84b;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.send-btn:hover {
  background: #c8a84b;
  color: #12121f;
}

.send-btn::after {
  content: '→';
  font-size: 1rem;
  letter-spacing: 0;
}

/* ==========================================================================
   LEGACY (looks unused — delete if nothing in your templates references it)
   ========================================================================== */
.old-h1 {
  font-size: 2em;
  color: #0cf;
  font-weight: bold;
  margin: 0.67em 0;
}

/* ==========================================================================
   RESPONSIVE (kept last so these always win the cascade)
   ========================================================================== */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .article-wrap {
    padding: 0 1.25rem 3rem;
  }

  .mise-au-point {
    padding: 1.75rem 1.25rem;
  }

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

@media (max-width: 600px) {
  #cocoland-notice .cn-badge {
    display: none;
  }

  #cocoland-notice .cn-headline {
    font-size: 1.1rem;
  }

  #cocoland-notice .cn-footer {
    flex-direction: column;
    gap: 4px;
  }
}