/*
Theme Name: lemeon_refonte
Description: Refonte graphique de l'ARNF (thème enfant de lemeon). Palette et typographie de la maquette validée, contenu 100 % WordPress.
Author: Gilles Helleu
Template: lemeon
Version: 1.0.0
Text Domain: lemeon_refonte
*/

/* ==========================================================================
   Palette et typographie de la maquette validée (palette d'origine du thème lemeon_child)
   ========================================================================== */
:root {
  --navy: #2C3E6F;
  --blue: #002DB3;
  --blue-light: #809FFF;
  --gray: #EEEEEE;
  --ink: #333333;
  --white: #FFFFFF;
  --navy-deep: #22315A;
  --navy-tint: #EEF1F7;
  --navy-line: #D5DBE8;
  --muted: #565C6B;

  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-menu: 'Manrope', 'Instrument Sans', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(34, 49, 90, .06), 0 8px 24px rgba(34, 49, 90, .08);
  --wrap: 1180px;
  --measure: 68ch;
  --header-h: 84px;
}

/* ---------- Base ---------- */
/* Neutralise les largeurs maximales du thème parent (960 px) : tout est en pleine largeur, le contenu est borné par .wrap */
.arnf-refonte .site-header, .arnf-refonte .site-footer, body.arnf-refonte main.site-main {
  max-width: none; width: 100%; margin: 0; padding: 0; display: block; float: none;
}
.arnf-refonte .site-header { position: fixed; }
body.arnf-refonte main.site-main { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body.arnf-refonte {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  padding-top: var(--header-h);
  overflow-x: clip;
}
.arnf-refonte img { max-width: 100%; height: auto; }
.arnf-refonte a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.arnf-refonte a:hover { color: var(--blue); text-decoration-thickness: 2px; }
.arnf-refonte :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.arnf-refonte h1, .arnf-refonte h2, .arnf-refonte h3, .arnf-refonte h4 {
  font-family: var(--font-title); font-weight: 400; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.005em;
}
.arnf-refonte h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); }
.arnf-refonte h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); }
.arnf-refonte h3 { font-size: 1.35rem; }
.arnf-refonte h4 { font-size: 1.15rem; }
.arnf-refonte p { margin: 0 0 1.1em; }
.arnf-refonte p:empty { display: none; }
.arnf-refonte .screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.arnf-refonte .skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 200; background: var(--white); padding: .7rem 1rem; clip: auto; width: auto; height: auto; margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.admin-bar .site-header { top: 32px; }
.eyebrow { display: inline-block; font-family: var(--font-menu); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.3rem; line-height: 1.6; }

/* ---------- Boutons ---------- */
.btn, .wp-block-button__link, .wpcf7 input[type=submit], .search-submit, .tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); font: 600 1.05rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.arnf-refonte a.btn, .arnf-refonte a.wp-block-button__link { color: var(--white); }
.arnf-refonte a.tool { color: var(--navy); }
.arnf-refonte .btn:hover, .arnf-refonte .wp-block-button__link:hover, .wpcf7 input[type=submit]:hover, .search-submit:hover {
  background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white);
}
.tool { background: transparent; color: var(--navy); min-height: 44px; font-size: 1rem; }
.arnf-refonte .tool:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "\00a0→"; display: inline-block; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.arnf-refonte .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); }

/* ==========================================================================
   En-tête et menu principal (menu droit : trait fin, police Manrope 500, sans pilule)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--navy); box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand .custom-logo-link { display: block; line-height: 0; }
.brand .custom-logo, .brand img { width: 250px; height: auto; }
.brand-name { color: var(--white); font-family: var(--font-title); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 1.9rem; }
.nav-list > li { position: relative; }

/* Entrées de premier niveau : texte fin, trait droit de 2 px qui se dessine de gauche à droite */
.nav-list > li > a, .nav-list > li > .nav-top {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 0; margin: 0; background: none; border: 0; border-radius: 0; cursor: pointer;
  color: var(--white); font: 500 .97rem/1.2 var(--font-menu); letter-spacing: .02em; text-decoration: none;
}
.nav-list > li > a::before, .nav-list > li > .nav-top::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05rem; height: 2px; background: var(--blue-light);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.nav-list > li > a:hover::before, .nav-list > li > .nav-top:hover::before,
.nav-list > li:focus-within > a::before, .nav-list > li:focus-within > .nav-top::before,
.nav-list > li:hover > .nav-top::before, .nav-list > li.is-open > .nav-top::before,
.nav-list > li.current-menu-item > a::before, .nav-list > li.current-menu-ancestor > .nav-top::before,
.nav-list > li.current-menu-parent > .nav-top::before { transform: scaleX(1); }
.nav-list > li > a:hover, .nav-list > li > .nav-top:hover { color: var(--white); }
.nav-list > li > .nav-top:focus-visible, .nav-list > li > a:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 5px; border-radius: 0; }
/* Chevron fin et petit */
.nav-list > li > .nav-top::after {
  content: ""; width: .36em; height: .36em; margin-top: -.18em;
  border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; transform: rotate(45deg);
  opacity: .75; transition: transform .25s ease;
}
.nav-list > li:hover > .nav-top::after, .nav-list > li.is-open > .nav-top::after { transform: rotate(225deg); margin-top: .1em; }

/* Sous-menus : angles presque droits, trait d'accent en haut, ombre légère, fondu court */
.nav-list .sub-menu {
  position: absolute; left: -1rem; top: calc(100% + 8px); min-width: 250px; padding: .4rem 0;
  background: var(--white); border-top: 2px solid var(--blue-light); border-radius: 0 0 2px 2px;
  box-shadow: 0 10px 28px rgba(20, 30, 60, .16);
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
}
.nav-list .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-list > li:hover > .sub-menu, .nav-list > li:focus-within > .sub-menu, .nav-list > li.is-open > .sub-menu { opacity: 1; visibility: visible; }
.nav-list .sub-menu a {
  display: block; padding: .6rem 1.1rem; border-radius: 0; color: var(--ink); text-decoration: none;
  font: 500 .97rem/1.35 var(--font-menu); letter-spacing: .01em;
  box-shadow: inset 0 0 0 var(--navy); transition: background .2s, color .2s, box-shadow .2s;
}
.nav-list .sub-menu a:hover, .nav-list .sub-menu a:focus-visible, .nav-list .sub-menu .current-menu-item > a {
  background: var(--navy-tint); color: var(--navy); box-shadow: inset 2px 0 0 var(--navy);
}
.nav-list .sub-menu a:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* Recherche (extension Ivory Search) */
.nav-list .astm-search-menu { display: flex; }
.nav-list .astm-search-menu > a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--white); }
.nav-list .astm-search-menu > a::before { display: none; }
.nav-list .astm-search-menu svg { width: 21px; height: 21px; fill: currentColor; }
.nav-list .astm-search-menu > a:hover { background: rgba(255, 255, 255, .1); }

/* Bouton « Nous contacter » : rectangle à angles faibles, accordé au trait droit */
.nav-cta {
  display: inline-flex; align-items: center; min-height: 42px; padding: .5rem 1.15rem; border-radius: 3px;
  background: var(--white); color: var(--navy); border: 0; text-decoration: none;
  font: 600 .95rem/1 var(--font-menu); letter-spacing: .02em; transition: background .2s, box-shadow .2s;
}
.arnf-refonte .nav-cta:hover { background: var(--navy-tint); color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue-light); }
.arnf-refonte .nav-cta:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.burger { display: none; }

/* ---------- En-tête de page ---------- */
.page-head { background: var(--navy-tint); padding: 2.2rem 0 2.6rem; border-bottom: 1px solid var(--navy-line); }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 1.1rem !important; }
.crumbs a { color: var(--muted); }
.crumbs .breadcrumb_last, .crumbs [aria-current] { color: var(--ink); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead, .page-head .archive-description { max-width: 60ch; margin: 0; }
.entry-meta { color: var(--muted); margin: 0; font-size: 1rem; }
.page-head .search-form { margin-top: 1.4rem; max-width: 560px; }
.page-body { padding: clamp(2.2rem, 1.5rem + 2vw, 3.6rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.home .page-body { padding: 0; }

/* ---------- Contenu : colonne de lecture, blocs larges ---------- */
.page-content::after { content: ""; display: table; clear: both; }
.page-content > :where(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, pre, .wp-block-file, .wp-block-separator) { max-width: var(--measure); }
.page-content h1 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); margin-top: 1.4em; }
.page-content > h1:first-child, .page-content > h2:first-child { margin-top: 0; }
.page-content h2 { margin-top: 1.6em; }
.page-content ul, .page-content ol { padding-left: 1.3em; }
.page-content li { margin-bottom: .45em; }
.page-content li::marker { color: var(--navy); }
.page-content img { border-radius: var(--radius); }
.page-content .wp-block-image, .page-content figure { margin: 1.8rem 0; }
.page-content figcaption { font-size: .98rem; color: var(--muted); margin-top: .6rem; }
.page-content .alignleft { float: left; max-width: 42%; margin: .3rem 2rem 1.2rem 0; }
.page-content .alignright { float: right; max-width: 42%; margin: .3rem 0 1.2rem 2rem; }
.page-content .aligncenter { margin-inline: auto; }
.page-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--navy-line); margin: 2.2rem 0; }
.page-content blockquote, .wp-block-quote {
  margin: 2.2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 4px solid var(--navy);
  font-family: var(--font-title); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); color: var(--navy); line-height: 1.5;
}
.page-content blockquote p { margin-bottom: .6em; }
.page-content blockquote cite { display: block; font: 400 1rem/1.4 var(--font-body); font-style: normal; color: var(--muted); }
.page-content .wp-block-columns { gap: clamp(1.5rem, 1rem + 2vw, 3rem); margin-bottom: 1.8rem; }
.page-content .wp-block-columns img { width: 100%; }
.page-content iframe { width: 100%; border: 0; border-radius: var(--radius); }
.page-content .wp-block-gallery { gap: 1rem; }
.page-content .wp-block-gallery img { border-radius: var(--radius); }
.page-content a.wp-block-button__link, .page-content .wp-block-button__link { color: var(--white); text-decoration: none; }
.wp-block-buttons { gap: .8rem; }
.page-content .wp-block-table { max-width: 560px; margin: 1.2rem 0 1.8rem; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.page-content th, .page-content td { padding: .8rem .3rem; text-align: left; border: 0; border-bottom: 1px solid var(--navy-line); background: transparent; }
.page-content tbody tr:nth-child(odd) td { background: transparent; }
.page-content td:last-child:not(:first-child) { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.page-content td:first-child { text-transform: capitalize; }
.page-content .wp-block-file { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--navy-tint); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.5rem 0; }
.page-content .wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.page-content .wp-block-file__button { min-height: 44px; font-size: 1rem; padding: .5rem 1.2rem; margin: 0; }
.post-tools { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.4rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--navy-line); }
.tag-links a { display: inline-block; margin: 0 .4rem .4rem 0; padding: .2rem .8rem; border: 1px solid var(--navy-line); background: var(--navy-tint); border-radius: 999px; text-decoration: none; font-size: .95rem; }

/* Mise en page avec encart latéral (pages des pratiques) */
.page-body.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: 110px; }
.aside .card { padding: 1.6rem; }
.aside h3 { font-size: 1.2rem; }
.aside .btn { width: 100%; }

/* Listes spécifiques du site */
.liens, .page-content ul.liens { list-style: none; padding: 0; max-width: 760px; }
.liens li { margin: 0; border-bottom: 1px solid var(--navy-line); }
.liens li a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .2rem; text-decoration: none; font-weight: 500; }
.liens li a::after { content: "\2197"; color: var(--navy); }
.liens li a:hover { background: var(--navy-tint); }

.wp-block-latest-posts.stageextrait, .page-content .wp-block-latest-posts__list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.2rem; max-width: 820px; }
.wp-block-latest-posts__list li { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin: 0; }
.wp-block-latest-posts__post-title { font-family: var(--font-title); font-size: 1.3rem; color: var(--navy); text-decoration: none; display: block; margin-bottom: .4rem; }
.wp-block-latest-posts__post-excerpt { color: var(--muted); }

/* ---------- Horaires, pastilles de dates (alimentés par l'administration) ---------- */
.page-content .hours, .hours { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 1px solid var(--navy-line); max-width: none; }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .6rem 0; margin: 0; border-bottom: 1px solid var(--navy-line); }
.hours-day { text-transform: capitalize; }
.hours-time { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.hours-note { flex-basis: 100%; color: var(--muted); font-size: .92rem; }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: none; margin: 1.5rem 0 2.5rem; }
.schedule-card h3 { margin-bottom: .2em; }
.schedule-card .sub { margin-bottom: 1.2rem; }
.stage-badge { align-self: flex-start; margin: 0 0 .7rem; border: 1px solid var(--navy-line); background: var(--navy-tint); color: var(--navy); border-radius: 999px; padding: .3rem .9rem; font-weight: 600; font-size: .95rem; }
.stage-grid { margin: 0 0 2rem; }
.stages-passes-titre { font-size: 1.5rem; margin: 2.4rem 0 1.2rem; }
.stage-grid-past .card { box-shadow: none; background: var(--navy-tint); }
.stage-grid-past .entry-title { font-size: 1.15rem; }
.stage-grid-past .stage-badge { background: var(--white); color: var(--muted); }

/* ---------- Sections et cartes ---------- */
.section { padding: clamp(3.2rem, 2rem + 4vw, 5.5rem) 0; }
.section-tint { background: var(--navy-tint); }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.cards { display: grid; gap: 1.6rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h2, .card h3 { margin-bottom: .5em; }
.card-tag { align-self: flex-start; font-family: var(--font-menu); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--navy-tint); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.card-tag-line { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.card-foot { margin-top: auto; padding-top: 1.2rem; }
.practice { padding: 0; overflow: hidden; }
.practice-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray); }
.practice-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.practice-body { padding: 1.8rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }
.practice-body h3 a { text-decoration: none; }
.post-card { padding: 0; overflow: hidden; }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card-body { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-card .entry-title { font-size: 1.35rem; margin-bottom: .5em; }
.post-card .entry-title a { text-decoration: none; }
.post-card .excerpt p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.masters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.master { display: block; text-decoration: none; }
.master img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 1.1rem; filter: grayscale(1); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--navy-line); }
.master-name { display: block; font-family: var(--font-title); font-size: 1.35rem; color: var(--navy); }
.master-role { display: block; color: var(--muted); font-size: 1.05rem; }

/* Pagination */
.navigation.pagination, .nav-links { margin-top: 2.4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); text-decoration: none; }
.page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Formulaire de recherche */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-form label { flex: 1 1 260px; }
.search-field { width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid #9AA3B8; border-radius: var(--radius-sm); background: var(--white); min-height: 52px; }

/* ==========================================================================
   Accueil : le contenu WordPress existant est mis en scène
   ========================================================================== */
.home .page-content > :where(p, h1, h2, ul, blockquote) { max-width: none; }
.home .blocHP1.wp-block-columns {
  display: grid; grid-template-columns: repeat(8, 1fr); column-gap: clamp(1.2rem, .6rem + 2.4vw, 3rem); row-gap: 0;
  position: relative; isolation: isolate; margin: 0; padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  align-items: start;
}
.home .blocHP1.wp-block-columns::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  background: linear-gradient(180deg, var(--navy-tint) 0%, var(--white) 100%);
}
.home .blocHP1 > .wp-block-column { flex-basis: auto !important; width: auto; }
.home .blocHP1 > .wp-block-column:last-child { display: contents; }
.home .blocHP1 > .wp-block-column:first-child { grid-column: 6 / 9; grid-row: 1 / span 3; justify-self: center; max-width: 340px; }
.home .blocHP1 h1 { grid-column: 1 / 6; grid-row: 1; margin-bottom: .5em; }
.home .blocHP1 > .wp-block-column:last-child > p:not(.blocalerte) { grid-column: 1 / 6; grid-row: 2; max-width: 60ch; font-size: 1.15rem; }
.home .blocHP1 > .wp-block-column:last-child > .wp-block-columns { grid-column: 1 / 6; grid-row: 3; margin: .6rem 0 0; display: block; }
.home .blocHP1 .wp-block-column .wp-block-column { flex-basis: auto !important; }
.home .blocHP1 .wp-block-buttons { justify-content: flex-start; margin: 0; }
.home .blocHP1 .wp-block-button:nth-child(n+2) .wp-block-button__link { background: transparent; color: var(--navy); }
.home .blocHP1 .wp-block-button:nth-child(n+2) .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.home .blocHP1 .wp-block-image { margin: 0; }
.home .blocHP1 .wp-block-image img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(34, 49, 90, .25); width: 100%; }
.home .blocHP1 figcaption { text-align: center; font-family: var(--font-title); font-style: italic; color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.blocalerte {
  position: relative; background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.7rem 1.8rem 1.7rem 2.1rem; margin: 2rem 0 0 !important; font-size: 1.05rem; line-height: 1.6; overflow: hidden;
}
.blocalerte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--navy); }
.home .blocHP1 > .wp-block-column:last-child > .blocalerte { grid-row: auto; grid-column: 1 / 5; max-width: none; }
.home .blocHP1 > .wp-block-column:last-child > .blocalerte ~ .blocalerte { grid-column: 5 / 9; }
.blocbouton { justify-content: flex-start !important; }

/* Citation d'Itsuo Tsuda en bandeau bleu pleine largeur */
.page-content .blocgris.wp-block-media-text.has-media-on-the-right {
  position: relative; isolation: isolate; display: grid; grid-template-columns: clamp(180px, 20vw, 260px) 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center; width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto !important; padding: clamp(3rem, 2rem + 3vw, 5rem) 0; max-width: none;
  background: none; box-shadow: none; border: 0; color: var(--white);
}
.page-content .blocgris.wp-block-media-text::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: var(--navy); }
.page-content .blocgris.wp-block-media-text > .wp-block-media-text__media { grid-column: 1; grid-row: 1; margin: 0; width: clamp(180px, 20vw, 260px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); }
.page-content .blocgris.wp-block-media-text > .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); border-radius: 0; }
.page-content .blocgris.wp-block-media-text > .wp-block-media-text__content { grid-column: 2; grid-row: 1; padding: 0 !important; }
.blocgris blockquote { margin: 0; padding: 0; border: 0; color: var(--white); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); max-width: none; }
.blocgris blockquote p { margin-bottom: 1.2rem; }
.blocgris blockquote strong { font-weight: 400; }
.page-content .blocgris blockquote cite { color: #C9D3F2; font-size: 1.05rem; }
.blocgris cite::before { content: ""; display: inline-block; width: 36px; height: 2px; background: var(--blue-light); vertical-align: middle; margin-right: .8rem; }

/* Accueil : l'ordre des sections est réorganisé sans toucher au contenu */
body.arnf-refonte.home main.site-main { display: flex; flex-direction: column; }
.home .page-body, .home .page-main, .home .page-content { display: contents; }
.home .page-content::after { display: none; }
.home .blocHP1.wp-block-columns { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; order: 0; }
.home main > section { order: 1; }
.home main > section[aria-labelledby="pratiques-titre"] { order: 2; }
.home .page-content .blocgris { order: 3; }
.home main > section[aria-labelledby="maitres-titre"] { order: 4; }
.home main > .wrap { order: 5; }

/* Cartes « maîtres » et autres blocs média-texte du site */
.page-content .wp-block-media-text.shadow {
  background: var(--white); border: 1px solid var(--navy-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 0 0 1.6rem; max-width: none; align-items: stretch;
}
.page-content .wp-block-media-text.shadow .wp-block-media-text__media img { border-radius: 0; height: 100%; object-fit: cover; }
.page-content .wp-block-media-text.shadow .wp-block-media-text__content { padding: 1.8rem 2rem; }
.page-content .wp-block-media-text .wp-block-media-text__content > :where(p, ul) { max-width: none; }

/* Bibliographie, bandeaux, accordéons, onglets */
.biblio { align-items: center; }
.biblio h2 { margin-top: 0; }
.wp-block-getwid-accordion__header-wrapper a, .wp-block-getwid-accordion .wp-block-getwid-accordion__header a { color: var(--navy); font-weight: 600; text-decoration: none; }
.wp-block-getwid-accordion .wp-block-getwid-accordion__content-wrapper { border-color: var(--navy-line); }
.wp-block-getwid-tabs .wp-block-getwid-tabs__nav-links { display: flex; gap: .4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; }
.wp-block-getwid-tabs__nav-link a { display: inline-block; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--navy-line); background: var(--navy-tint); color: var(--navy); text-decoration: none; font-weight: 600; }
.wp-block-getwid-tabs__nav-link.ui-tabs-active a, .wp-block-getwid-tabs__nav-link a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.wp-block-getwid-tabs__tab-content { padding: 1rem 0; }
.precsuivant .wp-block-getwid-banner__image { border-radius: var(--radius); }
.page-content .slick-prev:before, .page-content .slick-next:before { color: var(--navy); }
.page-content .slick-dots li button:before { color: var(--navy); }

/* Galerie NextGEN : grille régulière */
.page-content .ngg-galleryoverview.default-view { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.ngg-galleryoverview .ngg-clear, .ngg-galleryoverview > br { display: none; }
.page-content .ngg-galleryoverview .ngg-gallery-thumbnail-box { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; }
.ngg-galleryoverview .ngg-gallery-thumbnail { margin: 0; }
.page-content .ngg-galleryoverview .ngg-gallery-thumbnail img, .page-content .ngg-galleryoverview .ngg-gallery-thumbnail a { display: block; width: 100% !important; height: auto; border-radius: var(--radius-sm); }
.page-content .ngg-galleryoverview .ngg-gallery-thumbnail img { height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; border: 0; transition: transform .4s ease; }
.ngg-galleryoverview .ngg-gallery-thumbnail a { overflow: hidden; border-radius: var(--radius-sm); }
.ngg-galleryoverview .ngg-gallery-thumbnail a:hover img { transform: scale(1.04); }
.ngg-navigation { margin-top: 1.4rem; }
.ngg-navigation a, .ngg-navigation span { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--navy-line); border-radius: var(--radius-sm); text-decoration: none; margin-right: .3rem; }
.ngg-navigation .current { background: var(--navy); color: var(--white); }

/* ==========================================================================
   Contact (avant le pied de page) et formulaire Contact Form 7 : style seulement
   ========================================================================== */
.contact { background: var(--navy-tint); border-top: 1px solid var(--navy-line); padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-grid:not(:has(.form-card)) { grid-template-columns: 1fr; }
.contact-info p { margin-bottom: .6em; }
.page-content .wpcf7 { margin-inline: auto; }
.form-card, .page-content .wpcf7 { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); max-width: 760px; }
.wpcf7 form p { margin: 0 0 1.2rem; max-width: none; }
.wpcf7 form > p:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.5; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea {
  width: 100%; font: inherit; font-size: 1.1rem; font-weight: 400; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid #9AA3B8; border-radius: var(--radius-sm); background: var(--white);
}
.wpcf7 textarea { min-height: 170px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(44, 62, 111, .18); }
.wpcf7 .wpcf7-not-valid-tip { color: #B00020; font-size: .95rem; margin-top: .3rem; font-weight: 500; }
.wpcf7 .wpcf7-response-output { margin: 1rem 0 0 !important; padding: .8rem 1rem !important; border-radius: var(--radius-sm); border-width: 1px !important; font-size: 1rem; }
.wpcf7-spinner { margin: 0 0 0 .8rem; }
.grecaptcha-badge { visibility: hidden; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.arnf-refonte .site-footer { background: var(--navy-deep); color: #DCE2F2; padding: 4rem 0 0; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 2.5rem; align-items: start; }
.footer-brand .custom-logo { width: 230px; height: auto; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-title { display: block; font-family: var(--font-menu); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0 0 1.1rem; }
.footer-list .sub-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-list a { color: #DCE2F2; text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .95rem; color: #B9C3DE; }
.site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--blue-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .nav-list { gap: 1.4rem; }
  .page-body.has-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 960px) {
  body.arnf-refonte { font-size: 1.125rem; --header-h: 72px; }
  .brand .custom-logo, .brand img { width: 210px; }
  body.arnf-refonte button.burger, body.arnf-refonte button.burger:hover, body.arnf-refonte button.burger:focus {
    display: inline-flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .1); color: var(--white); border: 0; border-radius: 999px;
    padding: .65rem 1.1rem; font: 600 1.05rem/1 var(--font-body); cursor: pointer; box-shadow: none;
  }
  .burger-icon, .burger-icon::before, .burger-icon::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .burger-icon::before { position: absolute; top: -6px; }
  .burger-icon::after { position: absolute; top: 6px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 16px 30px rgba(0, 0, 0, .15);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.6rem; gap: 0; max-height: calc(100vh - 72px); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > .nav-top, .nav-list > li > a {
    color: var(--navy); padding: 1rem 0 .4rem; font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
  }
  .nav-list > li > .nav-top::after, .nav-list > li > a::before, .nav-list > li > .nav-top::before { display: none; }
  .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 .6rem; min-width: 0; border-top: 0; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
  .nav-list .sub-menu::before { display: none; }
  .nav-list .sub-menu a { padding: .75rem .4rem; font-size: 1.1rem; }
  .nav-list .astm-search-menu { display: none; }
  .arnf-refonte a.nav-cta { display: flex; justify-content: center; margin: 1.2rem 0 0; min-height: 52px; background: var(--navy); color: var(--white); border-radius: 3px; }
  .arnf-refonte a.nav-cta:hover { background: var(--navy-deep); color: var(--white); box-shadow: none; }
  .cards-2, .schedule, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .masters { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .master { display: flex; align-items: center; gap: 1.2rem; }
  .master img { width: 96px; height: 96px; margin: 0; flex: none; }
  .home .blocHP1.wp-block-columns { grid-template-columns: 1fr; }
  .home .blocHP1 h1, .home .blocHP1 > .wp-block-column:last-child > p:not(.blocalerte), .home .blocHP1 > .wp-block-column:last-child > .wp-block-columns, .home .blocHP1 > .wp-block-column:last-child > .blocalerte, .home .blocHP1 > .wp-block-column:last-child > .blocalerte ~ .blocalerte { grid-column: 1; grid-row: auto; }
  .home .blocHP1 > .wp-block-column:first-child { grid-column: 1; grid-row: auto; order: 5; max-width: 220px; margin-top: 2rem; }
  .home .blocHP1 > .wp-block-column:last-child > .blocalerte { order: 6; }
  .page-content .blocgris.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .page-content .blocgris.wp-block-media-text > .wp-block-media-text__media, .page-content .blocgris.wp-block-media-text > .wp-block-media-text__content { grid-column: 1; grid-row: auto; }
  .blocgris cite::before { display: none; }
  .footer-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lead { font-size: 1.2rem; }
  .card { padding: 1.5rem; }
  .practice, .post-card { padding: 0; }
  .practice-body { padding: 1.4rem 1.5rem 1.6rem; }
  .page-content .alignleft, .page-content .alignright { float: none; max-width: 100%; margin: 1.4rem 0; }
  .wpcf7 form > p:first-of-type { grid-template-columns: 1fr; gap: 0; }
  .wpcf7 form > p:first-of-type label + label { margin-top: 1.2rem; }
  .btn-row .btn, .wp-block-button { width: 100%; }
  .wp-block-button__link { width: 100%; }
  .footer-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Animations douces (coupées si le visiteur réduit les animations)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-breath: cubic-bezier(.33, 0, .2, 1); }
  .site-header { transition: box-shadow .5s var(--ease-breath); }
  .header-inner { transition: min-height .5s var(--ease-breath); }
  .brand .custom-logo { transition: width .5s var(--ease-breath); }
  .site-header.is-compact { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
  @media (min-width: 961px) {
    .site-header.is-compact .header-inner { min-height: 66px; }
    .site-header.is-compact .brand .custom-logo { width: 210px; }
  }
  .home .blocHP1 h1, .home .blocHP1 > .wp-block-column:last-child > p:not(.blocalerte), .page-head .wrap > * { animation: rise 1.1s var(--ease-breath) both; }
  .home .blocHP1 > .wp-block-column:last-child > p:nth-of-type(1) { animation-delay: .12s; }
  .page-head .wrap > :nth-child(2) { animation-delay: .12s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .24s; }
  .home .blocHP1 > .wp-block-column:first-child { animation: fade-in 1.6s .3s var(--ease-breath) both; }
  .home .blocHP1 .wp-block-image img { animation: breathe 10s ease-in-out 2s infinite; }
  .blocgris .wp-block-media-text__media { animation: halo 10s ease-in-out infinite; }
  .card { transition: transform .45s var(--ease-breath), box-shadow .45s var(--ease-breath), border-color .45s; }
  .cards > .card:hover, .blocalerte:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(34, 49, 90, .06), 0 18px 40px rgba(34, 49, 90, .14); }
  .practice-img img, .post-card-img img { transition: transform 1.2s var(--ease-breath); }
  .practice:hover .practice-img img, .post-card:hover .post-card-img img { transform: scale(1.04); }
  .btn, .wp-block-button__link, .wpcf7 input[type=submit] { transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-breath), box-shadow .3s; }
  .btn:hover, .wp-block-button__link:hover, .wpcf7 input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(34, 49, 90, .18); }
  .master img { transition: filter .8s var(--ease-breath), transform .8s var(--ease-breath); }
  .master:hover img { filter: grayscale(.2); transform: scale(1.04); }
  .nav-list .sub-menu { transition: opacity .15s ease, visibility .15s; }
  .nav.is-open { animation: fade-in .35s var(--ease-breath); }

  html .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-breath), transform .9s var(--ease-breath); transition-delay: var(--reveal-delay, 0ms); }
  html .reveal:not(.is-visible) { transition: none; }
  html .reveal.is-visible { opacity: 1; transform: none; }

  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
  @keyframes halo { 0%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); } 50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, .03); } }
}

@media print {
  .site-header, .contact, .site-footer, .aside, .post-tools, .btn-row { display: none !important; }
  body.arnf-refonte { font-size: 12pt; padding-top: 0; }
}
