/* ============================================================
   PLAIDISSIMO — Feuille de style partagée (articles blog HTML)
   Charte fidèle au thème WordPress existant
   Polices : Titillium Web (corps) + Quicksand (titres/nav)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600&family=Quicksand:wght@300;400;500&display=swap');

/* ---- Variables ---- */
:root {
  --accent:       rgba(255, 0, 0, 0.5);   /* Corail Plaidissimo */
  --accent-hover: rgba(255, 0, 0, 0.7);
  --text-dark:    #222222;
  --text-body:    #4c4c4c;
  --text-light:   #999999;
  --sidebar-bg:   #f7f7f7;
  --page-bg:      #ffffff;
  --border:       #eeeeee;
  --max-width:    1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color 0.2s; }

/* ---- Base ---- */
body {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--page-bg);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  height: 104px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a { display: block; }
.site-logo img { height: 55px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

.main-nav ul li { position: relative; }

.main-nav ul li a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
}

.main-nav ul li a:hover { color: var(--accent); }

/* Sous-menu */
.main-nav .has-dropdown > a::after { content: ' ›'; font-size: 13px; }

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.main-nav .has-dropdown:hover .dropdown { display: block; }

.main-nav .dropdown li { display: block; }
.main-nav .dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-body);
  white-space: nowrap;
}
.main-nav .dropdown li a:hover { background: var(--sidebar-bg); color: var(--text-dark); }

/* ============================================================
   MISE EN PAGE PRINCIPALE
   ============================================================ */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  padding: 18px 0 5px;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--text-dark); }
.breadcrumb .sep { margin: 0 6px; }

/* Titre H1 de l'article */
.entry-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--text-body);
  text-align: center;
  padding: 30px 20px 10px;
  background: var(--sidebar-bg);
  margin-bottom: 0;
}

/* Meta date / auteur */
.entry-meta {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  padding: 12px 0 20px;
  background: var(--sidebar-bg);
  margin-bottom: 0;
}

/* Grille article + sidebar */
.content-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  padding: 40px 0 60px;
  align-items: start;
}

/* ============================================================
   CONTENU ARTICLE
   ============================================================ */

/* Image hero */
.hero-image {
  position: relative;
  margin-bottom: 35px;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 26px;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Titres dans le contenu */
.entry-content h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 28px;
  text-transform: uppercase;
  color: var(--text-body);
  margin: 45px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.entry-content h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

/* Paragraphes */
.entry-content p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 20px;
}

.entry-content strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* Listes */
.entry-content ul,
.entry-content ol {
  margin: 10px 0 22px 25px;
  line-height: 1.8;
}

.entry-content li {
  color: var(--text-body);
  margin-bottom: 6px;
}

/* Images dans le contenu */
.entry-content figure {
  margin: 28px 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}

/* Bloc CTA */
.cta-block {
  background: var(--sidebar-bg);
  border-left: 4px solid var(--accent);
  padding: 25px 30px;
  margin: 40px 0;
}

.cta-block p {
  margin-bottom: 18px;
  font-size: 15px;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Encadré info */
.info-box {
  background: #fefefe;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 30px 0;
}

.info-box p { margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }

/* Tableau */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
}

.entry-content th {
  background: var(--sidebar-bg);
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 15px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text-dark);
}

.entry-content td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

.entry-content tr:last-child td { border-bottom: none; }

/* Articles connexes */
.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.related-articles h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 15px;
}

.related-articles ul { list-style: none; }

.related-articles ul li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--border);
}

.related-articles ul li a {
  color: var(--text-body);
  font-size: 15px;
}

.related-articles ul li a::before { content: '» '; color: var(--accent); }
.related-articles ul li a:hover { color: var(--text-dark); }

/* ============================================================
   BIO AUTEUR
   ============================================================ */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: var(--sidebar-bg);
  padding: 25px;
  margin-top: 45px;
  border-top: 2px solid var(--border);
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background: var(--sidebar-bg);
  padding: 25px 20px;
  position: sticky;
  top: 124px;
}

.widget { margin-bottom: 30px; }

.widget-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-body);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.sidebar-search {
  display: flex;
  margin-bottom: 28px;
}

.sidebar-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-right: none;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 300;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.sidebar-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
}

.sidebar-search button:hover { background: var(--accent-hover); }

.sidebar ul { list-style: none; }

.sidebar ul li {
  padding: 7px 0;
  border-bottom: 1px dotted #ddd;
}

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

.sidebar ul li a {
  font-size: 14px;
  color: var(--text-body);
  font-family: 'Titillium Web', sans-serif;
  line-height: 1.4;
}

.sidebar ul li a::before { content: '» '; color: var(--accent); }
.sidebar ul li a:hover { color: var(--text-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 22px 30px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.site-footer a {
  color: #aaa;
  margin: 0 8px;
}

.site-footer a:hover { color: var(--text-body); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-area {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sidebar { position: static; }
  .entry-title { font-size: 28px; }
  .entry-content h2 { font-size: 22px; }
  .main-nav ul { gap: 20px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }
  .site-logo img { height: 40px; }
  .main-nav ul { gap: 14px; }
  .main-nav ul li a { font-size: 12px; }
  .entry-title { font-size: 22px; padding: 20px 15px 8px; }
  .page-wrapper { padding: 0 15px; }
  .hero-overlay-text { font-size: 18px; }
}
