/* ==========================================================================
   EDC Avocats — child theme stylesheet (assets/css/edc.css)
   Depends on jblank: style.css (reset) + assets/css/baseline.css
   Pure CSS, no build step.
   ========================================================================== */

/* ---------- Tokens (same pattern as jblank example-child-theme.css) ---------- */
body {
  --max-width: 1200px;
  --section-padding: 60px;
  --section-gap: 0px;

  --main-color: #000;
  --text-color: #333;
  --muted-color: #85868c;
  --focus-color: #da6a1a;          /* accent (The7 accent) */
  --accent-light: #ef8b00;         /* accroche borders */
  --brown: #694734;                /* droit de la famille */
  --brown-dark: #4a2e25;           /* logo */
  --bg-color: #f7f7f7;
  --band-color: #eaeaea;
  --card-color: #f7f7f7;
  --footer-bg: #1a1c20;

  --font-family: "Roboto", Helvetica, Arial, sans-serif;
  --font-title: "Montserrat", Helvetica, Arial, sans-serif;

  --header-h: 155px;
  --header-h-stuck: 90px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-circ: cubic-bezier(.55, 0, 1, .45);

  font-family: var(--font-family);
  font-weight: 300;
  font-size: 15px;
  line-height: 27px;
  color: var(--main-color);
  background: var(--bg-color);
}

:where(p, li) { font-size: 15px; line-height: 27px; font-weight: 300; }
:where(p) { margin-bottom: 1rem; }
strong { font-weight: 700; }
:is(h1, h2, h3) { font-family: var(--font-title); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 3px; }

/* sections: the home is made of full-width bands, gaps handled per section */
section:not(:where(.nogap)):not(:first-child) { margin-top: 0; }

/* side gutter when the viewport is narrower than the container (header/hero/footer set their own) */
@media (max-width: 1240px) {
  .container { padding-inline: 20px; }
}
@media (max-width: 767px) {
  :not(.container) > .container:not(.full-width) { margin-inline: auto; } /* jblank adds 20px margins: avoid 40px */
}

/* ==========================================================================
   HEADER (sticky, shrinks + translucent when .is-stuck — class set by jblank global_low.js)
   ========================================================================== */
#header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  background: #fff;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
#header > .container {
  height: var(--header-h);
  padding-inline: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: height .35s var(--ease-out);
}
#header.is-stuck {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: rgba(33, 35, 38, .1) 0 10px 10px -10px;
}
#header.is-stuck > .container { height: var(--header-h-stuck); }

#header_logo a { display: block; color: var(--brown-dark); }
#header_logo img { display: block; height: calc(var(--header-h) - 10px); width: auto; transition: height .35s var(--ease-out); }
#header.is-stuck #header_logo img { height: calc(var(--header-h-stuck) - 10px); }

/* ---------- Main menu ---------- */
#menu-main-menu { display: flex; gap: 36px; align-items: center; }
#menu-main-menu > li { position: relative; }
#menu-main-menu > li > a {
  display: block;
  padding-block: 10px;
  font-size: 17px;
  line-height: 21px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}
#menu-main-menu > li > a .menu-item-title { position: relative; }
/* underline from the centre (The7 "from-centre-line") */
#menu-main-menu > li > a .menu-item-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--focus-color);
  opacity: .85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease-in-out;
}
#menu-main-menu > li:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > a .menu-item-title::after {
  transform: scaleX(1);
}

/* submenu: fade + slide */
#menu-main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 190px;
  padding: 10px;
  margin-top: 14px;
  background: #fff;
  box-shadow: rgba(0, 0, 0, .2) 0 0 4px;
  opacity: 0;
  visibility: hidden;
  translate: -50% 8px;
  transition: opacity .2s ease, translate .25s var(--ease-out), visibility 0s linear .25s;
}
#menu-main-menu .sub-menu::before { /* hover bridge */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
#menu-main-menu > li:is(:hover, :focus-within, .is-open) > .sub-menu {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  transition-delay: 0s;
}
#menu-main-menu .sub-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: color .2s, translate .2s var(--ease-out);
}
#menu-main-menu .sub-menu a:is(:hover, :focus-visible) { color: var(--focus-color); translate: 4px 0; }

/* ---------- Burger (mobile) ---------- */
#burger-menu {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  cursor: pointer;
}
#burger-menu span,
#burger-menu span::before,
#burger-menu span::after {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text-color);
  transition: transform .3s var(--ease-out), opacity .2s;
}
#burger-menu span { top: 21px; }
#burger-menu span::before, #burger-menu span::after { content: ""; left: 0; right: 0; }
#burger-menu span::before { top: -8px; }
#burger-menu span::after { top: 8px; }
#header:has(#menu.is-open) #burger-menu span { background: transparent; }
#header:has(#menu.is-open) #burger-menu span::before { transform: translateY(8px) rotate(45deg); }
#header:has(#menu.is-open) #burger-menu span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 990px) {
  body { --header-h: 90px; --header-h-stuck: 70px; }
  #header > .container { padding-inline: 20px; }
  #burger-menu { display: block; z-index: 2; }
  #menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(330px, 85vw);
    padding: calc(var(--header-h) + 10px) 30px 30px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, .15) 0 0 30px;
    overflow-y: auto;
    translate: 100% 0;
    transition: translate .4s var(--ease-out);
  }
  #menu.is-open { translate: 0 0; }
  #menu-main-menu { flex-direction: column; align-items: stretch; gap: 0; }
  #menu-main-menu > li { border-bottom: 1px solid rgba(51, 51, 51, .12); }
  #menu-main-menu > li > a { padding-block: 14px; }
  #menu-main-menu .sub-menu {
    position: static; width: auto; margin: 0 0 10px; padding: 0 0 0 12px;
    box-shadow: none; translate: none; opacity: 1; visibility: visible; background: none;
  }
  #menu-main-menu .sub-menu::before { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 72vh, 680px);
  display: flex;
  align-items: center;
  color: #fff;
  padding-block: 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__bg img,
.hero__bg .placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-zoom 9s var(--ease-out) both;
}
.hero__bg::after { /* readability veil */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%);
}
.hero > .container { width: 100%; padding-inline: 50px 20px; }
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 .45em;
  text-wrap: initial;
}
.hero__subtitle {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.25;
  font-weight: 300;
  margin: 0;
}
@keyframes hero-zoom { from { scale: 1.08; } to { scale: 1; } }

/* letter-by-letter reveal (Slider Revolution "chars" split: opacity 0 -> 1, 4ms stagger, easeInCirc) */
.split-chars .char {
  display: inline-block;
  animation: char-in var(--dur, 850ms) var(--ease-in-circ) backwards;
  animation-delay: calc(var(--start, 850ms) + var(--i) * var(--stagger, 4ms));
}
.hero__subtitle.split-chars { --start: 3080ms; --dur: 700ms; }
@keyframes char-in { from { opacity: 0; } }

@media (max-width: 767px) {
  .hero { min-height: 400px; }
  .hero > .container { padding-inline: 20px; }
}

/* ==========================================================================
   BUTTON — outline, top/bottom border only (The7 btn3 outline-custom)
   ========================================================================== */
.btn-outline {
  --btn-color: var(--focus-color);
  position: relative;
  display: inline-flex;
  padding: 10px 15px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: var(--btn-color);
  border-block: 2px solid var(--btn-color);
  text-decoration: none;
  isolation: isolate;
  transition: color .3s ease-in-out;
}
.btn-outline::before { /* fill from the centre on hover */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--btn-color);
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.btn-outline:is(:hover, :focus-visible) { color: #fff; }
.btn-outline:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.btn-outline.brown { --btn-color: var(--brown); }

/* ==========================================================================
   EXPERTISES (2 cards)
   ========================================================================== */
.expertises { padding-block: 40px 50px; }
.expertises .grid-2 { gap: 20px; }
.expertise {
  --card-accent: var(--focus-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--card-accent);
  padding: 10px 20px 20px;
}
.expertise.brown { --card-accent: var(--brown); }
.expertise__icon {
  width: 100px; height: 100px;
  margin-bottom: 14px;
  transition: transform .5s var(--ease-out);
}
.expertise:hover .expertise__icon { transform: translateY(-4px) rotate(-4deg); }
.expertise__title {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 27px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.expertise p { color: inherit; max-width: 460px; margin: 0 0 24px; }
.expertise .btn-outline { --btn-color: var(--card-accent); }

/* ==========================================================================
   ACCROCHE
   ========================================================================== */
.accroche { padding-block: 50px 70px; }
.accroche__box {
  margin-inline: 25px;
  padding-block: 50px;
  background: #fff;
  border-block: 3px solid var(--accent-light);
  text-align: center;
}
.accroche__box h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.6;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--main-color);
  margin: 0;
  padding-inline: 20px;
}
/* borders draw in from the centre when the band enters the viewport */
@supports (animation-timeline: view()) {
  .accroche__box {
    border-color: transparent;
    background:
      linear-gradient(var(--accent-light), var(--accent-light)) top / var(--line, 100%) 3px no-repeat,
      linear-gradient(var(--accent-light), var(--accent-light)) bottom / var(--line, 100%) 3px no-repeat,
      #fff;
    background-origin: border-box;
    animation: line-grow linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }
  @property --line { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
  @keyframes line-grow { from { --line: 0%; } to { --line: 100%; } }
}

/* ==========================================================================
   ASSOCIÉE
   ========================================================================== */
.associee { padding-block: 0 50px; text-align: center; }
.associee__portrait {
  width: min(100%, var(--portrait-size, 1024px));
  margin-inline: auto;
  aspect-ratio: 1;
  overflow: hidden;
}
.associee__portrait > * { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.associee__portrait:hover > * { scale: 1.03; }
.associee h2 {
  margin: 40px 0 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-color);
}
.associee .subtitle { margin: 6px 0 40px; font-weight: 400; }

/* ==========================================================================
   ARTICLES (carousel: jblank .slider-native + arrows/dots)
   ========================================================================== */
.articles { background: var(--band-color); padding-block: 60px; }
.articles .slider-native { --peek: 0%; --slides-per-page: 3; gap: 30px; padding-bottom: 4px; }
.articles .slider-native > * { flex-basis: calc((100% - 60px) / 3); }
@media (max-width: 990px) and (min-width: 768px) {
  .articles .slider-native > * { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 767px) {
  .articles .slider-native { gap: 16px; }
  .articles .slider-native > * { flex-basis: 88%; }
}
.articles .slider-native { scroll-behavior: smooth; }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-color);
  transition: box-shadow .35s, translate .35s var(--ease-out);
}
.post-card:hover { box-shadow: rgba(0, 0, 0, .08) 0 12px 30px; translate: 0 -3px; }
.post-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.post-card__thumb > :first-child { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.post-card__thumb::after { /* rollover veil */
  content: "";
  position: absolute; inset: 0;
  background: rgba(26, 28, 32, .25);
  opacity: 0;
  transition: opacity .35s;
}
.post-card:hover .post-card__thumb > :first-child { scale: 1.06; }
.post-card:hover .post-card__thumb::after { opacity: 1; }

.fancy-date {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  width: 63px; height: 63px;
  border-radius: 50%;
  background: #fff;
  color: var(--focus-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fancy-date .month { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-color); padding-bottom: 3px; border-bottom: 2px solid var(--focus-color); margin-bottom: 3px; }
.fancy-date .day { font-size: 22px; line-height: 24px; color: var(--text-color); }
.fancy-date .year { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.post-card__body { padding: 15px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  margin: 0 0 6px;
}
.post-card__title a { color: var(--text-color); text-decoration: none; transition: color .2s; }
.post-card__title a:hover { color: var(--focus-color); }
.post-card__meta { font-size: 13px; line-height: 23px; margin-bottom: 10px; color: var(--muted-color); }
.post-card__meta a { color: inherit; text-decoration: none; }
.post-card__meta a:hover { color: var(--focus-color); }
.post-card__meta > * + *::before { content: "•"; margin-inline: 6px; }
.post-card__excerpt {
  font-size: 14px;
  line-height: 25px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card__more::after {
  content: "";
  border: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-right: 0;
  transition: translate .25s var(--ease-out);
}
.post-card__more:hover { color: var(--focus-color); }
.post-card__more:hover::after { translate: 4px 0; }

/* carousel nav: only shown when there is something to scroll (set by JS) */
.slider-nav { display: none; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.has-overflow + .slider-nav { display: flex; }
.slider-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--main-color);
  transition: background-color .2s, color .2s;
}
.slider-nav button:hover { background: var(--focus-color); color: #fff; }
.slider-nav button:disabled { opacity: .3; pointer-events: none; }
.slider-dots { display: flex; gap: 12px; }
.slider-dots button { width: 10px; height: 10px; box-shadow: inset 0 0 0 2px var(--focus-color); }
.slider-dots button[aria-current="true"] { background: var(--focus-color); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
  margin: 0;
  background: var(--footer-bg);
  color: var(--muted-color);
  padding-block: 70px 60px;
}
#footer .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: end; padding-inline: 20px; }
#footer .widget-title { color: #fff; font-size: 16px; line-height: 26px; font-weight: 700; margin-bottom: 18px; }
#footer p { font-size: 14px; line-height: 25px; margin: 0; }
#footer a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
#footer a:hover { background-size: 100% 1px; }
#footer .footer-logo { color: #fff; justify-self: center; }
#footer .footer-logo img { width: 285px; max-width: 100%; height: auto; display: block; }
#footer .copyright { justify-self: center; align-self: end; padding-bottom: 6px; }
@media (max-width: 767px) {
  #footer .container { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #footer .footer-logo { order: -1; }
}

/* scroll-top (jblank module scroll-top, recoloured) */
#scroll-top { width: 40px; height: 40px; border-radius: 1px; background: rgba(0, 0, 0, .2); right: 10px; bottom: 10px; }
#scroll-top:hover { background: var(--focus-color); }
#scroll-top img { width: 16px; height: 16px; filter: brightness(0) invert(1); } /* jblank module chevron → white */
html.scroll-threshold #scroll-top { display: flex; opacity: 1; }

/* ==========================================================================
   INNER PAGES — title band, text content, post grid, single
   ========================================================================== */
.page-title {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border-bottom: 3px solid var(--accent-light);
  padding-block: 56px 48px;
  text-align: center;
}
.page-title.has-image {
  border-bottom: 0;
  min-height: 285px;
  display: flex;
  align-items: center;
  padding-block: 60px;
}
.page-title .container { width: 100%; }
.page-title__bg { position: absolute; inset: 0; z-index: -1; }
.page-title__bg img {
  width: calc(100% + 80px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  animation: bg-drift 30s linear infinite alternate;   /* The7 "left-animation" */
}
.page-title__bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .35); }
@keyframes bg-drift { from { translate: 0 0; } to { translate: -80px 0; } }
.page-title h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-color);
  margin: 0;
}
.page-title .intro { max-width: 720px; margin: 16px auto 0; }
.page-title .post-card__meta { margin-bottom: 12px; }

/* section title with short orange underline (Ultimate heading) */
.section-title {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--text-color);
  margin: 0 0 34px;
  padding-bottom: 10px;
  background: linear-gradient(var(--focus-color), var(--focus-color)) left bottom / 70px 2px no-repeat;
}
.section-title.center { text-align: center; background-position: center bottom; }

.text-content { padding-block: 50px 60px; }
.text-content > * + * { margin-top: 1em; }
.text-content :is(h2, h3, h4) { color: var(--text-color); line-height: 1.3; margin-top: 1.6em; }
.text-content h2 { font-size: 26px; font-weight: 500; }
.text-content h3 { font-size: 20px; font-weight: 500; }
.text-content h4 { font-size: 17px; font-weight: 700; font-family: var(--font-family); }
.text-content ul { list-style: none; padding-left: 0; }
.text-content ul li { position: relative; padding-left: 22px; list-style: none; } /* on li: beats jblank's `p + ul { list-style-type: disc }` whatever its specificity */
.text-content ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; background: var(--focus-color); }
.text-content ol { list-style: decimal; padding-left: 22px; }
.text-content a:not(.btn-outline) { color: var(--focus-color); text-decoration: underline; text-underline-offset: 3px; }
.text-content blockquote { border-left: 3px solid var(--accent-light); padding: 4px 0 4px 20px; font-style: italic; }
.text-content img { height: auto; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
  padding-block: 50px 20px;
}
.category-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 36px; }
.category-filter a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  border-block: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.category-filter a:hover { color: var(--focus-color); }
.category-filter a[aria-current="page"] { color: var(--focus-color); border-color: var(--focus-color); }

.single-article__thumb { padding-top: 40px; }
.single-article__thumb img { width: 100%; height: auto; }
.single-article__back { padding-bottom: 60px; text-align: center; }
.articles .post-grid { padding-block: 0; }

/* ==========================================================================
   EXPERTISE pages — content 8/4 "Voir aussi"
   ========================================================================== */
.expertise-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 60px;
  padding-block: 50px 70px;
}
.expertise-layout .text-content { padding: 0; }
.expertise-layout .text-content > p:first-child,
.expertise-layout .text-content > p:first-child + p { font-weight: 700; font-size: 14px; line-height: 25px; }
/* lists: orange round chevron + separators (The7 "list-divider") */
.expertise-layout .text-content ul li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(51, 51, 51, .12);
}
.expertise-layout .text-content ul li::before {
  width: 14px; height: 14px; top: 16px; left: 0;
  border-radius: 50%;
  background: var(--focus-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5.5 4l3 3-3 3' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: translate .25s var(--ease-out);
}
.expertise-layout .text-content ul li:hover::before { translate: 3px 0; }
.see-also { text-align: center; padding-top: 30px; }
.see-also h2 { font-family: var(--font-family); font-size: 15px; font-weight: 700; margin: 0 0 24px; color: var(--main-color); }
.see-also ul { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (max-width: 767px) {
  .expertise-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   ASSOCIÉE page
   ========================================================================== */
.about { padding-block: 60px; align-items: start; }
.about > * { text-align: left; }
.about .text-content { padding: 0; }
.about .text-content p:first-child strong:first-child { font-weight: 700; }

/* atouts: flip cards (Ultimate flip box) */
.atouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 50px; }
.atout { perspective: 900px; min-height: 150px; outline-offset: 4px; }
.atout__inner {
  position: relative;
  height: 100%;
  min-height: 150px;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-out);
}
.atout:is(:hover, :focus-visible, :focus-within) .atout__inner { transform: rotateY(180deg); }
.atout__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  backface-visibility: hidden;
  border: 2px solid #ccc;
  border-top-color: #e2e2e2;
  border-left-color: #e2e2e2;
}
.atout__front { background: #eaeaea; }
.atout__front img { width: 56px; height: 56px; }
.atout__front h3 { font-size: 16px; font-weight: 300; text-transform: uppercase; color: var(--text-color); margin: 0; }
.atout__back { background: var(--focus-color); color: #fff; border-color: var(--focus-color); transform: rotateY(180deg); }
.atout__back p { color: inherit; font-size: 14px; line-height: 22px; margin: 0; }
@media (max-width: 990px) { .atouts { gap: 20px; } }
@media (max-width: 480px) { .atouts { grid-template-columns: 1fr; } }

.bio { background: var(--band-color); padding-block: 30px 60px; }
.bio__portrait { margin: 0 0 40px; aspect-ratio: 1; max-width: var(--portrait-size, 1200px); overflow: hidden; }
.bio__portrait > * { width: 100%; height: 100%; object-fit: cover; }
.bio__text { padding: 0; max-width: 900px; }
.bio__name { margin: 40px 0 0; text-align: center; font-family: var(--font-title); font-size: 30px; line-height: 1.2; font-weight: 300; text-transform: uppercase; color: var(--text-color); }
.bio__role { text-align: center; color: var(--focus-color); margin: 4px 0 0; }

/* counters */
.chiffres { background: #fff; padding-block: 50px; }
.chiffres .grid-3 { --cols: 3; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.chiffre { text-align: left; color: var(--focus-color); font-family: "Roboto Condensed", var(--font-family); font-weight: 300; }
.chiffre__value { display: block; font-size: 50px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre__value small { font-size: .6em; }
.chiffre__label { display: block; font-size: 40px; line-height: 1.05; max-width: 9em; }
@media (max-width: 767px) {
  .chiffres .grid-3 { grid-template-columns: 1fr; }
  .chiffre { text-align: center; }
  .chiffre__label { font-size: 28px; margin-inline: auto; }
}

/* ==========================================================================
   CONTACT page + Gravity Forms
   ========================================================================== */
.contact-layout { padding-block: 60px; gap: 60px; align-items: start; }
.contact-layout > * { text-align: left; }
.contact-map { aspect-ratio: 16 / 9; margin-bottom: 24px; background: var(--band-color); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-infos p { margin: 0 0 12px; padding-left: 34px; }
.contact-infos a { color: inherit; text-decoration: none; }
.contact-infos a:hover { color: var(--focus-color); }

.gform_wrapper .gform_fields { display: grid; gap: 14px; }
.gform_wrapper .gfield_label,
.gform_wrapper .gfield_required { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* placeholders carry the labels, as on prod */
.gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  font: 300 14px/1.5 var(--font-family);
  color: var(--main-color);
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: border-color .2s, box-shadow .2s;
}
.gform_wrapper :is(input, textarea):focus { outline: none; border-color: var(--focus-color); box-shadow: 0 0 0 3px rgba(218, 106, 26, .15); }
.gform_wrapper .gfield--width-half,
.gform_wrapper .gfield:not(.gfield--type-textarea) { max-width: 50%; }
.gform_wrapper textarea { min-height: 160px; }
.gform_wrapper .gform_footer { display: flex; justify-content: center; margin-top: 24px; }
.gform_wrapper .gform_button {
  position: relative;
  padding: 10px 40px;
  font: 700 14px/1 var(--font-family);
  color: var(--main-color);
  background: transparent;
  border-block: 2px solid var(--focus-color);
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.gform_wrapper .gform_button:hover { background: var(--focus-color); color: #fff; }
.gform_wrapper .validation_message { color: #c0392b; font-size: 13px; }
.gform_confirmation_message { padding: 20px; background: #fff; border-left: 3px solid var(--focus-color); }
@media (max-width: 767px) {
  .contact-layout { gap: 30px; }
  .gform_wrapper .gfield:not(.gfield--type-textarea) { max-width: 100%; }
}

/* actualités grid: 4 columns like prod */
.blog .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }

/* ==========================================================================
   SCROLL REVEAL (new): visible at rest, fades/rises in as it enters
   ========================================================================== */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes reveal-up { from { opacity: 0; translate: 0 28px; } }
/* fallback (no scroll timeline): JS adds .reveal-pending only to elements below the fold */
.reveal-pending { opacity: 0; translate: 0 28px; }
.reveal-in { transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }

/* stagger children of a reveal group */
.reveal-group > .reveal:nth-child(2) { animation-range: entry 10% entry 70%; transition-delay: .12s; }
.reveal-group > .reveal:nth-child(3) { animation-range: entry 20% entry 80%; transition-delay: .24s; }

/* ==========================================================================
   Placeholders (dev only — replaced by real media via wp-cli)
   ========================================================================== */
.placeholder {
  display: block;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px),
    var(--ph, linear-gradient(135deg, #b9b3ab, #7d766e));
  position: relative;
}
.placeholder[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font: 500 11px/1.2 var(--font-family);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-pending { opacity: 1; translate: none; }
}
