/*
Theme Name: Avenir Conso
Theme URI: https://www.avenir-conso.com/
Author: DBL France
Description: Thème à blocs Gutenberg pour Avenir Conso.
Version: 0.5.9
Requires at least: 6.9
Requires PHP: 8.5
Text Domain: avenir-conso
*/
 
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .15em; }
a:focus-visible, button:focus-visible { outline: 3px solid #3b3b3b; outline-offset: 3px; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
.wp-site-blocks > .wp-block-template-part { margin-block-start: 0; }

/* Mediator access link sits below the logo. */
.ac-header-top { position: relative; min-height: 150px; margin: 0 !important; background: #fff; }
.ac-header-top .ac-brand { width: min(800px, calc(100% - 32px)); margin: 0 auto !important; padding-top: 20px; }
.ac-header-top .ac-brand img { display: block; width: min(734px, 100%); height: auto; }
.ac-member-link { position: static; display: block; width: min(800px, calc(100% - 32px)); margin: 0 auto 12px !important; font-size: 12px; line-height: 1.2; text-align: right; }
.ac-member-link a { color: #cc0000; text-decoration: none; }
.ac-member-link a:hover { text-decoration: underline; }
.ac-nav-band { margin: 0 !important; background: #cc0000; }
.ac-main-nav { max-width: 900px; min-height: 104px; margin: 0 auto !important; padding: 0 6px; color: #fff; }
.ac-main-nav .wp-block-navigation__container { width: 100%; align-items: stretch; justify-content: center; gap: 0; }
.ac-main-nav .wp-block-navigation-item { flex: 0 1 auto; }
.ac-main-nav .wp-block-navigation-item__content { display: flex; align-items: flex-start; justify-content: center; min-height: 104px; max-width: 155px; padding: 24px 11px 3px; color: #fff !important; font-size: 15px; line-height: 1.28; text-align: center; text-decoration: none; }
.ac-main-nav .wp-block-navigation-item__content:hover,
.ac-main-nav .wp-block-navigation-item__content:focus-visible,
.ac-main-nav .current-menu-item > .wp-block-navigation-item__content { background: #aa0000; }
.ac-main-nav .wp-block-navigation__submenu-icon { display: none; }
.ac-main-nav .wp-block-navigation__submenu-container { min-width: 225px !important; background: #cc0000 !important; border: 0 !important; box-shadow: 0 7px 12px rgba(0,0,0,.18); }
.ac-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; min-height: auto; max-width: none; padding: 10px 14px; text-align: left; font-size: 13px; }
.ac-main-nav .wp-block-navigation__responsive-container-open { color: #fff; padding: 10px; }
/* Sous-menus du Joomla : fond saumon, entrées à gauche sur une ligne, rouge au survol. */
@media (min-width: 781px) {
  .ac-main-nav .wp-block-navigation-item__content:hover,
  .ac-main-nav .wp-block-navigation-item__content:focus-visible,
  .ac-main-nav .has-child:hover > .wp-block-navigation-item__content,
  .ac-main-nav .has-child:focus-within > .wp-block-navigation-item__content { background: none; color: #ec9277 !important; }
  .ac-main-nav .wp-block-navigation__submenu-container { width: max-content !important; min-width: 100% !important; padding: 10px 0 0 !important; background: #e87274 !important; box-shadow: none; }
  .ac-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
  .ac-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block !important; justify-content: flex-start !important; width: 100%; min-height: 0; max-width: none;
    padding: 10px !important; font-size: 15px; line-height: 20px; text-align: left; white-space: nowrap; background: #e87274;
  }
  .ac-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
  .ac-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
  .ac-main-nav .wp-block-navigation__submenu-container .ac-current > .wp-block-navigation-item__content { background: #cc0000; color: #ec9277 !important; }
}

/* Accueil, aligné sur la feuille blanche du Joomla. */
.ac-home-sheet { width: min(980px, 100%); margin: 0 auto !important; padding: 0 20px 40px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.21); }
.ac-hero { position: relative; width: calc(100% + 40px); max-width: none !important; aspect-ratio: 940 / 300; overflow: hidden; margin: 0 0 0 -20px !important; }
.ac-hero .wp-block-image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.ac-hero .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-hero .ac-hero-second { opacity: 0; animation: ac-hero-cycle 12s ease-in-out infinite; }
@keyframes ac-hero-cycle { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.ac-audience { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px; margin: 38px 0 12px !important; }
.ac-audience > .wp-block-column { display: flex; flex-direction: column; min-width: 0; margin: 0 !important; }
.ac-audience h2 { margin: 0 0 6px; padding-bottom: 5px; border-bottom: 1px solid #d8d8d8; color: #cc0000; font-size: 21px; font-weight: 400; line-height: 1.35; }
.ac-audience p { margin: 0; line-height: 1.6; text-align: justify; }
.ac-audience a { color: #cc0000; text-decoration: none; }
.ac-audience a:hover { text-decoration: underline; }
.ac-illustrated-link { display: block; width: fit-content; max-width: 100%; margin: 0; }
.ac-illustrated-link img { display: block; width: 100%; height: auto; }
.ac-consumer-link { width: 350px; margin: auto auto 96px !important; }
.ac-professional-links { margin: 32px 0 0 !important; }
.ac-professional-links .ac-illustrated-link { width: 400px; margin: 0 0 7px; }
.ac-introduction { margin: 12px 0 0 !important; font-size: 12px; line-height: 1.85; text-align: justify; }
.ac-introduction p { margin: 0; }

/* Pages intérieures : feuille blanche, titre filé de rouge, puces carrées. */
.ac-page-sheet { width: min(980px, 100%); margin: 0 auto !important; padding: 20px 20px 40px; background: #fff; box-shadow: 0 0 7px 4px rgba(0,0,0,.2); }
.ac-page-title { margin: 0 0 15px !important; padding: 9px 0 8px; border-bottom: 1px solid #cc0000; font-size: 22px; }
.ac-page-content { font-size: 15px; line-height: 1.5; }
.ac-page-content p { margin: 0 0 .75em; text-align: justify; }
.ac-page-content h2 { margin: 1.2em 0 .5em; font-size: 18px; }
.ac-page-content h3, .ac-page-content h4 { margin: 1.1em 0 .4em; font-size: 16px; }
.ac-page-content a { text-decoration: none; }
.ac-page-content a:hover { text-decoration: underline; }
/* Headings are red like links: underline their links to tell them apart. */
.ac-page-content :is(h2, h3, h4) a { text-decoration: underline; }
.ac-page-content ul { margin: 15px 0 15px 9px; padding: 0; list-style: none; }
.ac-page-content ul li { position: relative; padding-left: 17px; }
.ac-page-content ul li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: #cc0000; }
.ac-page-content .wp-block-table td, .ac-page-content .wp-block-table th { border: 0; padding: 3px 8px; vertical-align: top; }
.ac-main-nav .ac-current > .wp-block-navigation-item__content { color: #ec9277 !important; }
/* Étapes du processus, en encadrés comme la grille Widgetkit d'origine. */
.ac-page-content .ac-step { gap: 20px; margin: 0 0 20px !important; padding: 20px; border: 1px solid #e5e5e5; }
.ac-page-content .ac-step h3 { margin-top: 0; font-size: 17px; }
.ac-page-content .ac-step .wp-block-image { margin: 0; }
.ac-page-content .ac-step .wp-block-image img { display: block; width: 100%; max-width: 160px; height: auto; }

/* Grille de logos des réseaux adhérents, 5 colonnes comme le Widgetkit d'origine. */
.ac-page-content .ac-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; margin: 20px 0 !important; }
.ac-page-content .ac-logos .wp-block-image { display: flex; align-items: center; justify-content: center; margin: 0 !important; min-height: 100px; }
.ac-page-content .ac-logos .wp-block-image a { display: flex; align-items: center; justify-content: center; width: 100%; }
.ac-page-content .ac-logos img { width: auto; max-width: 100%; max-height: 100px; object-fit: contain; }
.ac-page-content .ac-logos a:focus-visible { outline: 2px solid #cc0000; outline-offset: 4px; }
.ac-page-content hr.wp-block-separator { margin: 20px 0; border: 0; border-top: 1px solid #b5b5b5; }

/* Mediator profiles and sector archives (Gutenberg templates). */
.single-ac_mediateur .ac-page-title { font-size: 26px; }
.single-ac_mediateur .ac-page-sheet { width: min(1380px, calc(100% - 32px)); }
.single-ac_mediateur .ac-page-sheet > .ac-page-title,
.single-ac_mediateur .ac-page-sheet > .ac-mediator-profile-layout,
.single-ac_mediateur .ac-page-sheet > .ac-mediator-back,
.single-ac_mediateur .ac-page-sheet > .ac-mediator-profile-nav { width: 100%; max-width: none !important; margin-left: 0; margin-right: 0; }
.single-ac_mediateur .ac-mediator-back { margin: 0 0 18px; font-size: 15px; }
.single-ac_mediateur .ac-mediator-back a { color: #b00000; }
.single-ac_mediateur .ac-mediator-profile-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 36px !important; padding-top: 20px; border-top: 1px solid #ddd; }
.single-ac_mediateur .ac-mediator-profile-nav a { color: #b00000; text-decoration: none; }
.single-ac_mediateur .ac-mediator-profile-nav a:hover { text-decoration: underline; }
.single-ac_mediateur .ac-mediator-profile-nav a:focus-visible { outline: 3px solid #cc0000; outline-offset: 3px; }
.single-ac_mediateur .ac-mediator-profile-nav strong { display: block; color: #333; font-weight: 600; }
.single-ac_mediateur .ac-mediator-profile-nav__directory { align-self: center; font-weight: 600; text-align: center; }
.single-ac_mediateur .ac-mediator-profile-nav__next { text-align: right; }
.single-ac_mediateur .ac-mediator-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; margin-top: 24px; }
.single-ac_mediateur .ac-mediator-profile-name { margin: 0 0 48px; color: #cc0000; font-size: 28px; font-weight: 400; }
.single-ac_mediateur .ac-mediator-profile-sector-title { margin: 0 0 16px; color: #cc0000; font-size: 22px; }
.single-ac_mediateur .ac-mediator-profile-sectors { margin: 0 0 20px 12px; padding: 0; list-style: none; }
.single-ac_mediateur .ac-mediator-profile-sectors li { position: relative; margin: 0; padding: 2px 0 2px 18px; line-height: 1.35; }
.single-ac_mediateur .ac-mediator-profile-sectors li::before { content: ""; position: absolute; top: 9px; left: 0; width: 10px; height: 10px; background: #cc0000; }
.single-ac_mediateur .ac-mediator-profile-aside { width: 100%; }
.single-ac_mediateur .ac-mediators__profile-photo { width: 100%; max-width: 310px; margin: 0 0 36px; padding: 4px; border: 1px solid #ddd; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.single-ac_mediateur .ac-mediators__profile-photo img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.single-ac_mediateur .ac-mediator-profile-content h3 { margin: 0 0 10px; color: #cc0000; font-size: 22px; font-weight: 400; }
.single-ac_mediateur .ac-mediator-details { margin: 24px 0; }
.single-ac_mediateur .ac-mediator-details dl { margin: 0; }
.single-ac_mediateur .ac-mediator-details__row { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid #eee; }
.single-ac_mediateur .ac-mediator-details__row dt { font-weight: 700; }
.single-ac_mediateur .ac-mediator-details__row dd { margin: 0; }
.single-ac_mediateur .ac-mediator-details__row a { color: #c00; }
.single-ac_mediateur .ac-mediator-details__text { margin-top: 24px; }
.single-ac_mediateur .ac-mediator-details__text h3 { margin: 0 0 8px; color: #cc0000; font-size: 20px; font-weight: 400; }
.single-ac_mediateur .ac-mediator-details__text p { margin: 0 0 10px; }
.single-ac_mediateur .ac-mediator-profile-content .wp-block-file a { color: #cc0000; text-decoration: none; }
.single-ac_mediateur .ac-mediator-profile-content .wp-block-file { font-size: 16px; }
.single-ac_mediateur a.ac-mediator-cv { display: flex; box-sizing: border-box; width: 100%; max-width: 310px; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #333; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.single-ac_mediateur a.ac-mediator-cv:hover { border-color: #cc0000; background: #fdf5f5; }
.single-ac_mediateur a.ac-mediator-cv:focus-visible { outline: 3px solid #cc0000; outline-offset: 2px; }
.ac-mediator-cv__ext { display: flex; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; border-radius: 6px; background: #cc0000; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.ac-mediator-cv__text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.ac-mediator-cv__text strong { color: #333; font-size: 15px; font-weight: 700; }
.ac-mediator-cv__text span { color: #6f6a64; font-size: 13px; }
.ac-mediator-cv__icon { flex: 0 0 22px; width: 22px; height: 22px; color: #cc0000; }
.single-ac_mediateur .ac-mediator-profile-content .wp-block-file a:hover { text-decoration: underline; }
.single-ac_mediateur .ac-mediator-profile-content .wp-block-file__button { display: none; }
.ac-mediator-archive .ac-mediator-archive__list { margin: 0; padding: 0; list-style: none; }
.ac-mediator-archive .ac-mediator-archive__item { align-items: flex-start; gap: 16px; margin: 0 !important; padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.ac-mediator-archive .ac-mediator-archive__image { flex: 0 0 72px; width: 72px; margin: 0; }
.ac-mediator-archive .ac-mediator-archive__image img { display: block; width: 72px; height: 90px; object-fit: cover; }
.ac-mediator-archive .ac-mediator-archive__body { flex: 1; min-width: 0; }
.ac-mediator-archive .wp-block-post-title { margin: 0 0 5px; font-size: 18px; }
.ac-mediator-archive .ac-mediator-archive__terms { margin: 0; font-size: 14px; line-height: 1.5; }
.ac-mediator-archive .ac-mediator-archive__terms a { text-decoration: none; }
.ac-mediator-archive .ac-mediator-archive__terms a:hover { text-decoration: underline; }
.ac-mediator-archive .wp-block-query-pagination { gap: 8px; margin: 20px 0 0; }
.ac-mediator-archive .wp-block-query-pagination a,
.ac-mediator-archive .wp-block-query-pagination-numbers a,
.ac-mediator-archive .wp-block-query-pagination-numbers span { padding: 5px 9px; border: 1px solid #e0e0e0; text-decoration: none; }
.ac-mediator-archive .wp-block-query-pagination-numbers .current { background: #cc0000; border-color: #cc0000; color: #fff; }

/* Actualité : blog Joomla, 5 articles par page. Sur la première page seulement,
   le premier article occupe toute la largeur et les suivants sont listés en liens
   (la classe body .paged est posée par WordPress à partir de la page 2). */
.ac-news .ac-news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 30px; margin: 0; padding: 0; list-style: none; }
.ac-news .ac-news__list > li { min-width: 0; margin: 0; padding: 0; }
.ac-news .ac-news__list > li::before { content: none; }
body:not(.paged) .ac-news .ac-news__list > li:first-child { grid-column: 1 / -1; }
.ac-news__title { margin: 0 0 12px !important; padding-bottom: 6px; border-bottom: 1px solid #cc0000; font-size: 20px; }
.ac-news__title a { color: #cc0000; text-decoration: none; }
.ac-news__title a:hover { text-decoration: underline; }
.ac-news__content { font-size: 15px; line-height: 1.5; }
.ac-news__content img { max-width: 100%; height: auto; }
.ac-news .more-link { display: inline-block; margin-top: 8px; color: #cc0000; }
.ac-news-more { margin-top: 32px; }
.ac-news-more ul { margin: 0; padding: 0; list-style: none; }
.ac-news-more li { position: relative; padding-left: 17px; }
.ac-news-more li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: #cc0000; }
.ac-news-more__title { margin: 0 0 6px !important; font-size: 15px; font-weight: 400; }
.ac-news-more__title a { color: #cc0000; text-decoration: none; }
body.paged .ac-news-more { display: none; }
.ac-news-pages { margin-top: 32px; }
.ac-news-pages .wp-block-query-pagination { gap: 4px; font-size: 14px; }
.ac-news-pages .page-numbers, .ac-news-pages a { display: inline-block; min-width: 32px; padding: 4px 8px; border: 1px solid #e0e0e0; text-align: center; color: #cc0000; text-decoration: none; }
.ac-news-pages .page-numbers.current { background: #cc0000; border-color: #cc0000; color: #fff; }
.ac-post-date { margin: -6px 0 16px !important; font-size: 13px; color: #6f6a64; }
.ac-post-back { margin-top: 32px !important; }
.ac-post-back a { color: #cc0000; text-decoration: none; }

/* Agenda (iCagenda) : pastille de date à la couleur de la catégorie, blocs gris. */
.ac-agenda-titre { margin: 0 !important; color: #cc0000; font-size: 22px; }
.ac-agenda-sous-titre { margin: 0 !important; color: #cc0000; font-size: 20px; }
.ac-agenda-total { margin: 2px 0 16px !important; font-size: 13px; }
.ac-agenda .ac-agenda__list { margin: 0; padding: 0; list-style: none; }
.ac-agenda .ac-agenda__list > li { margin: 0 0 10px; padding: 0; }
.ac-agenda .ac-agenda__list > li::before { content: none; }
.ac-agenda__item { display: flex; gap: 28px; align-items: flex-start; margin: 0 !important; padding: 8px; border-radius: 4px; background: #fafafa; }
.ac-agenda__list > li:nth-child(even) .ac-agenda__item { background: #f4f4f4; }
.ac-agenda-date { --ac-agenda-color: #bdbdbd; display: flex; flex: 0 0 80px; flex-direction: column; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 !important; border-radius: 3px; background: var(--ac-agenda-color); color: #fff; line-height: 1; }
.ac-agenda-date__day { font-size: 30px; font-weight: 700; }
.ac-agenda-date__month { margin-top: 2px; font-size: 15px; }
.ac-agenda-date__year { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ac-agenda__body { flex: 1; min-width: 0; }
.ac-agenda-categorie { margin: 2px 0 6px !important; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #555; }
.ac-agenda__title { margin: 0 0 6px !important; font-size: 20px; }
.ac-agenda__title a { color: #cc0000; text-decoration: none; }
.ac-agenda__title a:hover { text-decoration: underline; }
.ac-agenda__excerpt p { margin: 0; font-style: italic; text-align: justify; }
.ac-agenda__excerpt .wp-block-post-excerpt__more-link { color: #cc0000; text-decoration: none; font-style: normal; }
.ac-agenda-pages { margin: 12px 0 !important; font-size: 15px; }
.ac-agenda-pages a { color: #cc0000; text-decoration: none; }
.ac-agenda-pages .page-numbers { padding: 0 2px; }
.ac-agenda-pages .page-numbers.current { font-weight: 700; }
.ac-agenda-fiche__title { margin: 20px 0 12px !important; color: #cc0000; font-size: 20px; }
.ac-agenda-fiche { padding: 10px 10px 40px; border-radius: 4px; background: #f4f4f4; }
.ac-agenda-fiche__image { margin: 0 auto 24px !important; text-align: center; }
.ac-agenda-fiche__image img { width: auto; max-width: 100%; max-height: 360px; margin: 0 auto; }
.ac-agenda-infos { margin: 0 0 24px 18px; border-collapse: collapse; font-size: 15px; }
.ac-agenda-infos th { padding: 4px 48px 4px 0; text-align: left; vertical-align: top; }
.ac-agenda-infos td { padding: 4px 0; }
.ac-agenda-fiche__content img { max-width: 100%; height: auto; }

/* Formulaire de contact (Contact Form 7). */
.ac-page-content .wpcf7 { max-width: 640px; margin: 24px 0 0 !important; }
.wpcf7 label { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid #c8c8c8; border-radius: 2px; font: inherit; color: inherit; }
.wpcf7 input[name=robot] { width: 5em; margin-left: 6px; padding: 5px 7px; border: 1px solid #c8c8c8; font: inherit; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid #cc0000; outline-offset: 1px; border-color: #cc0000; }
.wpcf7 .ac-counter { display: block; text-align: right; font-size: 12px; color: #a39d96; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type=submit] { padding: 9px 26px; border: 0; border-radius: 2px; background: #cc0000; color: #fff; font: inherit; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #aa0000; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; color: #cc0000; }
.wpcf7 .ac-form-note { font-size: 12px; }

/* Bandeau rouge du pied de page. */
.ac-footer { min-height: 73px; margin: 0 !important; padding: 14px 20px 9px; background: #cc0000; color: #fff; text-align: center; }
.ac-footer p { margin: 0; }
.ac-footer .ac-footer-links { font-size: 12px; line-height: 1.8; }
.ac-footer .ac-footer-host { margin-top: 11px; font-size: 10px; line-height: 1.4; }
.ac-footer a { color: #fff; text-decoration: none; }
.ac-footer a:hover { text-decoration: underline; }

/* Page de dépôt : informations juridiques et étapes du formulaire. */
.ac-page-content .ac-convention-intro { max-width: 900px; margin: 8px auto 22px !important; }
.ac-page-content .ac-convention-intro p { margin: 0 0 4px; text-align: left; }
.ac-page-content .ac-convention-legal {
  max-width: 900px; margin: 0 auto 28px !important; padding: 20px 24px 18px;
  border-left: 4px solid #cc0000; border-radius: 0 7px 7px 0; background: #f5f6f8;
}
.ac-page-content .ac-convention-legal p { margin-bottom: 12px; text-align: left; }
.ac-page-content .ac-convention-legal h3 { margin: 4px 0 14px; color: #cc0000; font-size: 18px; font-weight: 600; text-transform: uppercase; }
.ac-page-content .ac-convention-legal ul { margin: 8px 0 0 2px; }
.ac-page-content .ac-convention-legal a { color: #cc0000; font-weight: 600; text-decoration: underline; }
.ac-page-content .ac-convention-form-title { max-width: 900px; margin: 0 auto 18px !important; color: #cc0000; font-size: 20px; line-height: 1.4; }

@media (max-width: 1020px) {
  .ac-main-nav { max-width: 100%; }
  .ac-main-nav .wp-block-navigation-item__content { padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 780px) {
  .ac-header-top { min-height: 112px; }
  .ac-header-top .ac-brand { width: min(500px, calc(100% - 28px)); padding-top: 18px; }
  .ac-header-top .ac-brand img { width: 100%; }
  .ac-member-link { width: min(500px, calc(100% - 28px)); margin-bottom: 8px !important; }
  .ac-main-nav { min-height: 52px; justify-content: flex-end !important; }
  .ac-main-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
  .ac-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .ac-main-nav .wp-block-navigation__responsive-container.is-menu-open { color: #3b3b3b; }
  /* The bar is centred on desktop; WordPress applies the same centring to the open mobile menu. */
  .ac-main-nav .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
  .ac-main-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation__submenu-container, .wp-block-navigation-item) { align-items: flex-start !important; text-align: left; }

  /* Open mobile menu: accordion (assets/menu.js). Each section keeps its link;
     the chevron button of WordPress opens or closes its submenu (.ac-open). */
  .ac-main-nav .is-menu-open { padding: 0 !important; }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 14px; right: 14px; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-close:hover { background: rgba(255, 255, 255, .15); }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-content { display: block !important; padding: 0 0 32px !important; }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-content::before { content: "Menu"; display: block; padding: 22px 20px; background: #cc0000; color: #fff; font-size: 18px; font-weight: 600; line-height: 24px; }
  .ac-main-nav .is-menu-open .wp-block-navigation__container { display: block !important; padding: 6px 20px 0 !important; }
  .ac-main-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; width: 100%; border-bottom: 1px solid #ececec; }
  .ac-main-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { flex: 1 1 0; justify-content: flex-start; min-width: 0; min-height: 0; max-width: none; padding: 15px 0 !important; background: none !important; color: #222 !important; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: left; }
  .ac-main-nav .is-menu-open .wp-block-navigation__container > .ac-current > .wp-block-navigation-item__content { color: #cc0000 !important; }

  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-icon { display: flex !important; flex: 0 0 40px; width: 40px; height: 40px; margin: 0 0 0 8px !important; padding: 0 !important; align-items: center; justify-content: center; border-radius: 50%; background: #f4f4f4 !important; color: #cc0000; cursor: pointer; }
  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-icon svg { display: block; width: 14px; height: 14px; margin: 0; stroke: currentColor; transition: transform .2s ease; }
  .ac-main-nav .is-menu-open .ac-open > .wp-block-navigation__submenu-icon { background: #cc0000 !important; color: #fff; }
  .ac-main-nav .is-menu-open .ac-open > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }

  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-container { position: static !important; flex: 0 0 100%; width: 100% !important; min-width: 0 !important; height: auto !important; margin: 0 0 12px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none; opacity: 1 !important; visibility: visible !important; }
  .ac-main-nav .is-menu-open .has-child:not(.ac-open) > .wp-block-navigation__submenu-container { display: none !important; }
  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; min-height: 0; max-width: none; padding: 10px 0 10px 16px !important; border-left: 2px solid #e6e6e6; background: none !important; color: #555 !important; font-size: 15px; font-weight: 400; line-height: 1.4; text-align: left; }
  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-container .ac-current > .wp-block-navigation-item__content { border-left-color: #cc0000; color: #cc0000 !important; font-weight: 600; }
  .ac-main-nav .is-menu-open .wp-block-navigation-item__content:focus-visible,
  .ac-main-nav .is-menu-open .wp-block-navigation__submenu-icon:focus-visible,
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-close:focus-visible { outline: 2px solid #cc0000; outline-offset: 2px; }
  .ac-main-nav .is-menu-open .wp-block-navigation__responsive-container-close:focus-visible { outline-color: #fff; }
  .ac-home-sheet { padding: 0 18px 32px; }
  .ac-page-sheet { padding: 12px 16px 32px; box-shadow: none; }
  .ac-page-content p { text-align: left; }
  .ac-page-content .wp-block-table { overflow-x: auto; }
  .ac-page-content .ac-step { padding: 14px; }
  .ac-page-sheet .ac-mediators__profile-photo { max-width: 110px; margin-left: 14px; }
  .ac-page-content .ac-convention-legal { padding: 16px; }
  .ac-page-content .ac-convention-form-title { font-size: 18px; }
  .single-ac_mediateur .ac-mediator-profile-layout { grid-template-columns: 1fr; gap: 16px; }
  .single-ac_mediateur .ac-mediator-profile-aside { grid-row: 1; }
  .single-ac_mediateur a.ac-mediator-cv { max-width: none; margin-bottom: 8px; }
  .single-ac_mediateur .ac-mediators__profile-photo { max-width: min(310px, 100%); margin: 0 0 16px; }
  .single-ac_mediateur .ac-mediator-profile-name { margin-bottom: 26px; }
  .single-ac_mediateur .ac-mediator-profile-nav { grid-template-columns: 1fr 1fr; gap: 20px; }
  .single-ac_mediateur .ac-mediator-profile-nav__directory { grid-column: 1 / -1; grid-row: 1; }
  .single-ac_mediateur .ac-mediator-profile-nav__previous { grid-column: 1; }
  .single-ac_mediateur .ac-mediator-profile-nav__next { grid-column: 2; }
  .ac-mediator-archive .ac-mediator-archive__item { gap: 12px; }
  .ac-page-content .ac-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ac-news .ac-news__list { grid-template-columns: 1fr; }
  .ac-agenda__item { gap: 14px; }
  .ac-agenda-date { flex-basis: 64px; width: 64px; height: 64px; }
  .ac-agenda-date__day { font-size: 24px; }
  .ac-agenda-infos { margin-left: 0; }
  .ac-agenda-infos th { padding-right: 16px; }
  .ac-page-content .ac-step .wp-block-image img { max-width: 90px; }
  .ac-hero { width: calc(100% + 36px); margin-left: -18px !important; }
  .ac-audience { grid-template-columns: 1fr; gap: 32px; margin-top: 30px !important; }
  .ac-consumer-link { margin: 24px 0 0 !important; }
  .ac-professional-links { margin-top: 20px !important; }
}
@media (max-width: 540px) {
  .ac-header-top { min-height: 96px; }
  .ac-header-top .ac-brand { width: min(300px, calc(100% - 24px)); padding-top: 12px; }
  .ac-member-link { width: min(300px, calc(100% - 24px)); font-size: 10px; }
  .ac-home-sheet { padding-inline: 12px; }
  .ac-hero { width: calc(100% + 24px); margin-left: -12px !important; aspect-ratio: 940 / 300; }
  .ac-hero .wp-block-image img { object-fit: contain; }
  .ac-audience h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ac-hero .ac-hero-second { animation: none; }
}

.ac-mediator-account { width: 100%; max-width: none; margin: 28px 0; padding: 28px; border: 1px solid #ddd; border-top: 3px solid #c00; border-radius: 2px; background: #fff; box-shadow: none; }
.ac-page-sheet:has(.ac-mediator-account) { box-shadow: none; }
.ac-mediator-account h2 { margin: 0 0 12px; color: #c00; font-size: 28px; font-weight: 400; }
.ac-mediator-account__intro { margin: 0 0 24px; color: #555; }
.ac-mediator-account #ac-mediator-login-form { max-width: 460px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ac-mediator-account #ac-mediator-login-form p { margin: 0 0 18px; }
.ac-mediator-account #ac-mediator-login-form label { display: block; margin: 0 0 7px; color: #454545; font-weight: 600; }
.ac-mediator-account #ac-mediator-login-form input[type="text"], .ac-mediator-account #ac-mediator-login-form input[type="password"] { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bbb; border-radius: 2px; background: #fff; color: #333; font: inherit; box-shadow: none; }
.ac-mediator-account #ac-mediator-login-form input[type="text"]:focus, .ac-mediator-account #ac-mediator-login-form input[type="password"]:focus { border-color: #c00; outline: 2px solid #edb4b4; outline-offset: 1px; box-shadow: none; }
.ac-mediator-account #ac-mediator-login-form .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ac-mediator-account #ac-mediator-login-form input[type="checkbox"] { accent-color: #c00; }
.ac-mediator-account #ac-mediator-login-form .button { min-height: 44px; padding: 10px 22px; border: 1px solid #c00; border-radius: 2px; background: #c00; color: #fff; font: inherit; cursor: pointer; box-shadow: none; text-shadow: none; }
.ac-mediator-account #ac-mediator-login-form .button:hover, .ac-mediator-account #ac-mediator-login-form .button:focus { border-color: #a80000; background: #a80000; color: #fff; box-shadow: none; }
.ac-mediator-account__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.ac-mediator-account__heading h2 { margin: 0; }
.ac-mediator-account__session { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid #c00; background: #f7f7f7; }
.ac-mediator-account__identity { margin: 0 !important; color: #555; font-size: 14px; }
.ac-mediator-account__identity strong { color: #333; }
.ac-mediator-account__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 9px; }
.ac-mediator-account__action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; border: 1px solid #c00; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.ac-mediator-account__action svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-mediator-account__action--documents { background: #c00; color: #fff; }
.ac-mediator-account__action--documents:hover { border-color: #a80000; background: #a80000; color: #fff; }
.ac-mediator-account__action--logout { background: #fff; color: #b00; }
.ac-mediator-account__action--logout:hover { background: #fff1f1; color: #900; }
.ac-mediator-account__action:focus-visible { outline: 3px solid #e8aaaa; outline-offset: 2px; }
.ac-mediator-account__view-profile { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #c00; border-radius: 50%; color: #c00; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ac-mediator-account__view-profile svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-mediator-account__view-profile:hover { background: #c00; color: #fff; }
.ac-mediator-account__view-profile:focus-visible { outline: 3px solid #e8aaaa; outline-offset: 3px; }
.ac-mediator-account__form > p { margin: 0 0 20px; }
.ac-mediator-account__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid #ddd; }
.ac-mediator-account__tabs[hidden] { display: none; }
.ac-mediator-account__tabs button { flex: 1 1 150px; min-height: 48px; padding: 10px 16px; border: 1px solid #d5d5d5; border-radius: 3px 3px 0 0; background: #f6f6f6; color: #333; font: inherit; font-weight: 600; cursor: pointer; }
.ac-mediator-account__tabs button:hover { border-color: #c00; color: #b00; }
.ac-mediator-account__tabs button.is-active { border-color: #c00; background: #c00; color: #fff; }
.ac-mediator-account__tabs button:focus-visible { outline: 3px solid #e8aaaa; outline-offset: 2px; }
.ac-mediator-account__panel { margin: 0 0 22px; }
.ac-mediator-account__form.has-tabs .ac-mediator-account__panel { padding: 24px; border: 1px solid #ddd; border-top: 3px solid #c00; border-radius: 3px; }
.ac-mediator-account__form.has-tabs .ac-mediator-account__panel[hidden] { display: none; }
.ac-mediator-account__panel > h3 { margin: 0 0 22px; color: #c00; font-size: 22px; font-weight: 500; }
.ac-mediator-account__panel > p { margin: 0 0 20px; }
.ac-mediator-account__panel > p:last-child { margin-bottom: 0; }
.ac-mediator-account__panel fieldset { margin-bottom: 0; }
.ac-mediator-account__form .ac-mediator-account__profile-types { display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; overflow-x: auto; }
.ac-mediator-account__form .ac-mediator-account__profile-types label { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin: 0; white-space: nowrap; font-weight: 400; }
.ac-mediator-account__form .ac-mediator-account__profile-types input[type="radio"] { accent-color: #c00; }
.ac-mediator-account__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ac-mediator-account__details > p { margin: 0 0 20px; }
.ac-mediator-account__details > p:nth-last-child(-n+2) { grid-column: 1 / -1; }
.ac-mediator-account__form label:not(.ac-mediator-account__sector) { display: block; margin-bottom: 7px; font-weight: 700; }
.ac-mediator-account__form input[type="text"], .ac-mediator-account__form input[type="tel"], .ac-mediator-account__form input[type="password"], .ac-mediator-account__form input[type="email"], .ac-mediator-account__form textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; appearance: none; border: 1px solid #bbb; border-radius: 4px; background: #fff; color: #333; font: inherit; }
.ac-mediator-account__form input[type="email"][readonly] { background: #f5f5f5; color: #555; }
.ac-mediator-account__credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-mediator-account__password { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin: 8px 0 0; padding: 16px; border: 1px solid #ddd; }
.ac-mediator-account__password h4 { grid-column: 1 / -1; margin: 0; color: #c00; font-size: 18px; }
.ac-mediator-account__password label { display: block; margin-bottom: 7px; font-weight: 700; }
.ac-mediator-account__form input[type="file"] { display: block; max-width: 100%; color: #454545; font: inherit; }
.ac-mediator-account__form input[type="file"]::file-selector-button,
.ac-mediator-account__form input[type="file"]::-webkit-file-upload-button { margin-right: 12px; padding: 10px 16px; border: 1px solid #c00; border-radius: 2px; background: #c00; color: #fff; font: inherit; cursor: pointer; }
.ac-mediator-account__form input[type="file"]:hover::file-selector-button,
.ac-mediator-account__form input[type="file"]:hover::-webkit-file-upload-button { border-color: #a80000; background: #a80000; }
.ac-mediator-account__form input[type="file"]:focus-visible { outline: 2px solid #c00; outline-offset: 3px; }
.ac-mediator-account__form button.ac-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; border: 1px solid #c00; border-radius: 2px; background: #c00; color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: none; text-shadow: none; transition: background-color .15s ease, border-color .15s ease; }
.ac-mediator-account__form button.ac-button:hover { border-color: #a80000; background: #a80000; color: #fff; }
.ac-mediator-account__form button.ac-button:focus-visible { outline: 3px solid #e8aaaa; outline-offset: 3px; box-shadow: none; }
.ac-mediator-account__form input[type="checkbox"] { accent-color: #c00; }
.ac-mediator-account__form small { display: block; margin-top: 6px; color: #666; }
.ac-mediator-account__form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 22px; padding: 16px; border: 1px solid #ddd; }
.ac-mediator-account__form legend { padding: 0 6px; font-weight: 700; }
.ac-mediator-account__sector { display: flex; align-items: flex-start; gap: 8px; }
.ac-mediator-account__locked, .ac-mediator-account__notice { padding: 12px 14px; background: #f5f5f5; border-left: 3px solid #c00; }
.ac-mediator-account__error { padding: 12px 14px; color: #8b0000; background: #fff1f1; border-left: 3px solid #c00; }
.ac-mediator-account__current-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f7f8fa; }
.ac-mediator-account__pending-removal:not([hidden]) { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid #c00; background: #fff4f4; color: #333; }
.ac-mediator-account__pending-removal button { flex: 0 0 auto; padding: 4px 8px; border: 0; background: transparent; color: #b00000; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ac-mediator-account__pending-removal button:focus-visible { outline: 2px solid #c00; outline-offset: 2px; }
.ac-mediator-account__current-file .ac-mediator-account__remove-icon { position: static; margin-left: auto; }
.ac-mediator-account__current-photo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 12px; border: 1px solid #e5e5e5; background: #fafafa; }
.ac-mediator-account__current-photo figcaption { font-weight: 600; }
.ac-mediator-account__photo-frame { position: relative; display: inline-flex; max-width: 100%; }
.ac-mediator-account__current-photo img { display: block; width: auto; max-width: min(100%, 220px); max-height: 260px; border: 1px solid #ddd; background: #fff; object-fit: contain; }
.ac-mediator-account__remove-icon { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex !important; align-items: center; justify-content: center; margin: 0; cursor: pointer; }
.ac-mediator-account__remove-icon input[type="checkbox"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.ac-mediator-account__remove-icon svg { display: block; box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border: 1px solid #c00; border-radius: 50%; background: #fff; color: #c00; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 1px 4px rgb(0 0 0 / 18%); transition: background-color .15s ease, color .15s ease; pointer-events: none; }
.ac-mediator-account__remove-icon:hover svg, .ac-mediator-account__remove-icon input:checked + svg { background: #c00; color: #fff; }
.ac-mediator-account__remove-icon input:focus-visible + svg { outline: 3px solid #e8aaaa; outline-offset: 3px; }
.ac-mediator-bio { margin: 0 0 18px; }
@media (max-width: 640px) {
  .ac-mediator-account { margin: 18px 0; padding: 18px; }
  .ac-mediator-account h2 { font-size: 24px; }
  .ac-mediator-account__session { align-items: stretch; flex-direction: column; gap: 12px; padding: 13px; }
  .ac-mediator-account__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ac-mediator-account__action { min-width: 0; padding: 8px 9px; font-size: 13px; }
  .ac-mediator-account #ac-mediator-login-form { max-width: none; }
  .ac-mediator-account__form fieldset { grid-template-columns: 1fr; }
  .ac-mediator-account__password { grid-template-columns: 1fr; }
  .ac-mediator-account__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ac-mediator-account__tabs button { min-width: 0; min-height: 50px; padding: 8px 6px; border-radius: 3px; font-size: 14px; }
  .ac-mediator-account__form.has-tabs .ac-mediator-account__panel { padding: 18px 14px; }
  .ac-mediator-account__credentials { grid-template-columns: 1fr; }
  .ac-mediator-account__details { grid-template-columns: 1fr; }
  .ac-mediator-account__form .ac-mediator-account__profile-types { gap: 12px; padding: 12px; }
  .ac-mediator-account__details > p:nth-last-child(-n+2) { grid-column: auto; }
  .single-ac_mediateur .ac-mediator-details__row { grid-template-columns: 1fr; gap: 2px; }
}
