/* ---------------------------------------------------------------------------
   Couche WordPress, chargée après site.css et modern.css.
   Menu, blog, et mise en forme de tous les blocs Gutenberg (y compris ceux
   publiés par Sedestral : sommaire, FAQ, tableaux, citations, boutons).
   --------------------------------------------------------------------------- */

/* ------------------------------- menu ----------------------------------- */

#navigation {
  padding: 0 21px;
  margin: 6px 0 12px;
}

#navigation a.nav-btn {
  display: none !important;
}

#navigation ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px 6px;
  position: static !important;
  margin: 0;
  padding: 0;
}

#navigation ul li {
  float: none;
  padding: 0;
  margin: 0;
  height: auto;
  border: 0;
  background: none;
}

#navigation ul li a {
  height: auto;
  line-height: 1.4;
  padding: 3px 10px;
  border: 2px solid transparent;
  background: none;
  color: #2b425e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  width: auto;
}

#navigation ul li.current-menu-item a,
#navigation ul li.current_page_item a,
#navigation ul li a:hover,
#navigation ul li a:focus {
  border-color: #d5a940;
  background: #2b425e;
  color: #fff;
}

@media only screen and (max-width: 640px) {
  #navigation {
    margin: 4px 10px 10px;
    padding: 0;
  }
  #navigation ul li a {
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #ccc;
    background: #fff;
  }
}

/* --------------------------- contenus Gutenberg ------------------------- */

.entry-title,
.featured > h1 {
  margin: 10px 0 14px;
}

.entry-content::after,
.featured::after {
  content: "";
  display: block;
  clear: both;
}

.entry-content > * {
  margin-bottom: 1em;
}

.entry-content h2 {
  font-size: 25px;
  line-height: 1.2;
  color: #b38e37;
  font-weight: 700;
  margin: 28px 0 15px;
}

.entry-content h3 {
  font-size: 19px;
  line-height: 1.3;
  color: #2b425e;
  margin: 22px 0 10px;
}

.entry-content h4 {
  font-size: 16px;
  color: #2b425e;
  margin: 18px 0 8px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1em 1.4em;
  padding: 0;
}

.entry-content li {
  margin: 0 0 0.35em;
}

/* site.css stylise tous les "li a" en boutons sur mobile : pas dans le texte */
.entry-content li a {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
  font-size: inherit !important;
  color: #2b425e !important;
  text-decoration: underline !important;
}

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

.entry-content .alignleft,
.entry-content figure.alignleft {
  float: left;
  margin: 6px 18px 12px 0;
  max-width: 50%;
}

.entry-content .alignright,
.entry-content figure.alignright {
  float: right;
  margin: 6px 0 12px 18px;
  max-width: 50%;
}

.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.entry-content figcaption,
.wp-element-caption {
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 6px;
}

.entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid #d5a940;
  background: rgba(255, 255, 255, 0.6);
  margin: 1.2em 0;
  padding: 10px 18px;
  font-style: italic;
}

.wp-block-pullquote {
  border-top: 3px solid #d5a940;
  border-bottom: 3px solid #d5a940;
  padding: 18px 0;
  text-align: center;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid #ddd;
  padding: 7px 10px;
  text-align: left;
}

.wp-block-table thead th {
  background: #2b425e;
  color: #fff;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #f6f6f6;
}

.wp-block-button__link,
.wp-element-button {
  background: #d5a940;
  color: #2b425e;
  border-radius: 3px;
  padding: 10px 20px;
  font-weight: 700;
  text-decoration: none;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background: #2b425e;
  color: #fff;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid rgba(213, 169, 64, 0.6);
  margin: 24px auto;
}

/* FAQ (bloc Détails) */
.wp-block-details {
  background: #fff;
  border: 1px solid #e5dcc0;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 8px;
}

.wp-block-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #2b425e;
}

.wp-block-details[open] summary {
  margin-bottom: 8px;
}

/* Sommaire et encadrés */
.wp-block-group.has-background,
.wp-block-table-of-contents,
.wp-block-yoast-seo-table-of-contents {
  padding: 14px 18px;
  border-radius: 4px;
}

.wp-block-table-of-contents,
.wp-block-yoast-seo-table-of-contents {
  background: #fff;
  border: 1px solid #e5dcc0;
}

.wp-block-code,
.entry-content pre {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  overflow-x: auto;
  font-size: 12px;
}

.wp-block-embed iframe,
.entry-content iframe {
  max-width: 100%;
}

.wp-block-columns {
  gap: 20px;
}

/* ------------------------------ blog ------------------------------------ */

.et-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.et-carte {
  background: #fff;
  border: 1px solid #e5dcc0;
  border-radius: 4px;
  overflow: hidden;
}

.et-carte-lien {
  display: block;
  color: inherit;
  text-decoration: none !important;
  height: 100%;
}

.et-carte img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.et-carte-date {
  display: block;
  font-size: 11px;
  color: #888;
  padding: 10px 14px 0;
}

.featured .et-carte-titre,
.main .et-carte-titre {
  font-size: 17px;
  line-height: 1.3;
  color: #2b425e;
  margin: 4px 14px 6px;
}

.et-carte-resume {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 14px 8px;
  text-align: left;
}

.et-carte-suite {
  display: block;
  margin: 0 14px 14px;
  font-weight: 700;
  color: #b38e37;
}

.et-carte-lien:hover .et-carte-titre,
.et-carte-lien:focus .et-carte-titre {
  text-decoration: underline;
}

.et-tous {
  text-align: right;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 18px 0 6px;
}

.nav-links .page-numbers {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
}

.nav-links .page-numbers.current {
  background: #2b425e;
  color: #fff;
}

.et-fil {
  font-size: 12px;
  margin: 6px 0 0;
}

.et-meta {
  font-size: 12px;
  color: #777;
  margin: -6px 0 14px;
}

.et-article-image {
  margin: 0 0 16px;
}

.et-article-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.et-cta {
  background: #2b425e;
  color: #fff;
  border-color: #2b425e;
}

.et-cta h2,
.main .et-cta h2 {
  color: #d5a940;
}

.et-cta p {
  text-align: left;
}

.et-cta .form-rgpd,
.et-cta .aide-champ {
  color: #ddd;
}

.et-cta .form-rgpd a {
  color: #fff;
}

.et-cta-form {
  max-width: 460px;
}

.et-cta #contact {
  padding: 12px 18px 4px;
  border-radius: 4px;
}

.et-cta #contact .form-rgpd,
.et-cta #contact .aide-champ {
  color: #555;
}

.et-cta #contact .form-rgpd a {
  color: #2b425e;
}

.et-alerte {
  background: #fdeaec;
  border-left: 4px solid #b3131f;
  padding: 8px 12px;
}

/* Le sous-titre du bandeau garde la même taille sur les longues phrases */
h1.slogan {
  overflow-wrap: anywhere;
}

/* Le site.css d'origine force les puces "li" à 17px de marge */
.listing_resultats li {
  margin-left: 0;
}

.maillage h2 {
  font-size: 22px;
}

/* ------------------------- corrections d'en-tête ------------------------ */

html,
body {
  height: auto;
  min-height: 100%;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  padding: 16px 0 0 21px;
}

#header .cl {
  display: none;
}

#logo {
  position: static;
  width: auto;
  font-size: 0;
  line-height: 0;
}

#logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.search {
  margin: 0;
}

h1,
h1.slogan {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  color: #2b425e;
}

h2.slogan {
  color: #2b425e;
}

@media only screen and (max-width: 640px) {
  #header {
    padding: 12px 10px 0;
  }
  #logo img {
    width: 220px;
  }
  .search {
    width: auto;
    padding: 6px 8px;
  }
  .accroche-zone {
    font-size: 13px;
  }
  h1.slogan {
    width: auto;
    padding: 18px 15px 0;
  }
  .colonne .cols .col {
    padding-right: 0;
  }
}

/* Un lien vers une ancre (#contact) n'est pas la page en cours */
#navigation ul li.menu-item-type-custom.current-menu-item a:not(:hover):not(:focus) {
  background: none;
  border-color: transparent;
  color: #2b425e;
}
