/**
 * Theme Name:     Archivist Child
 * Author:         Automattic
 * Template:       archivist-wpcom
 * Text Domain:    Archivist Child
 * Description:    The Archivist is a typewriter-inspired theme designed for meticulous storytellers and memory-keepers of all kinds. Its subtle design emphasizes structure and clarity, making it ideal for collections of letters, field notes, or essays.
 */

 body {  
  background-image: url(https://heitor-odwyer-de-macedo.fr/wp-content/uploads/2026/11/Guy-Girard-Brasil-1536x576.jpg);
  background-blend-mode: color-burn;
  background-size:220%;
}
/* ---------- Typographie ---------- */
body,
.entry-content {
  font-family: "Andada Pro", Garamond, Georgia, serif;
}

.entry-content p {
  text-align: justify;
}

.wp-block-site-title, .wp-block-site-title a,
.wp-block-site-tagline, .wp-block-site-tagline a,
h1, h2, h3,
.wp-block-post-title, .wp-block-post-title a {
  font-family: "Special Elite", system-ui;
}

@media screen and (max-width: 768px) {
  .wp-block-site-title, .wp-block-site-title a,
  .wp-block-site-tagline, .wp-block-site-tagline a,
  h1, h2, h3,
  .wp-block-post-title, .wp-block-post-title a {
    font-size: 1.2em;
  }
}
.extrait-small {
  font-size: 75%;
}

.titre_couverture {
  font-size: 80%;
}

/* ---------- Images d'extrait : blog ---------- */
.image-extrait-blog {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: block;
}
@media screen and (max-width:800px) {
  .image-extrait-blog {
    height: 100px;
  }
}
.image-extrait-blog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0px 130px;
  animation: scan-image 10s ease-in-out infinite alternate;
}

@keyframes scan-image {
  from { object-position: center -120px; }
  to   { object-position: center 0px; }
}

@media screen and (max-width: 800px) {
  .image-extrait-blog img {
    object-position: center -50px;
    animation: scan-image-mobile 10s ease-in-out infinite alternate;
  }
}

@keyframes scan-image-mobile {
  from { object-position: center -50px; }
  to   { object-position: center 0px; }
}

/* ---------- Images d'extrait : livres ---------- */
.image-extrait-livre {
  height: 200px;
  max-height: 200px;
  width: auto;
  overflow: hidden;
  display: block;
}

.image-extrait-livre img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.wp-block-post-featured-image {
  box-shadow: -3px 4px 10px #456;
}

/* ---------- Liste d'articles ---------- */
.wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Par défaut : listes d'articles aérées (archive, catégorie, étiquette, recherche...) */
.wp-block-post-template > li {
  list-style: none;
  margin: 0 0 55px;
  padding: 30px 0;
}

/* Accueil : listes serrées */
.home .wp-block-post-template > li {
  margin: 0;
  padding: 0;

  margin-top: 52px;
  padding-top: 16px;
}

/* ---------- Contenu ---------- */
/*
wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-29cd3855 wp-block-group-is-layout-constrained has-background
*/
div.wp-block-group.has-global-padding.is-layout-constrained.has-background {
  	background-image: url('https://heitor-odwyer-de-macedo.fr/wp-content/themes/archivist-wpcom/assets/images/groovepaper.png') !important;
	background-color: var(--wp--preset--color--base);
}

.entry-content h1 {
  padding-top: 35px;
  padding-bottom: 15px;
  border-top: 1px solid #889;
}

.single .hentry .attachment-post-thumbnail {
  display: none;
}

.single.entry-content, .single .entry-content,
.page.entry-content, .page .entry-content {
  background: rgba(255, 255, 255, 0.333);
  padding: 16px;
}

.home .entry-content {
  background: rgba(255, 255, 255, 0.20);
}

.entry-content a {
  font-family: "Andada Pro", Garamond, Georgia, serif;
}

/* ---------- Bandeaux / couvertures ---------- */
.home-hero,
.page-hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
  background: #000;
}

.home-hero img,
.page-hero img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0 auto;
}

.home-hero {
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 42vw, 760px);
}

.page-hero {
  aspect-ratio: 3 / 1;
  min-height: clamp(140px, 20vw, 260px);
  max-width: 1600px;
}

@media screen and (max-width: 768px) {
  .home-hero {
    min-height: clamp(180px, 52vw, 340px);
  }

  .page-hero {
    min-height: clamp(110px, 30vw, 180px);
    aspect-ratio: 4 / 1.5;
  }
}

@media screen and (max-width: 767px) {
  .home-hero {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .home-hero img,
  .page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

/* Neutraliser les fortes règles du parent si besoin */
body .home-hero img,
body .page-hero img {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
}


.home-hero, .page-hero{
  display: none;
}


/* Formulaire d'inscription Brevo : */
.sib_signup_form,
form[id^="sib_signup_form"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* Les <p> deviennent les cellules de la grille */
.sib_signup_form p,
form[id^="sib_signup_form"] p {
  margin: 0;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* E-mail et bouton : pleine largeur */
.sib_signup_form p.sib-email-area,
form[id^="sib_signup_form"] p.sib-email-area,
.sib_signup_form p:last-of-type,
form[id^="sib_signup_form"] p:last-of-type {
  grid-column: 1 / -1;
}

/* Champs */
.sib_signup_form input[type="email"],
.sib_signup_form input[type="text"],
form[id^="sib_signup_form"] input[type="email"],
form[id^="sib_signup_form"] input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  font-weight: 400;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
}

.sib_signup_form input:focus,
form[id^="sib_signup_form"] input:focus {
  outline: none;
  border-color: #142d5b;
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}

/* Bouton */
.sib_signup_form input[type="submit"],
form[id^="sib_signup_form"] input[type="submit"] {
  width: 100%;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #283d63;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.sib_signup_form input[type="submit"]:hover,
form[id^="sib_signup_form"] input[type="submit"]:hover {
  background: #084ccc;
}

/* Mobile : une seule colonne */
@media (max-width: 600px) {
  .sib_signup_form,
  form[id^="sib_signup_form"] {
    grid-template-columns: 1fr;
  }
}