/* Ajouts au design repris de WordPress */
/* formulaire de contact (Web3Forms) */
#contact-ok { margin-top: 1em; padding: .8em 1em; background: #e6f4ea; color: #1e4620; }
#contact-erreur { margin-top: 1em; padding: .8em 1em; background: #fdecea; color: #611a15; }

/* Accueil : section d'ouverture, la photo de Hawad (Jean-Christophe Dupuy) comme seul fond.
   L'arrière-plan uni de la photo a été prolongé (outils/fond-hawad.mjs) pour remplir la section à toutes les largeurs. */
/* (sélecteurs renforcés : le thème applique à cette section un fond « papier » gris avec body.home main > section:first-child) */
body.home main > section.hero-hawad {
  position: relative;
  background: #3b3b3b url(/wp-content/uploads/2026/11/hawad-fond-large.jpg) left 30% / cover no-repeat !important;
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.home main > section.hero-hawad::before, body.home main > section.hero-hawad::after { display: none; }
.hero-hawad > .wp-block-columns { width: 100%; }
.hero-hawad .hero-hawad__texte { margin-left: auto; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero-hawad__texte > p:first-child { color: #e2cdb0 !important; }
.hero-hawad__texte .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.85); }
.hero-hawad > .hero-hawad__credit {
  position: absolute; right: var(--wp--preset--spacing--50); bottom: .9rem; margin: 0;
  font-size: .7rem; letter-spacing: .04em; color: rgba(255,255,255,.6);
}
@media (max-width: 781px) {
  /* téléphone : la photo en haut (Hawad bien visible), le texte dessous, sur l'arrière-plan prolongé vers le bas */
  body.home main > section.hero-hawad {
    background: #3b3b3b url(/wp-content/uploads/2026/11/hawad-fond-mobile.jpg) center top / cover no-repeat !important;
    min-height: 0;
    padding-top: 74vw !important;
    padding-bottom: 3rem !important;
  }
  .hero-hawad > .hero-hawad__credit { right: 1rem; bottom: .6rem; }
}
/* texte d'introduction un peu plus petit que la taille « large » du thème */
.hero-hawad .hero-hawad__texte p.has-large-font-size { font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important; }
