/* =======================================================
   SOCIALINPUT.FR - ARCHIVES 2013-2016
   Magazine Tech Modern Design - 2026
   Inspired by: TechCrunch, The Verge, Wired
   ======================================================= */

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

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

/* Variables */
:root {
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  
  --accent: #ff3366;
  --accent-hover: #e60039;
  --accent-soft: #ffe5ec;
  
  --tech: #0066ff;
  --tech-soft: #e5efff;
  
  --serif: 'Source Serif Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 56px;
}

/* Bandeau Archives en haut */
body::before {
  content: "ARCHIVES · 2013 — 2016 · SocialInput.fr";
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 9999;
  border-bottom: 3px solid var(--accent);
}

/* Containers généraux */
#wrapper,
#page,
.site,
.container,
.content-area,
main,
#main,
#content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
}

/* Header du site */
#masthead,
.site-header,
header.site-header,
#header,
.header {
  text-align: center;
  padding: 60px 20px 40px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.site-title,
#site-title,
h1.site-title {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description,
#site-description {
  color: var(--gray-500);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

/* Navigation principale */
#site-navigation,
.main-navigation,
nav,
.nav-menu,
#access {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gray-100);
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

nav ul,
.nav-menu ul,
#access ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
}

nav ul li,
.nav-menu ul li,
#access ul li {
  margin: 0;
  padding: 0 18px;
  border-right: 1px solid var(--gray-100);
}

nav ul li:last-child {
  border-right: none;
}

nav a,
.nav-menu a,
#access a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 0;
  display: inline-block;
}

nav a:hover,
.nav-menu a:hover,
#access a:hover {
  color: var(--accent);
}

/* Article container - magazine style */
article,
.post,
.hentry,
.entry,
.type-post {
  background: var(--white);
  max-width: 760px;
  margin: 60px auto;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Single post fullwidth feel */
.single article,
.single .post {
  max-width: 760px;
}

/* Header de l'article */
.entry-header,
.post-header,
header.entry-header {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: none;
  text-align: left;
}

/* Catégories au-dessus du titre - style "tag" */
.cat-links,
.entry-categories,
.post-categories {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.cat-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
  transition: color 0.2s;
}

.cat-links a:hover {
  color: var(--accent-hover);
}

/* Titre principal de l'article - GROS et IMPACTANT */
h1,
.entry-title,
h1.entry-title,
.post-title {
  font-family: var(--sans);
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 24px;
}

h1.entry-title a,
.entry-title a,
.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

h1.entry-title a:hover,
.entry-title a:hover {
  color: var(--accent);
}

/* H2 - Section dans l'article */
h2 {
  font-family: var(--sans);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 50px 0 20px;
  color: var(--black);
}

h3 {
  font-family: var(--sans);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--black);
}

h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  margin: 32px 0 14px;
}

/* Meta info (date, auteur) */
.entry-meta,
.post-meta,
.post-info,
.byline,
.posted-on {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.entry-meta a,
.post-meta a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.entry-meta a:hover {
  color: var(--accent);
}

/* Séparateur entre titre et contenu */
.entry-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 32px 0;
}

/* Contenu de l'article - typo magazine */
.entry-content,
.post-content,
.content {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--gray-900);
}

.entry-content p,
.post-content p,
p {
  margin-bottom: 1.5em;
}

/* Premier paragraphe - lead */
.entry-content > p:first-of-type {
  font-size: 1.375rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 32px;
}

/* Liens dans le texte */
.entry-content a,
p a,
.post-content a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.2s;
  font-weight: 500;
}

.entry-content a:hover,
p a:hover {
  color: var(--accent);
  text-decoration-color: var(--black);
}

/* Liens en dehors du contenu */
a {
  color: var(--accent);
}

/* Images - GRANDES et impactantes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 4px;
}

/* Image principale (featured/dans contenu) - SEULEMENT les vraies images d'articles */
.entry-content > img,
.entry-content > p > img,
.entry-content > figure > img,
.post-content > img,
.post-content > p > img,
.wp-post-image,
.attachment-post-thumbnail,
.size-full,
.size-large,
.size-medium {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: block;
}

/* Petites images (avatars, icons, smileys) RESTENT PETITES */
.avatar,
.wp-smiley,
img.avatar,
.gravatar,
.author-avatar,
nav img,
.menu img,
.widget img,
.comment img,
img.size-thumbnail,
img[width="48"],
img[width="64"],
img[width="80"],
img[width="96"],
img[width="100"],
img[width="120"],
img[width="150"],
img[height="48"],
img[height="64"],
img[height="80"],
img[height="96"] {
  width: auto !important;
  max-width: 150px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

/* Floats avec petite taille */
img.alignleft,
img.alignright {
  width: auto;
  max-width: 300px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}

.alignleft {
  float: left;
  margin: 8px 24px 16px 0;
}

.alignright {
  float: right;
  margin: 8px 0 16px 24px;
}

.aligncenter {
  display: block;
  margin: 24px auto;
}

/* Captions */
.wp-caption,
.wp-caption-text,
figure {
  max-width: 100%;
  margin: 32px 0;
}

.wp-caption-text,
figcaption {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

/* Listes */
ul, ol {
  margin: 0 0 1.5em 1.5em;
  font-family: var(--serif);
}

ul li, ol li {
  margin-bottom: 0.75em;
  line-height: 1.65;
}

/* Citations - style magazine */
blockquote {
  border: none;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 32px;
  margin: 40px 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 600;
  color: var(--black);
  background: transparent;
}

blockquote p {
  margin-bottom: 0;
}

/* Code */
code, pre {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  background: var(--gray-900);
  color: var(--white);
}

pre code {
  background: transparent;
  color: var(--white);
  padding: 0;
}

/* Tags après l'article */
.tags-links,
.entry-tags {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
  font-weight: 600;
}

.tags-links a {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: 4px;
  margin: 4px 4px 4px 0;
  text-decoration: none;
  transition: all 0.2s;
}

.tags-links a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Sidebar - cachée pour focus contenu */
#sidebar,
.sidebar,
#secondary,
aside.widget-area {
  display: none;
}

/* Widgets */
.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
}

/* Section "À LIRE AUSSI" */
.related-posts,
.also-read {
  max-width: 760px;
  margin: 60px auto;
  padding: 40px 0;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

/* Comments section */
#comments,
.comments-area {
  max-width: 760px;
  margin: 60px auto;
  padding: 40px 0 0;
  border-top: 1px solid var(--gray-100);
}

#comments h2,
.comments-title {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}

.comment:last-child {
  border-bottom: none;
}

/* Navigation entre articles */
.nav-links,
.post-navigation,
.posts-navigation,
#nav-below,
#nav-above {
  display: flex;
  justify-content: space-between;
  max-width: 760px;
  margin: 60px auto;
  padding: 32px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a,
.post-navigation a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-previous a::before {
  content: "← Précédent · ";
  color: var(--gray-500);
  font-weight: 500;
}

.nav-next a::after {
  content: " · Suivant →";
  color: var(--gray-500);
  font-weight: 500;
}

/* Footer */
#colophon,
.site-footer,
footer.site-footer,
#footer {
  background: var(--black);
  color: var(--white);
  margin: 80px 0 0;
  padding: 60px 20px 40px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.875rem;
}

#colophon a,
.site-footer a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#colophon a:hover,
.site-footer a:hover {
  opacity: 1;
  color: var(--accent);
}

#colophon::after {
  content: "↗ Découvrez le nouveau site : socialinput.fr";
  display: block;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  font-weight: 500;
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Tables responsive */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--sans);
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

th {
  background: var(--gray-50);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Embeds (YouTube, etc.) */
iframe,
embed,
object,
video {
  max-width: 100%;
  margin: 32px 0;
  display: block;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* Boutons */
button,
input[type="submit"],
.btn {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover,
input[type="submit"]:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Author Box */
.author-box,
.about-author,
.vcard {
  background: var(--gray-50);
  padding: 32px;
  margin: 40px 0;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.author-name {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-bio {
  font-family: var(--serif);
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.6;
}

/* Pinterest / Social icons - hide pour propreté */
img[src*="PinExt"],
.pinit-button,
.pin-it-button {
  display: none !important;
}

/* Cacher éléments non pertinents pour archive */
.comment-form,
.search-form,
#searchform,
.respond,
#respond,
.comment-reply-link,
.edit-link,
.share-buttons,
#wpadminbar,
.screen-reader-text,
.skip-link {
  display: none !important;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */
@media (max-width: 768px) {
  body {
    padding-top: 48px;
    font-size: 1rem;
  }
  
  body::before {
    height: 48px;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
  
  article,
  .post,
  .hentry {
    margin: 32px auto;
    padding: 0 16px;
  }
  
  #masthead,
  .site-header {
    padding: 32px 16px 24px;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  h1,
  .entry-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .entry-content,
  .post-content {
    font-size: 1.0625rem;
  }
  
  .entry-content > p:first-of-type {
    font-size: 1.1875rem;
  }
  
  blockquote {
    font-size: 1.25rem;
    padding-left: 20px;
  }
  
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
  }
  
  nav ul li {
    padding: 4px 10px;
    border-right: none;
  }
  
  #colophon,
  .site-footer {
    margin-top: 60px;
    padding: 40px 16px 30px;
  }
}

@media (max-width: 480px) {
  h1,
  .entry-title {
    font-size: 1.75rem;
  }
  
  .site-title {
    font-size: 1.75rem;
  }
}

/* Print */
@media print {
  body::before {
    display: none;
  }
  
  body {
    padding-top: 0;
    background: var(--white);
  }
  
  article {
    box-shadow: none;
    border: none;
  }
  
  nav,
  .site-footer,
  #comments {
    display: none;
  }
}

/* Animation subtile au chargement */
article {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects sur les images */
.entry-content img:hover,
.post-content img:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}
