/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #111;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #111;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
}

/* =========================
   HEADER
========================= */
.header {
    position: relative;
    height: 175px;
    background: linear-gradient(
        90deg,
        #142a6c 0%,
        #18263d 45%,
        #2d3b50 100%
    );
}

.logo {
    height: 175px;
    width: auto;
    object-fit: cover;
}

.site-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

/* =========================
   MENU
========================= */
.menu {
    background: #001e5a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu a {
    color: #fff;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    background: #c40000;
}
/* MENU – page active (où je suis) */
.menu a.active {
    background: #c40000;
    color: #fff;
    position: relative;
}

/* Trait blanc en bas (effet média pro) */
.menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #fff;
}


/* =========================
   MAIN CONTAINER
========================= */
.container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 0 15px;
}
main {
    flex: 1;
}

/* =========================
   ARTICLE PRINCIPAL
========================= */
.article-title {
    font-size: 30px;
    line-height: 1.3;
    margin: 15px 0;
}

.article-excerpt {
    font-size: 17px;
    color: #555;
    border-left: 4px solid #c40000;
    padding-left: 15px;
    margin-bottom: 25px;
}

/* Image article */
.article-image {
    width: 85%;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* =========================
   CONTENU ARTICLE
========================= */
.article-content h3 {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    margin: 40px 0 16px;
    padding-left: 18px;
    padding-bottom: 10px;
    color: #111;
    border-bottom: 2px solid #c40000;
}

.article-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 70%;
    background-color: #c40000;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

/* =========================
   CARTES / ARTICLES SECONDAIRES
========================= */
.side-card {
    background: #fff;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 4px solid #c40000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.side-tag {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.side-card h3 {
    font-size: 17px;
    margin: 8px 0;
}

.side-card p {
    font-size: 14px;
    color: #555;
}

/* Image cartes */
.side-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Lien carte */
.article-link,
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =========================
   À LA UNE
========================= */
.une-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.une-card {
    max-width: 100%;
}

.une-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin: 12px 0;
}

/* =========================
   ACTUALITÉS
========================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

/* =========================
   PAGE POLITIQUE
========================= */
/* GRID LISTE ARTICLES (Politique / Économie / Sport) */
.politique-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* Si nombre impair → dernier prend toute la ligne */
.politique-grid > a:last-child:nth-child(odd) {
    grid-column: span 2;
}

/* Responsive mobile */
@media (max-width: 900px) {
    .politique-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .une-grid,
    .politique-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 15px 0;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .site-name {
        position: static;
        transform: none;
        font-size: 24px;
        margin-top: 5px;
    }

    .menu {
        flex-direction: column;
    }

    .menu a {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .article-title {
        font-size: 24px;
    }

    .article-excerpt {
        font-size: 15px;
    }
}
/* ===== LIEN LIRE L’ARTICLE (CLASSIQUE BLEU) ===== */
.read-more {
    color: #0056b3;          /* bleu pro (pas trop flashy) */
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

/* Hover */
.read-more:hover {
    color: #c40000;          /* rouge au survol (optionnel) */
}
/* Container pleine largeur pour pages catégories */
.container-full {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
/* =========================
   AUTOMOBILE GRID
========================= */

.auto-section {
    margin-top: 40px;
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Carte pleine largeur */
.auto-full {
    grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 900px) {
    .auto-grid {
        grid-template-columns: 1fr;
    }

    .auto-full {
        grid-column: auto;
    }
}
/* =========================
   IMAGES DES CARTES
========================= */

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Image plus grande pour l’article principal */
.card-image.large {
    height: 260px;
}
/* Images dans les cartes */
.card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}
/* Images des cartes Économie / Actualités */
.card-image {
    width: 100%;
    height: 220px;          /* hauteur fixe propre */
    object-fit: cover;      /* recadre l’image */
    object-position: center;/* centre le sujet */
    border-radius: 8px 8px 0 0;
    display: block;
}
/* Image principale article – complète, pas trop grande, bandes discrètes */
.main-article .card-image {
    width: 100%;
    max-height: 300px;          /* taille maîtrisée */
    height: auto;
    object-fit: scale-down;     /* clé : mieux que contain ici */
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    background-color: transparent; /* enlève l'effet bloc noir */
}
/* Image principale d’article – rendu presse */
.article-image {
    width: 100%;
    margin: 25px 0 20px;
}

.article-image img {
    width: 100%;
    max-height: 360px;     /* hauteur presse idéale */
    object-fit: cover;     /* impact visuel */
    object-position: center;
    border-radius: 14px;
    display: block;
}
.article-content h2 {
  position: relative;
  margin: 40px 0 12px;
  padding-left: 18px;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 24px;
  background-color: #d60000;
}

.article-content h2::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 100%;
  height: 2px;
  background-color: #d60000;
}
.footer-contact {
  background: #0c0c0c;
  padding: 30px 15px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  display: inline-block;
  margin-bottom: 15px;
  font-weight: 600;
  color: #fff;
  border-left: 3px solid #d60000;
  padding-left: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #cfcfcf;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #00b3ff;
}

.footer-copy {
  font-size: 13px;
  color: #777;
}
.search-wrapper {
  background: #111;
  border-top: 1px solid #222;
  animation: slideDown 0.4s ease;
}

.search-bar {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 10px 15px;
}

.search-bar input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-size: 14px;
}

.search-bar input:focus {
  border-color: #d60000;
  box-shadow: 0 0 0 1px rgba(214,0,0,0.4);
}

.search-icon {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* LOGO CENTRÉ – PAGE A PROPOS */
.about-logo {
  display: flex;
  justify-content: center;
  margin: 30px 0 20px;
}

.about-logo img {
  max-width: 500px;   /* contrôle la largeur réelle */
  width: 100%;
  height: auto;
  display: block;
}
/* MOBILE FIX */
@media (max-width: 768px) {

  .auto-grid {
    grid-template-columns: 1fr;
  }

  .side-card,
  .article-card {
    width: 100%;
  }

  .card-image {
    width: 100%;
    height: auto;
  }
}
/* =========================
   ARTICLE – FIX MOBILE
   ========================= */
@media (max-width: 768px) {

  /* désactiver le hero desktop */
  .article-hero,
  .hero-article {
    position: relative;
    height: auto !important;
    min-height: auto !important;
    padding: 20px 16px;
    background: #fff;
  }

  /* supprimer overlay sombre */
  .article-hero::before,
  .article-hero::after {
    display: none !important;
  }

  /* titre lisible */
  .article-hero h1 {
    font-size: 22px;
    line-height: 1.35;
    color: #111 !important;
    margin-bottom: 12px;
  }

  /* intro lisible */
  .article-hero p {
    color: #444 !important;
    font-size: 15px;
  }

  /* image normale */
  .article-hero img,
  .article-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 14px;
    margin: 18px 0;
  }
}
/* =====================================
   ARTICLE RENAULT ÉCONOMIE – MOBILE FIX
   ===================================== */
@media (max-width: 768px) {

  /* forcer plein écran */
  .container,
  .main-article,
  .article-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
  }

  /* annuler le centrage desktop */
  .container {
    display: block !important;
  }

  /* images */
  .main-article img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }

  /* titres lisibles */
  .main-article h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .main-article h2 {
    font-size: 18px;
  }

  /* paragraphes */
  .main-article p {
    font-size: 15px;
    line-height: 1.6;
  }
}
/* =========================
   HOME HERO ARTICLE
========================= */
.home-hero {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

.hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.hero-text {
  background: #fff;
  padding: 22px 24px;
  margin-top: -48px;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.hero-tag {
  display: inline-block;
  background: #c40000;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 15px;
  color: #444;
}

/* =========================
   MOBILE – CARTE ARTICLE (R5)
========================= */
@media (max-width: 768px) {

  /* Carte article */
  .side-card,
  .article-card {
    padding: 14px;
    border-radius: 14px;
  }

  /* Image article */
  .card-image,
  .article-card img {
    height: 200px;              /* ↓ image moins haute */
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  /* Tag AUTO */
  .side-tag {
    font-size: 10px;
    padding: 4px 7px;
    margin-bottom: 6px;
  }

  /* Titre */
  .article-card h3,
  .side-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  /* Texte */
  .article-card p,
  .side-card p {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* =========================
   NEWSLETTER
========================= */
.newsletter {
  background: #111;
  color: #fff;
  padding: 50px 15px;
  margin-top: 60px;
}

.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 14px;
  width: 260px;
  max-width: 100%;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-form button {
  padding: 12px 18px;
  background: #c40000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #a80000;
}

.newsletter small {
  display: block;
  margin-top: 15px;
  font-size: 12px;
  color: #888;
}
/* =====================================
   MOBILE – CARTES SUPERPOSÉES PROPREMENT
   ===================================== */
@media (max-width: 768px) {

  /* Tous les grids passent en 1 colonne */
  .news-grid,
  .une-grid,
  .politique-grid,
  .auto-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  /* Chaque carte prend toute la largeur */
  .side-card,
  .une-card,
  .article-card,
  .auto-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }

  /* Images propres et cohérentes */
  .card-image,
  .une-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
  }

  /* Contenu bien lisible */
  .side-card h3,
  .une-card h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .side-card p,
  .une-card p {
    font-size: 15px;
    line-height: 1.5;
  }
}
/* =====================================
   FIX CHEVAUCHEMENT CARTES – MOBILE
   ===================================== */
@media (max-width: 768px) {

  /* Le conteneur empile correctement */
  .news-grid,
  .une-grid,
  .politique-grid,
  .auto-grid {
    display: block !important;
  }

  /* Chaque carte est un bloc indépendant */
  .side-card,
  .une-card,
  .article-card,
  .auto-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 24px !important;
    clear: both;
  }

}
/* =========================
   HOME HERO – ACCUEIL
========================= */

.home-hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* EN VEDETTE */
.hero-main .hero-label {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-left: 4px solid #c40000;
  padding-left: 10px;
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hero-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-content {
  padding: 20px;
}

.hero-content h2 {
  font-size: 26px;
  margin: 10px 0;
  line-height: 1.3;
}

.hero-content p {
  color: #555;
  font-size: 16px;
}

/* COLONNE DROITE */
.hero-side h3 {
  font-size: 18px;
  margin-bottom: 15px;
  border-left: 4px solid #c40000;
  padding-left: 10px;
}

.side-mini {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.side-mini:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.side-mini img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.side-mini p {
  font-size: 14px;
  margin-top: 4px;
  color: #222;
}

/* TAGS */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 6px;
  background: #111;
  color: #fff;
  margin-bottom: 4px;
}

.tag.auto { background: #000; }
.tag.economie { background: #0047ab; }

/* MOBILE */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    height: 240px;
  }

  .hero-content h2 {
    font-size: 22px;
  }
}

/* =========================
   TAGS – COULEURS PAR CATÉGORIE
========================= */

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}

/* Automobile */
.tag.auto,
.tag.automobile {
  background-color: #c40000; /* rouge automobile */
}

/* Économie */
.tag.economie {
  background-color: #0d6efd; /* bleu économie */
}

/* Politique */
.tag.politique {
  background-color: #198754; /* vert institutionnel */
}

/* Technologie */
.tag.technologie {
  background-color: #6f42c1; /* violet tech */
}

/* Sport */
.tag.sport {
  background-color: #fd7e14; /* orange sport */
}
/* =========================
   MENU + HAMBURGER (DESKTOP)
========================= */

.menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* bouton hamburger */
.hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 14px 18px;
  display: block;
}

/* hover */
.hamburger:hover {
  background: #c40000;
}
/* =========================
   MENU OVERLAY – MEDIA PRO
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9999;
}

.menu-overlay.active {
  display: block;
}

.menu-panel {
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #0b132b 0%, #1e293b 100%);
  padding: 20px;
  transform: translateX(-100%);
  animation: slideIn 0.35s ease forwards;
}

/* animation */
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 600;
  margin-bottom: 25px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

.menu-links {
  list-style: none;
  padding: 0;
}

.menu-links li {
  margin-bottom: 16px;
}

.menu-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.menu-links a:hover {
  text-decoration: underline;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
}

/* Partie gauche (menu) */
.nav-left a {
    margin-right: 20px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* Partie droite (recherche) */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 30px;
    padding: 5px 10px;
}

.search-form input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    width: 140px;
}

.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;
}

.top-bar #current-date {
    opacity: 0.85;
    font-size: 13px;
}

/* FORCE LOGO MOBILE */
@media (max-width: 768px) {

    img,
    .logo img,
    .site-logo img,
    header img {
        max-width: 220px !important;
        width: 90% !important;
        height: auto !important;
    }

}
/* ===== DESKTOP NAV RIGHT FIX ===== */
.nav-right {
    display: flex;
    align-items: center;      /* 👈 alignement vertical */
    gap: 12px;                /* 👈 espace contrôlé */
}

/* Recherche desktop */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    width: 180px;             /* taille raisonnable desktop */
    padding: 8px 36px 8px 14px;
    font-size: 14px;
}

/* Icônes desktop */
.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons a {
    display: flex;            /* 👈 centre l’icône */
    align-items: center;
    justify-content: center;
    font-size: 18px;
    height: 36px;             /* même hauteur que la search */
    width:
}

/* ===== SOCIAL ICONS MENU OVERLAY ===== */
.menu-social {
    display: flex;
    gap: 22px;
    padding: 12px 0 20px;
}

.menu-social a {
    color: #ffffff;
    font-size: 22px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-social a:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

/* Couleurs au hover */
.menu-social a:hover .fa-instagram {
    color: #E1306C;
}

.menu-social a:hover .fa-whatsapp {
    color: #25D366;
}

.menu-social a:hover .fa-linkedin-in {
    color: #0A66C2;
}
.article-image {
    width: 100%;
    height: 320px;              /* hauteur maîtrisée */
    overflow: hidden;
    border-radius: 10px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* clé du problème */
    object-position: center top;/* 👈 évite couper les têtes */
}
/* ===== CENTRAGE IMAGES DANS LES ARTICLES (DESKTOP) ===== */
@media (min-width: 769px) {

  .article-content img,
  .post-content img,
  .entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}
/* =====================================
   FIX FINAL – IMAGE ARTICLE CENTRÉE (DESKTOP)
   ===================================== */
@media (min-width: 769px) {

  .article-image {
    max-width: 900px;      /* largeur presse */
    width: 100%;
    margin: 30px auto !important; /* 👈 CENTRAGE FORCÉ */
    height: auto;          /* on enlève la contrainte */
  }

  .article-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;   /* image entière visible */
  }

}
/* =====================================
   IMAGE ARTICLE – DEZOOM PRO (DESKTOP)
   ===================================== */
@media (min-width: 769px) {

  .article-image {
    max-width: 1100px;
    margin: 30px auto;
    height: auto;          /* 👈 clé du dézoom */
    overflow: visible;
  }

  .article-image img {
    width: 100%;
    height: auto;          /* 👈 image naturelle */
    object-fit: contain;  /* 👈 PAS de zoom */
    display: block;
    border-radius: 14px;
  }

}

/* =====================================
   A NE PAS MANQUER – MOBILE (TAILLE UNIFORME)
   ===================================== */
@media (max-width: 768px) {

  /* Carte */
  .side-mini {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* Image uniforme */
  .side-mini img {
    width: 90px !important;
    height: 70px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

}
/* =====================================
   A LA UNE – FIX DEFINITIF MOBILE
   ===================================== */
@media (max-width: 768px) {

  /* Image A LA UNE = même taille pour toutes */
  .une-image {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 12px !important;
    display: block !important;
  }

}
/* =====================================
   ARTICLES SECONDAIRES – MOBILE (UNIFORME)
   ===================================== */
@media (max-width: 768px) {

  /* Carte article secondaire */
  .article-card,
  .side-card {
    display: flex !important;
    flex-direction: column !important;
  }

  /* CONTENEUR image (si présent) */
  .article-card .article-image,
  .side-card .article-image {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  /* IMAGE (tous les cas) */
  .article-card img,
  .side-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    display: block !important;
  }

}















