/* Emmaüs Saint-André-le-Gaz / EMRA — YOOtheme Pro
   Appliquer les classes emra-* dans l'onglet Avancé des sections/éléments.
   Ne pas écraser les classes YOOtheme par défaut. Mobile-first.
*/
:root {
  --emra-navy: #071f49;
  --emra-blue: #07376b;
  --emra-yellow: #ffd000;
  --emra-ink: #102044;
  --emra-paper: #f8f5f0;
  --emra-white: #fff;
  --emra-border: #e4e5e7;
  --emra-radius: 14px;
  --emra-max: 1280px;
  --emra-shadow: 0 5px 22px rgba(7, 31, 73, .07);
  --emra-space-section: 64px;
}

/* --- SOCLE / IDENTITE --- */
body { color: var(--emra-ink); -webkit-font-smoothing: antialiased; }
.uk-container { max-width: var(--emra-max); }
.uk-section { scroll-margin-top: 100px; }
.emra-section-title,
.emra-section-title h2,
.emra-section-title .uk-h2 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); font-weight: 800; line-height: 1.12; color: var(--emra-navy); letter-spacing: -.035em; }
.emra-section-title::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 5px; background: var(--emra-yellow); margin-top: 13px; transform: rotate(-3deg); }
.emra-section-pad { padding-top: var(--emra-space-section); padding-bottom: var(--emra-space-section); }
.emra-muted { color: #566579; }

/* --- EN-TETE (variables non destructives) --- */
.tm-header .uk-navbar-container { background: #fff; box-shadow: 0 1px 0 rgba(7,31,73,.09); }
.tm-header .uk-navbar-nav > li > a { color: var(--emra-navy); font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: 0; min-height: 78px; }
.tm-header .uk-navbar-nav > li.uk-active > a { color: var(--emra-blue); }
.tm-header .uk-navbar-nav > li.uk-active > a::after { content: ""; position: absolute; height: 3px; background: var(--emra-yellow); bottom: 12px; left: 22%; right: 22%; border-radius: 3px; }
.tm-header .uk-navbar-nav > li { position: relative; }

/* --- BOUTONS --- */
.emra-btn--yellow.uk-button,
.uk-button.emra-btn--yellow,
.emra-btn--yellow .uk-button {
  background: var(--emra-yellow); color: var(--emra-navy); border: 1px solid var(--emra-yellow);
  border-radius: 8px; padding: 0 25px; font-weight: 800; font-size: 14px; text-transform: none;
  min-height: 44px; line-height: 42px; letter-spacing: 0; box-shadow: none;
  transition: transform .18s ease, background-color .18s ease;
}
.emra-btn--yellow:is(a,button):hover, .emra-btn--yellow .uk-button:hover { background: #f0c100; transform: translateY(-1px); color: var(--emra-navy); }
.emra-btn--navy.uk-button, .uk-button.emra-btn--navy, .emra-btn--navy .uk-button {
  background: var(--emra-blue); color: #fff; border-radius: 8px; border: 1px solid var(--emra-blue);
  min-height: 44px; line-height: 42px; text-transform: none; font-weight: 800; letter-spacing: 0;
}
.emra-link-arrow a { display: inline-flex; align-items: center; gap: 12px; color: var(--emra-navy); font-weight: 800; text-decoration: none; }
.emra-link-arrow a::after { content: "→"; color: #c39900; font-size: 1.2em; }
.emra-link-arrow a:hover { text-decoration: underline; }

/* --- HERO : photo dans YOOtheme > Section > Background image --- */
.emra-hero { position: relative; isolation: isolate; min-height: 335px; overflow: hidden; background-color: #f4f0e9; background-position: 65% center !important; background-size: cover !important; }
.emra-hero::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 28%, rgba(255,255,255,.80) 42%, rgba(255,255,255,0) 63%); }
.emra-hero > * { position: relative; z-index: 1; }
.emra-hero__title, .emra-hero__title h1 { color: var(--emra-navy); font-size: clamp(2.2rem, 3.45vw, 3.85rem); font-weight: 850; line-height: 1.06; letter-spacing: -.05em; max-width: 650px; }
.emra-hero__title::after { content: ""; display: block; width: 165px; height: 6px; background: var(--emra-yellow); border-radius: 50%; margin-top: 13px; transform: rotate(-3deg); }
.emra-hero__lead { max-width: 465px; font-size: 18px; line-height: 1.47; color: var(--emra-ink); }
.emra-hero .uk-container { min-height: 335px; display: flex; flex-direction: column; justify-content: center; }

/* --- DEUX PORTES D'ENTREE --- */
.emra-audience-section { padding: 24px 0 6px; }
.emra-audience-card { position: relative; isolation: isolate; overflow: hidden; min-height: 280px; border-radius: var(--emra-radius); background-size: cover !important; background-position: center !important; box-shadow: var(--emra-shadow); padding: 28px; }
.emra-audience-card > * { position: relative; z-index: 1; }
.emra-audience-card::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.emra-audience-card--public { background-color: #f8f3ea; }
.emra-audience-card--public::before { background: linear-gradient(90deg, #f8f3ea 1%, rgba(248,243,234,.99) 43%, rgba(248,243,234,.56) 70%, rgba(248,243,234,.02) 100%); }
.emra-audience-card--business { background-color: var(--emra-blue); color: #fff; }
.emra-audience-card--business::before { background: linear-gradient(90deg, #07376b 0%, rgba(7,55,107,.97) 49%, rgba(7,55,107,.67) 72%, rgba(7,55,107,.05) 100%); }
.emra-audience-card h2, .emra-audience-card .uk-h2 { max-width: 315px; color: var(--emra-navy); font-size: clamp(1.8rem, 2.65vw, 2.6rem); font-weight: 850; line-height: 1.06; text-transform: uppercase; letter-spacing: -.04em; }
.emra-audience-card--business h2, .emra-audience-card--business .uk-h2 { color: #fff; }
.emra-audience-card .emra-audience-label { max-width: 310px; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.emra-audience-card--business .emra-audience-label { color: #fff; }
.emra-audience-card h2::before { content: ""; display: inline-block; width: 5px; height: 1.2em; background: var(--emra-yellow); margin-right: 13px; border-radius: 4px; vertical-align: -.13em; }
.emra-audience-card .emra-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-top: 24px; }
.emra-audience-card .emra-actions a { color: var(--emra-navy); background: rgba(255,255,255,.95); border: 1px solid rgba(7,31,73,.13); border-radius: 10px; padding: 14px 12px; min-width: 110px; flex: 1; font-size: 13px; font-weight: 750; text-align: center; text-decoration: none; }
.emra-audience-card .emra-actions a:hover { background: var(--emra-yellow); }

/* --- VENTES, ACTUALITES --- */
.emra-news-section { padding-top: 35px; padding-bottom: 30px; }
.emra-news-column-title, .emra-news-column-title h3 { color: var(--emra-navy); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 800; line-height: 1.2; }
.emra-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.emra-tiles--agenda { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emra-tiles--groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emra-tile { background: #fff; border: 1px solid var(--emra-border); border-radius: 11px; overflow: hidden; box-shadow: 0 2px 7px rgba(7,31,73,.025); min-width: 0; }
.emra-tile__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3eee5; }
.emra-tile__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.emra-tile:hover .emra-tile__image { transform: scale(1.035); }
.emra-tile__placeholder { display: grid; place-items: center; height: 100%; font-weight: 800; color: #59718d; }
.emra-tile__body { padding: 15px 16px 17px; }
.emra-tile__title { font-size: clamp(1rem, 1.4vw, 1.22rem); font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -.025em; }
.emra-tile__title a { color: var(--emra-navy); text-decoration: none; }
.emra-tile__title a:hover { text-decoration: underline; }
.emra-tile__tag { color: #47536a; font-size: 12px; font-weight: 750; margin: 0 0 9px; }
.emra-tile__meta { color: #4d5970; font-size: 13px; margin: 5px 0 0; }
.emra-empty { color: #596475; margin: 0; font-style: italic; }

/* --- CHIFFRES : données réseau régional, PAS chiffres EMRA --- */
.emra-stats { background: var(--emra-paper); padding: 38px 0 32px; }
.emra-stats__items { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
.emra-stat { display: flex; flex-direction: column; align-items: center; padding: 7px 12px; text-align: center; border-right: 1px solid #d0d1d3; }
.emra-stat:last-child { border-right: 0; }
.emra-stat strong { display: block; color: var(--emra-navy); font-size: clamp(1.6rem, 2.55vw, 2.6rem); line-height: 1.08; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.emra-stat span { display: block; margin-top: 9px; color: var(--emra-ink); font-size: 13px; line-height: 1.28; }
.emra-stats__source { margin: 19px 0 0; text-align: right; color: #626875; font-size: 11px; font-style: italic; }

/* --- SECTIONS OPTIONNELLES BAS DE PAGE --- */
.emra-region { background: linear-gradient(120deg, #f8f5f0 0%, #fff 70%); }
.emra-region__text { max-width: 610px; }
.emra-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.emra-step { padding: 22px; text-align: center; border-right: 1px solid #e2d5b5; color: var(--emra-navy); font-weight: 750; }
.emra-step:last-child { border-right: none; }
.emra-contact-banner { background: var(--emra-navy); color: #fff; }
.emra-contact-banner h2 { color: #fff; }
.emra-footer { background: #051b3b; color: #e5eafa; padding: 52px 0 24px; }
.emra-footer h3, .emra-footer a { color: #fff; }
.emra-footer a:hover { color: var(--emra-yellow); }

/* --- FORMULAIRE NATIF --- */
.emra-form { display: grid; gap: 17px; max-width: 780px; }
.emra-form__row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.emra-form label { display: block; font-weight: 700; color: var(--emra-navy); }
.emra-form input:not([type=checkbox]), .emra-form select, .emra-form textarea { box-sizing: border-box; width: 100%; margin-top: 7px; border: 1px solid #bcc5d1; border-radius: 6px; background: #fff; color: var(--emra-ink); font: inherit; padding: 11px 13px; }
.emra-form input:focus-visible, .emra-form textarea:focus-visible, .emra-form select:focus-visible { outline: 3px solid var(--emra-yellow); outline-offset: 2px; }
.emra-form__check { display: flex !important; align-items: flex-start; gap: 11px; font-weight: 400 !important; }
.emra-form__honeypot { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.emra-form button { justify-self: start; cursor: pointer; }
.emra-notice { padding: 13px 15px; border-radius: 6px; }
.emra-notice--ok { background: #edf8f0; border: 1px solid #92c29c; }
.emra-notice--error { background: #fff1f1; border: 1px solid #de9b9b; }

/* --- TABLETTES --- */
@media (max-width: 1199px) {
  :root { --emra-space-section: 48px; }
  .emra-stats__items { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 20px; }
  .emra-stat:nth-child(3n) { border-right: 0; }
  .emra-hero { background-position: 60% center !important; }
  .emra-hero::before { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 37%,rgba(255,255,255,.05) 85%); }
}
/* --- MOBILES --- */
@media (max-width: 767px) {
  :root { --emra-space-section: 37px; }
  .emra-hero { min-height: 490px; background-position: 58% top !important; }
  .emra-hero::before { background: linear-gradient(0deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.99) 35%,rgba(255,255,255,.6) 65%,rgba(255,255,255,.02) 100%); }
  .emra-hero .uk-container { min-height: 490px; justify-content: end; padding-bottom: 35px; }
  .emra-hero__title, .emra-hero__title h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .emra-hero__lead { font-size: 16px; }
  .emra-audience-section { padding-top: 18px; }
  .emra-audience-card { min-height: 250px; padding: 20px; }
  .emra-audience-card h2, .emra-audience-card .uk-h2 { font-size: 1.8rem; }
  .emra-audience-card .emra-actions { flex-direction: column; }
  .emra-audience-card .emra-actions a { flex: auto; }
  .emra-tiles, .emra-tiles--agenda, .emra-tiles--groups { grid-template-columns: 1fr; }
  .emra-stats__items { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .emra-stat, .emra-stat:nth-child(3n) { border-right: 1px solid #d0d1d3; }
  .emra-stat:nth-child(2n) { border-right: 0; }
  .emra-stat strong { font-size: 1.85rem; }
  .emra-stats__source { text-align: left; }
  .emra-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .emra-step:nth-child(2n) { border-right: 0; }
  .emra-form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   AJOUTS DU DEPLOIEMENT (emra / site-internet, F-004, 2026-11-07)
   Logo texte en attendant le logo officiel, page d'attente, pages de
   contact et formulaires Contact Form 7. Ne concerne que le site d'EMRA
   (theme enfant active sur ce seul site).
   ===================================================================== */

/* --- LOGO (reglage YOOtheme logo.text : symbole Emmaus + nom) --- */
.uk-logo:has(.emra-logo) { text-decoration: none; }
.emra-logo { display: inline-flex; align-items: center; gap: 12px; }
.emra-logo__img { width: 54px; height: 54px; flex: none; }
.emra-logo__textes { display: flex; flex-direction: column; line-height: 1.08; }
.emra-logo__nom { color: var(--emra-navy); font-weight: 850; font-size: 21px; letter-spacing: -.02em; }
.emra-logo__lieu { color: var(--emra-navy); font-weight: 800; font-size: 17px; letter-spacing: -.015em; }
.emra-logo__sous { margin-top: 4px; color: #566579; font-weight: 600; font-size: 12.5px; letter-spacing: 0; }

/* --- PAGE D'ATTENTE (accueil) --- */
.emra-attente { --emra-gap: 20px; }
.emra-attente__intro { position: relative; overflow: hidden; background: var(--emra-paper); border-radius: var(--emra-radius); padding: clamp(24px, 4vw, 48px); margin-bottom: var(--emra-gap); }
.emra-attente__intro::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,0,.35) 0%, rgba(255,208,0,0) 70%); pointer-events: none; }
.emra-attente__intro--photo { background-image: url(/wp-content/uploads/2020/03/emmaus_RA.jpg); min-height: 320px; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: 75% center; background-repeat: no-repeat; }
.emra-attente__intro--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #f8f5f0 0%, rgba(248,245,240,.98) 36%, rgba(248,245,240,.82) 52%, rgba(248,245,240,.15) 78%, rgba(248,245,240,0) 100%); }
.emra-attente__intro--photo::after { display: none; }
.emra-attente__intro--photo > * { position: relative; z-index: 1; }
.emra-attente__sur { margin: 0 0 10px; color: var(--emra-blue); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.emra-attente__titre { margin: 0; color: var(--emra-navy); font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 850; line-height: 1.08; letter-spacing: -.045em; max-width: 720px; }
.emra-attente__titre::after { content: ""; display: block; width: 150px; height: 6px; margin-top: 12px; background: var(--emra-yellow); border-radius: 50%; transform: rotate(-3deg); }
.emra-attente__lead { margin: 18px 0 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--emra-ink); }
.emra-attente__portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--emra-gap); }
.emra-attente .emra-audience-card--public { background-image: url(/wp-content/uploads/2020/03/salonpourune.jpg); }
.emra-attente .emra-audience-card--business { background-image: url(/wp-content/uploads/2021/03/nestl-.jpg); }
.emra-attente .emra-audience-card { min-height: 0; display: flex; flex-direction: column; }
.emra-attente .emra-audience-card h2 { margin: 0; }
.emra-attente .emra-audience-card p { margin: 10px 0 0; max-width: 430px; }
.emra-attente .emra-audience-card--business p { color: #fff; }
.emra-attente .emra-audience-card .emra-actions { margin-top: auto; padding-top: 22px; }
.emra-attente .emra-audience-card .emra-actions a { flex: 0 1 auto; min-width: 220px; padding: 14px 22px; font-size: 15px; font-weight: 800; background: var(--emra-yellow); border-color: var(--emra-yellow); color: var(--emra-navy); }
.emra-attente .emra-audience-card .emra-actions a::after { content: "  →"; }
.emra-attente .emra-audience-card .emra-actions a:hover { background: #f0c100; }
.emra-attente__infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--emra-gap); margin-top: var(--emra-gap); }
.emra-attente__bloc { background: #fff; border: 1px solid var(--emra-border); border-radius: 11px; padding: 18px 20px; }
.emra-attente__bloc h3, .emra-attente__legal h3 { margin: 0 0 8px; color: var(--emra-navy); font-size: 1.05rem; font-weight: 800; }
.emra-attente__bloc p { margin: 0; }
.emra-attente__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--emra-border); font-size: 13.5px; color: #4d5970; }
.emra-attente__legal h3 { margin-top: 14px; font-size: .95rem; }
.emra-attente__legal p { margin: 0 0 8px; max-width: 900px; }

/* --- PAGES DE CONTACT ET FORMULAIRES CONTACT FORM 7 --- */
.emra-contact-intro { max-width: 760px; font-size: 17px; line-height: 1.5; }
.emra-retour { margin-top: 22px; }
.emra-retour a { font-weight: 800; color: var(--emra-blue); text-decoration: none; }
.emra-retour a::before { content: "← "; }
.wpcf7-form { max-width: 780px; }
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form label { display: block; font-weight: 700; color: var(--emra-navy); }
.wpcf7-form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7-form select, .wpcf7-form textarea { box-sizing: border-box; width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid #bcc5d1; border-radius: 6px; background: #fff; color: var(--emra-ink); font: inherit; font-weight: 400; }
.wpcf7-form input:focus-visible, .wpcf7-form select:focus-visible, .wpcf7-form textarea:focus-visible { outline: 3px solid var(--emra-yellow); outline-offset: 2px; }
.wpcf7-form input[type=submit] { min-height: 46px; padding: 0 28px; border: 1px solid var(--emra-yellow); border-radius: 8px; background: var(--emra-yellow); color: var(--emra-navy); font-weight: 800; font-size: 15px; cursor: pointer; }
.wpcf7-form input[type=submit]:hover { background: #f0c100; }
.wpcf7-form .wpcf7-response-output { border-radius: 6px; padding: 12px 14px; }

/* --- LOGO : casse normale (le style de barre de YOOtheme met en capitales) --- */
.uk-logo .emra-logo, .uk-logo .emra-logo * { text-transform: none; }

@media (max-width: 767px) {
  .emra-logo { gap: 8px; }
  .emra-logo__img { width: 40px; height: 40px; }
  .emra-logo__nom { font-size: 16px; }
  .emra-logo__lieu { font-size: 13px; }
  .emra-logo__sous { display: none; }
  .emra-attente__portes, .emra-attente__infos { grid-template-columns: 1fr; }
  .emra-attente__intro--photo { min-height: 420px; justify-content: flex-end; background-position: 60% top; }
  .emra-attente__intro--photo::before { background: linear-gradient(0deg, #f8f5f0 0%, rgba(248,245,240,.98) 45%, rgba(248,245,240,.55) 70%, rgba(248,245,240,0) 100%); }
  .emra-attente .emra-audience-card .emra-actions a { min-width: 0; width: 100%; }
}

/* --- PIED : « Nos actions » et bandeau (F-005 v3, elements natifs YOOtheme + classes) --- */
.emra-actions-section { border-top: 1px solid var(--emra-border); }
.emra-actions-section .emra-section-title { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.emra-picto, .emra-picto svg, .emra-picto .uk-icon { color: var(--emra-blue); }
.emra-action-titre { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--emra-navy); text-transform: none; letter-spacing: 0; }

/* --- « Nos actions » en bas de la page d'attente, au-dessus du pied (F-005) --- */
.emra-actions-page { display: grid; grid-template-columns: 1fr 4fr; gap: 24px; align-items: center; margin-top: 36px; padding: 28px 0 8px; border-top: 1px solid var(--emra-border); }
.emra-actions-page h2 { margin: 0; }
.emra-actions-page ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emra-actions-page li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 14px; text-align: center; border-left: 1px solid var(--emra-border); }
.emra-actions-page li .emra-action-titre { max-width: 150px; }
.emra-actions-page li:first-child { border-left: 0; }
@media (max-width: 767px) {
  .emra-actions-page { grid-template-columns: 1fr; }
  .emra-actions-page ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emra-actions-page li:nth-child(3) { border-left: 0; }
}

/* --- Mobile : « Nos actions » en liste compacte ; nom du bandeau du pied (F-005, retour de Gwenael 15:57) --- */
.emra-pied-nom, .emra-pied-nom .uk-h4, .emra-pied-nom h4 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; font-weight: 800; line-height: 1.15; text-transform: none; letter-spacing: 0; }
@media (max-width: 767px) {
  .emra-actions-page { gap: 10px; padding: 20px 0 4px; margin-top: 24px; }
  .emra-actions-page h2 { font-size: 1.5rem; }
  .emra-actions-page ul { grid-template-columns: 1fr; }
  .emra-actions-page li { flex-direction: row; align-items: center; gap: 14px; padding: 10px 0; text-align: left; border-left: 0; border-top: 1px solid var(--emra-border); }
  .emra-actions-page li:first-child { border-top: 0; }
  .emra-actions-page li .emra-picto svg { width: 28px; height: 28px; }
  .emra-actions-page li .emra-action-titre { font-size: 14px; font-weight: 700; max-width: none; }
  .emra-pied-nom, .emra-pied-nom .uk-h4, .emra-pied-nom h4 { font-size: 15px; }
}

/* --- Page du constructeur (F-005, mise en page YOOtheme) : titres secondaires a la charte, cartes et bandeau --- */
.emra-h, .emra-h h3, .emra-h h4, .emra-h .uk-h4, .emra-h .uk-h5 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 800; color: var(--emra-navy); text-transform: none; letter-spacing: 0; }
.emra-h--meta, .emra-h--meta * { color: var(--emra-blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.emra-hero.uk-section { padding-top: 48px; padding-bottom: 48px; }
.emra-hero > .uk-section.uk-section { padding-top: 70px; padding-bottom: 70px; }
.emra-hero .uk-container { min-height: 0; display: block; }
.emra-hero__title.uk-h1, .emra-hero__title { color: var(--emra-navy); }
.emra-audience-card.uk-tile, .emra-audience-card { padding: 28px; border-radius: var(--emra-radius); }
.emra-audience-card .uk-button-default.uk-button { background: var(--emra-yellow); color: var(--emra-navy); border-color: var(--emra-yellow); border-radius: 8px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.emra-audience-card .uk-button-default.uk-button:hover { background: #f0c100; }
.emra-audience-card--business p, .emra-audience-card--business .uk-text-lead { color: #fff; }
.emra-legal p { font-size: 13.5px; color: #4d5970; }
@media (max-width: 767px) { .emra-hero.uk-section { padding-top: 24px; padding-bottom: 24px; } }

/* --- Lettre d'information : formulaire AcyMailing (code court id 1) fondu dans le bandeau (F-005, 16:25) ;
       AcyMailing injecte des styles a identifiant : memes selecteurs, avec !important --- */
#acym_fulldiv_formAcym1.acym__subscription__form__shortcode { height: auto !important; max-width: none !important; background: transparent !important; color: #fff !important; padding: 0 !important; margin: 0 !important; display: block !important; text-align: left !important; }
#acym_fulldiv_formAcym1 .acym__subscription__form__fields { display: flex !important; flex-wrap: wrap; align-items: center !important; justify-content: flex-start !important; gap: 8px; }
#acym_fulldiv_formAcym1 .acym__subscription__form__fields > * { margin: 0 !important; }
#acym_fulldiv_formAcym1 .acym__subscription__form__fields .onefield { width: auto !important; flex: 1 1 200px; min-width: 0; }
#acym_fulldiv_formAcym1 .acym__subscription__form__fields .onefield input[type="email"] { width: 100% !important; margin: 0 !important; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff; border-radius: 8px; background: #fff; color: var(--emra-ink); font: inherit; }
#acym_fulldiv_formAcym1 .acym__subscription__form__fields .onefield input[type="email"]:focus-visible { outline: 3px solid var(--emra-yellow); outline-offset: 2px; }
#acym_fulldiv_formAcym1 .acym__subscription__form__lists { display: none !important; }
#acym_fulldiv_formAcym1 .acym__subscription__form__button { display: block !important; flex: 0 0 auto; }
#acym_fulldiv_formAcym1 .acym__subscription__form__button button { background-color: var(--emra-yellow) !important; color: var(--emra-navy) !important; border: 1px solid var(--emra-yellow) !important; border-radius: 8px !important; padding: 0 22px !important; min-height: 44px; font-weight: 800; font-size: 14px; cursor: pointer; }
#acym_fulldiv_formAcym1 .acym__subscription__form__button button:hover { background-color: #f0c100 !important; }
#acym_fulldiv_formAcym1 .acym__field__error__block, #acym_fulldiv_formAcym1 .responseContainer { color: #fff; font-size: 13px; }
.emra-pied-nom + *, .uk-light .emra-newsletter a { color: #fff; }
.emra-h--clair, .emra-h--clair * { color: #fff !important; font-size: 17px; }

/* --- Constructeur YOOtheme : les images sont sur des elements internes (section .uk-section, colonne .uk-tile) ;
       degrades du kit reportes a ce niveau (F-005, 16:09) --- */
.emra-hero { background: none !important; min-height: 0; }
.emra-hero::before { display: none; }
.emra-hero > .uk-section { position: relative; isolation: isolate; min-height: 480px; background-position: center center !important; border-radius: var(--emra-radius); overflow: hidden; background-color: #f4f0e9; }
.emra-hero > .uk-section::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 28%, rgba(255,255,255,.80) 42%, rgba(255,255,255,0) 63%); }
.emra-hero > .uk-section > * { position: relative; z-index: 1; }
.emra-audience-card { padding-top: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; background: none !important; box-shadow: none; overflow: visible; isolation: auto; min-height: 0; }
.uk-grid-column-medium > .emra-audience-card { padding-left: 40px; } /* gouttiere « medium » de YOOtheme, que le kit ecrasait */
.emra-audience-card::before { display: none; }
.emra-audience-card .uk-tile { position: relative; isolation: isolate; overflow: hidden; min-height: 280px; padding: 28px !important; border-radius: var(--emra-radius); box-shadow: var(--emra-shadow); }
.emra-audience-card .uk-tile::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.emra-audience-card--public .uk-tile { background-color: #f8f3ea; }
.emra-audience-card--public .uk-tile::before { background: linear-gradient(90deg, #f8f3ea 1%, rgba(248,243,234,.99) 43%, rgba(248,243,234,.56) 70%, rgba(248,243,234,.02) 100%); }
.emra-audience-card--business .uk-tile { background-color: var(--emra-blue); }
.emra-audience-card--business .uk-tile::before { background: linear-gradient(90deg, #07376b 0%, rgba(7,55,107,.97) 49%, rgba(7,55,107,.67) 72%, rgba(7,55,107,.05) 100%); }
.emra-audience-card .uk-tile > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .emra-hero > .uk-section { min-height: 420px; }
  .emra-hero > .uk-section::before { background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.99) 35%, rgba(255,255,255,.6) 65%, rgba(255,255,255,.02) 100%); }
  .emra-audience-card .uk-tile { min-height: 250px; padding: 20px !important; }
}

/* --- F-007 (07/11) : accueil en brouillon, sections « mouvement », « agenda et actualites », « reseau ».
       Classes nouvelles seulement : rien ne change sur les pages existantes --- */
.emra-mouvement.uk-section { position: relative; isolation: isolate; overflow: hidden; background: var(--emra-paper); padding-bottom: 130px; }
.emra-mouvement.uk-section::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%23dfe7f1' d='M0 112 L70 96 L130 102 L200 70 L260 86 L330 54 L390 76 L460 60 L530 92 L610 72 L690 96 L770 64 L840 82 L910 50 L990 80 L1070 62 L1150 90 L1230 70 L1310 94 L1390 78 L1440 92 V160 H0 Z'/%3E%3Cpath fill='%23c7d4e6' d='M0 134 L90 120 L160 128 L240 106 L320 124 L410 112 L490 132 L570 116 L660 130 L750 110 L840 128 L930 116 L1020 134 L1110 118 L1200 130 L1290 112 L1380 126 L1440 120 V160 H0 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.emra-section-title--centre::after { margin-left: auto; margin-right: auto; }
.emra-mouvement__lead { font-size: 17px; color: var(--emra-ink); }
.emra-agenda-actus .emra-carte-une .emra-tiles { grid-template-columns: 1fr; }
.emra-agenda-actus .emra-carte-une .emra-tile { box-shadow: var(--emra-shadow); }
.emra-agenda-actus .emra-carte-une .emra-empty { display: flex; align-items: center; justify-content: center; min-height: 190px; padding: 22px; text-align: center; background: var(--emra-paper); border: 1px dashed #d3c7a7; border-radius: 11px; }
.emra-reseau.uk-section { background: linear-gradient(120deg, #f8f5f0 0%, #fff 70%); }
.emra-reseau__photo { overflow: hidden; border-radius: var(--emra-radius) 48% 48% var(--emra-radius) / var(--emra-radius) 50% 50% var(--emra-radius); }
.emra-reseau__photo img { display: block; width: 100%; height: 330px; object-fit: cover; transform: scale(1.12); } /* cadre blanc de l'image d'origine masque */
.emra-reseau__schema img { display: block; width: 100%; height: auto; border-radius: var(--emra-radius); box-shadow: var(--emra-shadow); }
@media (min-width: 960px) {
  .emra-agenda-actus__droite { position: relative; }
  .emra-agenda-actus__droite::before { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; border-left: 1px solid var(--emra-border); }
  .emra-agenda-actus .emra-agenda-actus__droite { padding-left: 52px; } /* 07/11 19:3x : texte colle au trait (gouttiere de 20 px) ; 32 px d'air apres le trait */
  .emra-agenda-actus .uk-grid > :first-child { padding-left: 52px; } /* « Nos horaires » : meme decalage de 32 px, par symetrie (demande de Gwenael) */
}
@media (max-width: 959px) {
  .emra-reseau__photo { border-radius: var(--emra-radius); }
  .emra-reseau__photo img { height: 240px; }
}
@media (max-width: 767px) {
  .emra-mouvement.uk-section { padding-bottom: 100px; }
  .emra-mouvement.uk-section::after { height: 110px; }
}

/* --- F-007 (07/11, 2e demande) : chiffres en elements natifs (une colonne par chiffre) ; carte « Nos horaires » --- */
.emra-mouvement .emra-chiffre__valeur { color: var(--emra-navy); font-size: clamp(1.6rem, 2.55vw, 2.6rem); font-weight: 700; line-height: 1.08; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.emra-mouvement .emra-chiffre__libelle { color: var(--emra-ink); font-size: 13px; line-height: 1.28; }
.emra-mouvement .emra-chiffre__libelle p { margin: 0; }
.emra-mouvement .uk-grid-divider > :not(.uk-first-column)::before { border-left-color: #d0d1d3; }
.emra-mouvement .uk-grid-divider.uk-grid-stack > .uk-grid-margin::before { border-top: 0; }
.emra-mouvement .emra-stats__source { text-align: right; }
.emra-horaires-carte > .uk-card { border-radius: 11px; box-shadow: var(--emra-shadow); }
.emra-horaires-carte .emra-picto { color: #c39900; }
.emra-horaires-carte .uk-list > li { color: var(--emra-ink); }
.emra-horaires-carte .uk-list strong { color: var(--emra-navy); }
@media (max-width: 767px) {
  .emra-mouvement .emra-stats__source { text-align: left; }
}

/* --- F-007 (07/11, 19:1x) : site en construction, menus reserves aux administrateurs (inc/menu-admins.php) ;
       pour un visiteur, le bouton du menu mobile n'ouvrirait que la recherche : masque --- */
body:not(.logged-in) .tm-header-mobile .uk-navbar-toggle { display: none !important; }

/* --- F-007 (07/11) : sous-menus (bureau) et menu mobile a la charte ; le style de l'ancien theme
       (majuscules de 11 px, 26 px de vide par lien, panneau mobile bleu-violet) est remplace --- */
.tm-header .uk-navbar-nav > li.uk-parent > a { padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23071f49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 10px no-repeat; } /* fleche en fond : ::before est pris par le trait de survol du theme */
.tm-header .uk-navbar-dropdown { padding: 10px; width: auto; min-width: 270px; background: #fff; border: 1px solid var(--emra-border); border-radius: var(--emra-radius); box-shadow: 0 18px 40px rgba(7, 31, 73, .14); }
.tm-header .uk-navbar-dropdown::before { content: ""; position: absolute; top: -1px; left: 24px; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--emra-yellow); }
.tm-header .uk-navbar-dropdown-nav > li + li { margin-top: 2px; }
.tm-header .uk-navbar-dropdown-nav > li > a { position: relative; display: block; padding: 11px 40px 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--emra-navy); transition: background-color .15s ease, color .15s ease; }
.tm-header .uk-navbar-dropdown-nav > li > a::first-letter { text-transform: uppercase; }
.tm-header .uk-navbar-dropdown-nav > li > a::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translate(-6px, -50%); opacity: 0; color: #c39900; transition: opacity .15s ease, transform .15s ease; }
.tm-header .uk-navbar-dropdown-nav > li > a[target="_blank"]::after { content: "↗"; opacity: .5; transform: translate(0, -50%); }
.tm-header .uk-navbar-dropdown-nav > li > a:hover, .tm-header .uk-navbar-dropdown-nav > li > a:focus-visible { background: var(--emra-paper); color: var(--emra-blue); }
.tm-header .uk-navbar-dropdown-nav > li > a:hover::after, .tm-header .uk-navbar-dropdown-nav > li > a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.tm-header .uk-navbar-dropdown-nav > li.uk-active > a { background: var(--emra-paper); box-shadow: inset 3px 0 0 var(--emra-yellow); }
#tm-dialog-mobile .uk-offcanvas-bar { background: var(--emra-navy); padding: 28px 24px; }
#tm-dialog-mobile .uk-nav-default > li > a { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
#tm-dialog-mobile .uk-nav-default > li.uk-active > a, #tm-dialog-mobile .uk-nav-default > li > a:hover { color: var(--emra-yellow); }
#tm-dialog-mobile .uk-nav-sub { margin: 6px 0 10px 2px; padding: 2px 0 2px 14px; border-left: 2px solid var(--emra-yellow); }
#tm-dialog-mobile .uk-nav-sub a { display: block; padding: 7px 0; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .85); }
#tm-dialog-mobile .uk-nav-sub a::first-letter { text-transform: uppercase; }
#tm-dialog-mobile .uk-nav-sub a:hover, #tm-dialog-mobile .uk-nav-sub .uk-active > a { color: var(--emra-yellow); }
