/* Habillage El Poulet Braisé — polices et couleurs du logo, fichiers versionnés */
:root {
  --epb-encre: #1c1428;
  --epb-violet: #3c1480;
  --epb-violet-profond: #2a0e5c;
  --epb-rouge: #c41e28;
  --epb-creme: #f7f1e6;
  --epb-papier: #fffdf8;
  --epb-filet: #e4d8c6;
  --epb-mute: #564a41;
  --epb-lien: #3c1480;
  --epb-mesure: 68ch;
  --epb-titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --epb-texte: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body,
body.generatepress-child {
  background: var(--epb-creme);
  color: var(--epb-encre);
  font-family: var(--epb-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
}

h1, h2, h3, h4, h5, h6,
.gb-text-8a6c1fbb,
.gbp-card__title,
.entry-title {
  font-family: var(--epb-titre);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--epb-encre);
}

a {
  color: var(--epb-lien);
  text-underline-offset: 0.15em;
}
a:hover, a:focus-visible {
  color: var(--epb-violet-profond);
}

img {
  max-width: 100%;
  height: auto;
}

/* En-tête plus bas, logo à gauche */
.gb-site-header,
.site-header,
header.gb-site-header-24cc69a1 {
  background: var(--epb-papier) !important;
  border-bottom: 1px solid var(--epb-filet);
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}
.gb-site-header img,
.site-logo img,
.header-image,
.gb-media img {
  max-height: 68px;
  width: auto;
}
.main-navigation a,
.gb-menu-link,
.gb-navigation a {
  font-family: var(--epb-texte);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--epb-encre) !important;
  text-transform: none;
  letter-spacing: 0.01em;
}
.main-navigation a:hover,
.gb-navigation a:hover {
  color: var(--epb-violet) !important;
}

/* Bouton Contact du bandeau : contraste AA */
.gb-navigation a[href*="contact"],
a.gb-button[href*="contact"],
.epb-bouton,
.bandeau-accueil .epb-bouton {
  background: var(--epb-violet) !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  display: inline-block;
}
.gb-navigation a[href*="contact"]:hover,
.epb-bouton:hover {
  background: var(--epb-violet-profond) !important;
  color: #fff !important;
}

/* Masquer Subscribe et formulaires factices */
a[href="#"]:not(.gb-menu-link),
.gbp-section form[action="#"],
input[placeholder="Adresse email"] {
  /* ciblé plus bas de façon plus précise */
}

/* Accueil : bandeau */
.bandeau-accueil {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--epb-papier);
  border-bottom: 1px solid var(--epb-filet);
  min-height: 0;
}
.bandeau-accueil-texte {
  flex: 1 1 22rem;
  padding: 3.2rem 1.5rem 3.2rem 5vw;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bandeau-accueil-visuel {
  flex: 1 1 20rem;
  min-height: 16rem;
  max-height: 32rem;
  overflow: hidden;
}
.bandeau-accueil-visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bandeau-accueil .surtitre {
  font-family: var(--epb-texte);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--epb-violet);
  border-left: 3px solid var(--epb-rouge);
  padding-left: 0.7rem;
  margin: 0 0 1rem;
}
.bandeau-accueil h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin: 0 0 1rem;
  color: var(--epb-encre);
  max-width: 16em;
}
.bandeau-accueil .chapo {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--epb-mute);
  margin: 0 0 1.5rem;
  max-width: 36em;
}
.bandeau-accueil .epb-bouton {
  align-self: flex-start;
}

/* Sections accueil */
.page-accueil {
  background: var(--epb-creme);
}
.page-accueil section {
  padding: 3rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.page-accueil section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.6rem;
}
.page-accueil .intro-section {
  color: var(--epb-mute);
  margin: 0 0 1.6rem;
  max-width: 42em;
}

/* Widget 1 */
.encart-depart {
  background: var(--epb-papier);
  border: 1px solid var(--epb-filet);
  border-radius: 4px;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2.2rem 1.5rem !important;
}
.encart-depart-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
}
.encart-depart-choix button {
  font-family: var(--epb-texte);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--epb-encre);
  border: 1px solid var(--epb-filet);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.encart-depart-choix button.est-actif,
.encart-depart-choix button[aria-pressed="true"] {
  background: var(--epb-violet);
  color: #fff;
  border-color: var(--epb-violet);
}
.encart-depart-choix button:focus-visible {
  outline: 2px solid var(--epb-violet);
  outline-offset: 2px;
}
.liste-articles-courte {
  list-style: none;
  margin: 0;
  padding: 0;
}
.liste-articles-courte li {
  border-top: 1px solid var(--epb-filet);
  padding: 0.7rem 0;
}
.liste-articles-courte a {
  font-weight: 650;
  text-decoration: none;
  color: var(--epb-encre);
  font-family: var(--epb-titre);
  font-size: 1.15rem;
}
.liste-articles-courte a:hover {
  color: var(--epb-violet);
  text-decoration: underline;
}
.liste-articles-courte .meta-article {
  display: block;
  font-size: 0.88rem;
  color: var(--epb-mute);
  margin-top: 0.15rem;
}
.lien-rubrique {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
}

/* Grille derniers articles et rubriques */
.grille-articles,
.grille-rubriques {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.carte-article,
.carte-rubrique {
  background: var(--epb-papier);
  border: 1px solid var(--epb-filet);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  text-decoration: none;
  color: var(--epb-encre);
}
.carte-article:hover,
.carte-rubrique:hover {
  border-color: var(--epb-violet);
  color: var(--epb-encre);
}
.carte-article h3,
.carte-rubrique h3 {
  font-size: 1.2rem;
  margin: 0;
}
.carte-article .meta-article,
.carte-rubrique .compte {
  font-size: 0.88rem;
  color: var(--epb-mute);
}

/* Widget 2, non adjacent */
.encart-hasard {
  background: var(--epb-encre);
  color: var(--epb-creme);
  border-radius: 4px;
  max-width: 1100px;
  margin: 1rem auto 3rem;
  padding: 2.4rem 1.5rem !important;
  text-align: left;
}
.encart-hasard h2,
.encart-hasard a {
  color: var(--epb-creme);
}
.encart-hasard a:hover {
  color: #fff;
}
.encart-hasard-carte {
  margin: 0 0 1.3rem;
  min-height: 4.5rem;
}
.encart-hasard-rubrique {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2d4b8;
  margin: 0 0 0.4rem;
}
.encart-hasard-titre {
  font-family: var(--epb-titre);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
  text-wrap: balance;
}
.encart-hasard-titre a {
  text-decoration: none;
  color: #fff;
}
.encart-hasard-bouton,
.encart-hasard button {
  font-family: var(--epb-texte);
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 1px solid #e2d4b8;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
}
.encart-hasard-bouton:hover {
  background: #fff;
  color: var(--epb-encre);
}

/* Pages et articles : colonne lisible, un seul H1 visuel */
.single-post .entry-content,
.page .entry-content,
.inside-article .entry-content {
  max-width: var(--epb-mesure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.single-post .entry-content p,
.page .entry-content p {
  max-width: var(--epb-mesure);
}
.inside-article,
.site-main {
  background: transparent;
}
.separate-containers .inside-article,
.one-container .site-content {
  background: var(--epb-papier);
}

/* Masquer le second H1 du thème s'il double le bandeau */
.single-post .page-hero h1 + * h1,
.page:not(.home) .gb-headline:has(+ .entry-title),
body.single .entry-header + .page-hero h1 {
  /* laisser le H1 du hero, masquer un doublon éventuel plus bas si besoin */
}

/* CTA démo « plus de 4000 membres » et formulaire factice */
.gb-text:has(+ form),
form[action="#"],
.gbp-form,
p, h2, h3, h4, h5 {
}
/* ciblage plus sûr par texte via classes connues du gabarit */
.epb-masquer,
[class*="membres"],
.gb-element form input[type="email"] {
}

/* 404 et recherche en anglais : masqués, remplacés par le bloc français */
body.error404 .page-hero,
body.error404 .gb-headline,
body.search .page-hero .gb-text,
body.error404 h1,
body.error404 h2 {
}
.page-introuvable,
.recherche-vide {
  max-width: 40rem;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}
.page-introuvable h1,
.recherche-vide h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}
.page-introuvable ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.page-introuvable li {
  margin: 0.35rem 0;
}

/* Pied de page */
.pied-site {
  background: var(--epb-encre);
  color: #f0e6d6;
  padding: 2.8rem 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.98rem;
}
.pied-site a {
  color: #f0e6d6;
  text-decoration: none;
}
.pied-site a:hover {
  color: #fff;
  text-decoration: underline;
}
.pied-site-grille {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pied-site h2 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  font-family: var(--epb-texte);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.pied-site ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pied-site li {
  margin: 0.3rem 0;
}
.pied-site-mention {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #3a3146;
  font-size: 0.88rem;
  color: #cbbda8;
}
.pied-site-adresse {
  color: #cbbda8;
  margin: 0.6rem 0 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .pied-site-grille {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .bandeau-accueil-texte {
    padding: 2.2rem 1.25rem 2rem;
  }
  .bandeau-accueil-visuel {
    min-height: 14rem;
    max-height: 18rem;
  }
  .gb-site-header img,
  .site-logo img {
    max-height: 56px;
  }
  .page-accueil section {
    padding: 2.2rem 1.15rem;
  }
}

/* Contraste et bords : jamais collé au viewport */
.site,
.container,
.gb-container,
.entry-content,
.inside-article {
  box-sizing: border-box;
}
body {
  padding-left: 0;
  padding-right: 0;
}
.entry-content,
.bandeau-accueil-texte,
.page-accueil section,
.pied-site,
.page-introuvable,
.recherche-vide {
  padding-left: max(1.15rem, env(safe-area-inset-left));
  padding-right: max(1.15rem, env(safe-area-inset-right));
}

/* Lien « aller au contenu » */
.saut-contenu {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--epb-violet);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.saut-contenu:focus {
  left: 0.5rem;
  top: 0.5rem;
}


/* Un seul H1 visible sur les pages : le bandeau, pas le titre de l'article du thème */
body.page:not(.home) .inside-article > .entry-header .entry-title,
body.page:not(.home) .entry-header h1.entry-title {
  display: none !important;
}
/* Bloc démo des articles (appel commercial et « 4000 membres ») */
.gb-element-a64fecac,
.gb-text-22bc964b,
.gb-text-53471e0a {
  display: none !important;
}
/* 404 : cacher le bandeau anglais, garder notre texte */
body.error404 .gb-text-9767a6c6,
body.error404 .gbp-section__inner h1,
body.error404 .site-main,
body.error404 #content .content-area {
  display: none !important;
}
body.error404 .page-introuvable {
  display: block !important;
}


.page-accueil > .bandeau-accueil {
  max-width: none;
  padding: 0 !important;
  width: 100%;
}
@media (min-width: 900px) {
  .bandeau-accueil {
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .bandeau-accueil-texte {
    flex: 1 1 50%;
    max-width: none;
    padding: 4.2rem 3.5rem 4.2rem 6vw;
  }
  .bandeau-accueil-visuel {
    flex: 1 1 50%;
    min-height: 28rem;
    max-height: none;
  }
}


.encart-hasard .intro-section {
  color: #ecdcc4;
}
.home .site-content,
.home .content-area,
.home #primary,
.home .inside-article,
.home .entry-content,
.home .container.grid-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}
.home .inside-article {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-accueil .grille-articles,
.page-accueil .grille-rubriques {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
@media (min-width: 768px) {
  .page-accueil .grille-articles,
  .page-accueil .grille-rubriques {
    grid-template-columns: repeat(3, 1fr);
  }
}


.gb-element-49809dee,
a[aria-label="sign up button"],
.gb-text-e4558d75,
img[alt="testimonial"],
img[src*="sites.generatepress.com"] {
  display: none !important;
}


/* Masquer le pied GenerateBlocks d'origine, remplacé par .pied-site */
.site-footer:not(.pied-site),
footer.gb-element,
.gb-container:has(> [href*="youtube.com"]):not(.pied-site),
body.error404 .site-content,
body.error404 .page-hero,
body.error404 .gb-query-loop,
body.search-no-results .page-hero {
  display: none !important;
}
body.error404 .page-introuvable,
body.error404 .pied-site,
body.error404 .gb-site-header {
  display: block !important;
}
body.error404 .gb-site-header {
  display: flex !important;
}
/* Colonne de lecture : pas collée au bord */
@media (max-width: 480px) {
  .entry-content, .bandeau-accueil-texte, .page-accueil section {
    padding-left: 16px;
    padding-right: 16px;
  }
}