/* TousLesNuisibles.fr — articles de blog (lot 4, code neuf, 2026-10-29).
   Chargée seulement par les articles ; complète /assets/css/site.css sans le modifier.
   Mesures relevées sur l'original (ordinateur 1366 px et téléphone 375 px). */

/* Fond de page : celui de site.css (dégradé fixe), comme l'original. */

/* ---------- En-tête : image de fond assombrie, titre blanc centré ---------- */
.article-heros { position: relative; display: flex; align-items: center; min-height: 635px; padding: 60px 0;
  background-color: transparent; background-position: center; background-size: cover; background-repeat: no-repeat; }
.article-heros::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.article-heros__texte { position: relative; text-align: center; color: #fff; }
.article-heros h1 { max-width: 860px; margin: 8px auto; padding: 2px 0; font-size: 50px; font-weight: 700; line-height: 1.5; color: #fff; overflow-wrap: break-word; }
.article-heros p { max-width: 744px; margin: 8px auto; font-size: 16px; font-weight: 300; color: #fff; }

/* ---------- Corps de l'article ---------- */
.article-corps { padding: 40px 0 15px; }
.article-corps__colonne { max-width: 1100px; }
@media (min-width: 1240px) { .article-corps__colonne { padding: 0; } }
.article-bloc { margin: 0 0 35px; font-weight: 300; overflow-wrap: break-word; }
.article-vide { margin: 0; }
.article-texte h1 { font-size: 50px; font-weight: 700; line-height: 1.5; margin: 0; }
.article-texte h2 { font-size: 30px; font-weight: 700; line-height: 1.5; margin: 0; }
.article-texte h3 { font-size: 24px; font-weight: 700; line-height: 1.5; margin: 0; }
.article-texte h4 { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0; }
.article-texte h5, .article-texte h6 { font-size: 16px; font-weight: 700; margin: 0; }
.article-html * + h1, .article-html * + h2, .article-html * + h3, .article-html * + h4 { margin-top: 24px; }
.article-html h2, .article-html h3, .article-html h4 { margin-bottom: 16px; }
.article-texte p { margin: 0; line-height: 1.55; }
.article-html p { margin: 16px 0; }
.article-texte .serre { line-height: 1.16; }
.article-texte ul, .article-texte ol { margin: 16px 0; padding-left: 0; list-style-position: inside; line-height: 1.6; }
.article-para ul, .article-para ol { margin: 0; padding-left: 18px; }
.article-texte li ul, .article-texte li ol { margin: 0; padding-left: 24px; }
.article-texte > :first-child { margin-top: 0; }
.article-texte > :last-child { margin-bottom: 0; }
.article-texte strong { font-weight: 700; }
.article-texte a[href] { color: #777; text-decoration: underline; }
.article-texte table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-texte th, .article-texte td { padding: 2px 4px; text-align: left; vertical-align: middle; }
.article-texte th { font-weight: 700; text-align: center; }
.article-tableau { overflow-x: auto; }
.article-img { width: auto; max-width: 100%; height: auto; }
.article-image { margin: 0 0 35px; }
.article-image img { width: auto; max-width: 100%; height: auto; }
.article-image figcaption { font-size: 14px; color: #666; margin-top: 6px; }
.article-galerie { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .article-galerie { grid-template-columns: repeat(4, 1fr); } }
.article-galerie__case img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Questions fréquentes (cliquer pour afficher la réponse, comme l'original) */
.article-faq { background: #f7f7f7; }
.article-faq summary { list-style: none; cursor: pointer; padding: 12px; font-weight: 700; font-size: 16px; color: #000; border-bottom: 1px solid #ddd; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq .reponse { padding: 10px 15px; background: #fafafa; border-bottom: 1px solid #eee; font-weight: 300; }
.article-faq .reponse p { margin: 0 0 10px; }
.article-faq .reponse > :last-child { margin-bottom: 0; }

/* Liens « Post plus ancien / Post plus récent » */
.article-nav { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-weight: 300; }
.article-nav a { color: #777; text-decoration: underline; }
.article-nav__droite { margin-left: auto; text-align: right; }

/* ---------- Contact + formulaire ---------- */
.article-contact { padding: 100px 0 100px; text-align: center; }
.article-contact__titre h2 { font-size: 30px; font-weight: 700; margin: 0; line-height: 1.5; }
.article-contact__texte p { margin: 25px 0 0; font-weight: 300; }
.formulaire-article { max-width: 830px; margin: 40px auto 0; padding: 0 15px; text-align: left; }
.formulaire-article__grille { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 30px; row-gap: 12px; }
.formulaire-article .champ { grid-column: span 3; }
.formulaire-article .champ--tiers { grid-column: span 2; }
.formulaire-article .champ--large { grid-column: 1 / -1; }
.formulaire-article label { display: block; font-size: 16px; font-weight: 300; color: #4b4c53; }
.formulaire-article input, .formulaire-article textarea { display: block; width: 100%; height: 40px; font: inherit; font-size: 16px; color: #313131;
  background: #fff; border: 1px solid #123021; border-radius: 0; padding: 0 10px; }
.formulaire-article textarea { height: 80px; padding: 8px 10px; resize: vertical; }
.formulaire-article button { display: block; margin: 40px auto 0; width: 280px; height: 55px; font-weight: 400; border: 0; border-radius: 50px; background: #777;
  color: #fff; font-family: inherit; font-size: 15px; cursor: pointer; }
.formulaire-article button:hover { background: #5f5f5f; }
.formulaire-article .piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Partage ---------- */
.article-partage-zone { padding: 15px 0; }
.article-partage { display: flex; justify-content: center; gap: 12px; }
.article-partage a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: transform .2s; }
.article-partage a:hover { transform: scale(.9); }
.article-partage svg { width: 18px; height: 18px; }
.article-partage__facebook { background: #1877f2; }
.article-partage__x { background: #000; }
.article-partage__linkedin { background: #0a66c2; }
.article-partage__whatsapp { background: #25d366; }
.article-partage__email { background: #777; }

/* ---------- Derniers articles ---------- */
.article-recents { padding: 40px 0 50px; }
.article-recents .conteneur { max-width: 1100px; }
.article-recents .carte-blog__corps { padding-bottom: 22px; }
.article-recents__plus { display: block; width: 280px; height: 45px; line-height: 45px; margin: 30px auto 0; border-radius: 50px; background: #777;
  color: #fff; text-align: center; text-decoration: none; font-weight: 300; }
.article-recents__plus:hover { background: #5f5f5f; }

@media (max-width: 767px) {
  .article-heros { min-height: 325px; padding: 15px 0; }
  .article-heros h1 { font-size: 40px; }
  .article-heros p { font-size: 15px; }
  .article-corps { padding: 20px 0 15px; }
  .article-texte h1 { font-size: 40px; }
  .article-texte h2 { font-size: 28px; }
  .article-texte h4 { font-size: 20px; }
  .article-bloc, .article-nav { font-size: 15px; }
  .article-texte p { line-height: 1.5; }
  .article-texte .serre { line-height: 1.16; }
  .article-galerie { grid-template-columns: repeat(2, 1fr); }
  .article-contact { padding: 40px 0 40px; }
  .article-contact__titre h2 { font-size: 28px; }
  .formulaire-article { padding: 0; }
  .formulaire-article__grille { grid-template-columns: 1fr; }
  .formulaire-article .champ, .formulaire-article .champ--tiers, .formulaire-article .champ--large { grid-column: auto; }
  .formulaire-article label { font-size: 14px; }
  .formulaire-article button { width: 100%; max-width: 290px; }
  .article-recents { padding: 30px 0; }
  .article-recents .grille-blog { padding: 0; gap: 20px; }
  .article-recents .carte-blog h3 { font-size: 18px; }
  .article-recents__plus { width: 100%; }
}
