/*
Theme Name: Cabinet Lavoix
Theme URI: https://cabinet-infirmier-saintbrevin.fr
Author: Active 2 C - Christophe CHERY
Author URI: https://active2c.fr
Description: Thème sur mesure pour le Cabinet Infirmier Lavoix - Saint-Brevin-les-Pins (44250). Site informatif conforme à l'article R.4312-37 du Code de la Santé Publique.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Propriétaire - tous droits réservés Cabinet Infirmier Lavoix
Text Domain: lavoix-theme
Tags: medical, responsive, custom
*/

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

:root {
  --vert: #3D7A6A;
  --vert-dark: #2D5C4F;
  --vert-light: #EBF4F1;
  --corail: #E07B5A;
  --corail-dark: #C5613D;
  --corail-light: #FDF0EC;
  --creme: #FDF8F3;
  --texte: #2A3D35;
  --gris: #F5F5F5;
  --gris-mid: #E8E8E8;
  --blanc: #FFFFFF;
  --ombre: 0 4px 20px rgba(61,122,106,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--texte);
  background: var(--blanc);
  font-size: 16px;
  line-height: 1.7;
}

/* ========== HEADER ========== */
header {
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  nav { display: none; }
  .logo img { height: 42px; }
}

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  text-decoration: none;
  color: var(--texte);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover { background: var(--vert-light); color: var(--vert); }
nav a.active { background: var(--vert-light); color: var(--vert); }

.nav-cta {
  background: var(--corail) !important;
  color: var(--blanc) !important;
  padding: 8px 18px !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--corail-dark) !important; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--texte); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, rgba(61,122,106,0.91) 0%, rgba(45,92,79,0.93) 100%), url('images/salle-attente.webp') center/cover no-repeat;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 350px; height: 350px;
  background: rgba(224,123,90,0.12);
  border-radius: 50%;
}

.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--corail);
  color: var(--blanc);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary:hover { background: var(--corail-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--blanc);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--blanc); background: rgba(255,255,255,0.1); }

/* ========== STATS ========== */
.stats {
  background: var(--blanc);
  box-shadow: var(--ombre);
  position: relative;
  z-index: 2;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 24px;
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--gris-mid);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--vert);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12.5px;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
}

/* ========== SECTIONS ========== */
section { padding: 70px 24px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--corail);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--texte);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

h2 span { color: var(--vert); }

.section-sub {
  font-size: 16px;
  color: #666;
  margin-top: 14px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.bg-creme { background: var(--creme); }
.bg-vert { background: var(--vert); }
.bg-gris { background: var(--gris); }

/* ========== CARDS SOINS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--ombre);
  border: 1px solid var(--gris-mid);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(61,122,106,0.15); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--vert-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--vert);
  margin-bottom: 12px;
}

.card p { font-size: 14px; color: #555; line-height: 1.65; }

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--vert-light) 0%, var(--vert) 100%);
  display: flex; align-items: center; justify-content: center;
}

.img-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.img-placeholder span { font-size: 56px; display: block; margin-bottom: 10px; }
.img-placeholder p { font-size: 13px; font-weight: 500; }

/* Photo réelle dans le bloc about */
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 { text-align: left; margin-bottom: 20px; }
.about-text p { font-size: 15.5px; color: #444; margin-bottom: 16px; line-height: 1.75; }

.check-list { list-style: none; margin-top: 24px; }
.check-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--texte);
  border-bottom: 1px solid var(--gris-mid);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--corail);
  font-weight: 700;
}

/* ========== INFOS PRATIQUES STRIP ========== */
.infos-strip {
  background: var(--gris);
  padding: 48px 24px;
}

.infos-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gris-mid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
}

.info-block {
  background: var(--blanc);
  padding: 32px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--corail); font-weight: 700; margin-bottom: 8px; }
.info-block p { font-size: 14px; color: var(--texte); line-height: 1.6; }
.info-block strong { font-weight: 600; }

/* ========== CTA FINAL ========== */
.cta-final {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-dark) 100%);
  padding: 80px 24px;
  text-align: center;
}

.cta-final h2 { color: var(--blanc); margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ========== PAGE HERO (sous-pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-dark) 100%);
  padding: 52px 24px;
}

.page-hero-inner { max-width: 1100px; margin: 0 auto; }

.page-hero .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }

.page-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 600px; }

/* ========== EQUIPE ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid var(--gris-mid);
  text-align: center;
  transition: transform 0.2s;
}

.team-card:hover { transform: translateY(-4px); }

.team-photo {
  height: 260px;
  background: linear-gradient(135deg, var(--vert-light) 0%, var(--vert) 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.team-photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-photo-placeholder {
  font-size: 56px;
}

.team-info { padding: 24px 20px; }
.team-info h3 { font-size: 16px; font-weight: 700; color: var(--vert); margin-bottom: 4px; }
.team-info .title { font-size: 12px; color: var(--corail); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.team-info p { font-size: 13px; color: #666; line-height: 1.5; }

/* ========== SOINS ========== */
.soins-section { margin-bottom: 52px; }
.soins-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--vert);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--vert-light);
}

.soins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.soin-item {
  background: var(--blanc);
  border-radius: 12px;
  padding: 20px 22px;
  border-left: 4px solid var(--vert);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex; gap: 14px; align-items: flex-start;
}

.soin-item .soin-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.soin-item h4 { font-size: 14.5px; font-weight: 600; color: var(--texte); margin-bottom: 4px; }
.soin-item p { font-size: 13px; color: #666; line-height: 1.5; }

.urgence-box {
  background: linear-gradient(135deg, var(--corail) 0%, var(--corail-dark) 100%);
  border-radius: 16px;
  padding: 32px 36px;
  color: var(--blanc);
  display: flex; gap: 24px; align-items: center;
  margin-top: 40px;
}

.urgence-box .icon { font-size: 48px; flex-shrink: 0; }
.urgence-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.urgence-box p { font-size: 15px; opacity: 0.9; }

/* ========== INFOS PRATIQUES PAGE ========== */
.info-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.info-table tr { border-bottom: 1px solid var(--gris-mid); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 14px 0; font-size: 15px; }
.info-table td:first-child { font-weight: 600; color: var(--vert); width: 200px; }
.info-table td:last-child { color: var(--texte); }

.highlight-box {
  background: var(--vert-light);
  border-radius: 14px;
  padding: 28px 32px;
  border-left: 5px solid var(--vert);
  margin: 32px 0;
}
.highlight-box h4 { font-size: 16px; font-weight: 700; color: var(--vert); margin-bottom: 10px; }
.highlight-box p { font-size: 15px; color: var(--texte); }

/* ========== ZONE ========== */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.map-placeholder {
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  background: linear-gradient(135deg, var(--vert-light) 0%, #c8e6de 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 2px dashed var(--vert);
  color: var(--vert);
  text-align: center;
  gap: 12px;
}

/* Iframe Google Maps intégré */
.map-embed {
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  box-shadow: var(--ombre);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder span { font-size: 52px; }
.map-placeholder p { font-size: 14px; font-weight: 600; }
.map-placeholder small { font-size: 12px; opacity: 0.7; }

/* Photo façade en remplacement du placeholder map */
.facade-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
}
.facade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.facade-caption {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

.zone-list { list-style: none; }
.zone-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--gris-mid);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.zone-list li:last-child { border-bottom: none; }
.zone-list li .dot {
  width: 10px; height: 10px;
  background: var(--corail);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.contact-info-card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--ombre);
  border: 1px solid var(--gris-mid);
}

.contact-info-card h3 { font-size: 20px; font-weight: 700; color: var(--vert); margin-bottom: 28px; }

.contact-row {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gris-mid);
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { font-size: 22px; flex-shrink: 0; }
.contact-row .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--corail); font-weight: 700; margin-bottom: 4px; }
.contact-row .value { font-size: 15px; color: var(--texte); font-weight: 500; }
.contact-row a { color: var(--vert); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* ========== FORMULAIRE ========== */
.form-card {
  background: var(--blanc);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--ombre);
  border: 1px solid var(--gris-mid);
}

.form-card h3 { font-size: 20px; font-weight: 700; color: var(--vert); margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gris-mid);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--texte);
  background: var(--creme);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--vert); background: var(--blanc); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  width: 100%;
  background: var(--vert);
  color: var(--blanc);
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--vert-dark); }

/* Contact Form 7 - surcharge de styles */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gris-mid);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--texte);
  background: var(--creme);
  transition: border-color 0.2s;
  outline: none;
  margin-bottom: 16px;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  background: var(--vert);
  color: var(--blanc);
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover { background: var(--vert-dark); }

/* ========== FOOTER ========== */
footer {
  background: var(--texte);
  color: rgba(255,255,255,0.7);
  padding: 52px 24px 28px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer-col p { font-size: 13.5px; line-height: 1.7; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--corail); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.footer-legal-note {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .infos-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .soins-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  /* Grilles inline 2 colonnes sur les pages internes */
  .two-col-grid { grid-template-columns: 1fr !important; }
  section > .section-inner > div[style*="grid-template-columns:1fr 1fr"],
  section > .section-inner > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  footer { padding: 40px 20px 24px; }
  .footer-legal-note { padding: 12px; }
}

@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--blanc); padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 99; }
  .burger { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 28px; }
  .urgence-box { flex-direction: column; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 70px; }
}

/* ═══════════════════════════════════════════════════════
   BLOG — Liste articles (archive.php)
   ═══════════════════════════════════════════════════════ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid var(--gris-mid);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--vert-light);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-img-placeholder {
  background: linear-gradient(135deg, var(--vert-light) 0%, var(--vert) 100%);
}

.blog-card-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--corail);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vert);
  line-height: 1.4;
  margin-bottom: 6px;
}

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

.blog-card-title a:hover { color: var(--corail); }

.blog-card-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--vert);
  text-decoration: none;
}

.blog-card-link:hover { color: var(--corail); }

.blog-pagination {
  text-align: center;
  padding: 24px 0;
}

.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gris);
  color: var(--texte);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--vert);
  color: var(--blanc);
}

/* ═══════════════════════════════════════════════════════
   BLOG — Article individuel (single.php)
   ═══════════════════════════════════════════════════════ */

.article-meta-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.article-cat {
  display: inline-block;
  background: var(--corail);
  color: var(--blanc);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
}

.article-date {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-featured-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  max-height: 420px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--vert);
  margin: 32px 0 12px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--vert-dark);
  margin: 24px 0 10px;
}

.article-body p { margin-bottom: 16px; }

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { font-weight: 700; color: var(--texte); }

.article-body a { color: var(--vert); text-decoration: underline; }
.article-body a:hover { color: var(--corail); }

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gris-mid);
  font-size: 14px;
  font-weight: 600;
}

.article-nav a { color: var(--vert); text-decoration: none; }
.article-nav a:hover { color: var(--corail); }

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; }

.sidebar-block {
  background: var(--blanc);
  border: 1px solid var(--gris-mid);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--ombre);
}

.sidebar-block h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vert);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--vert-light);
}

.sidebar-block p { font-size: 14px; color: #666; line-height: 1.6; }
.sidebar-block a { color: var(--vert); text-decoration: none; }
.sidebar-block a:hover { color: var(--corail); }

.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gris-mid);
  font-size: 13px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: #555; text-decoration: none; font-weight: 500; }
.sidebar-list a:hover { color: var(--vert); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE blog
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

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