/* loribethmotta.com prototype, shared stylesheet (FR + EN)
   Palette derived from the logo: cyan #00A7C9 (mark, thin rules), slate #4A5660 (Psi), ink #1B2730.
   Text-safe teal #0A6C80 for links and the button.
   Photos are switched on and off in the HTML (comment wrappers marked PHOTO-OFF); the grids below follow with :has(). */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/literata-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/sourcesans3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/sourcesans3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #FFFFFF;
  --grey: #EEF2F4;
  --ink: #1B2730;
  --slate: #4A5660;
  --cyan: #00A7C9;
  --teal: #0A6C80;
  --hairline: #EEF2F4;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
  --measure: 36em;
  --header-h: 64px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --hairline: color-mix(in srgb, var(--slate) 28%, var(--white)); }
}

/* Reset, only what is needed */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; }
address { font-style: normal; }
a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; } /* a phone number never breaks across two lines */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Type scale */
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}
p + p, ul + p, p + ul, dl + p, h3 + p, h3 + ul, address + p { margin-top: 1em; }
p + dl { margin-top: 1.5em; }
h2 + p, h2 + ul, h2 + dl, h2 + div, h2 + address { margin-top: 1.25em; }
p + h3, ul + h3, dl + h3, div + h3 { margin-top: 2em; }
.lead { font-size: 1.12em; }

/* Layout */
.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--measure); }
.section {
  padding-block: 64px;
  scroll-margin-top: 80px;
}
.section + .section { border-top: 1px solid var(--grey); }
.band { background: var(--grey); }
.band + .section, .section + .band { border-top: 0; }

/* Lists in running text */
.prose ul, .facts { list-style: disc; padding-left: 1.2em; }
.prose li + li, .facts li + li { margin-top: 0.3em; }
li::marker { color: var(--slate); }

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 150ms ease;
}
.button:hover { filter: brightness(0.9); text-decoration: none; }

/* Header: brand, nav, FR | EN, button. Nav wraps to a second row between 481 and 1023 px. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--cyan);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.brand img { width: 40px; height: 40px; flex: none; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang span[aria-current], .lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px; /* 44 px tall; 10 px sides from 481 px, where the row has room */
}
.lang span[aria-current] { color: var(--slate); }
.lang a { color: var(--teal); }
/* Hit areas of at least 44 x 44 px. Nothing moves and nothing looks different.
   FR | EN link and nav links: an invisible ::after box, wider than the link, takes the clicks.
   The link keeps its own box, so the focus ring stays around the text.
   To measure these two, use elementFromPoint: getBoundingClientRect still returns the link's own box. */
.lang a { position: relative; z-index: 1; }
.lang a::after { content: ""; position: absolute; inset: 0 -11px; } /* 24 px wide + 11 + 11 */
.header-cta { font-size: 15px; padding: 0 14px; min-height: 44px; }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}
.site-nav { order: 10; flex: 1 0 100%; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}
.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}
/* "FAQ" is 26 px wide: 26 + 9 + 9. Half of the 18 px gap, so two hit areas never overlap */
.site-nav a:not(.button)::after { content: ""; position: absolute; inset: 0 -9px; }
.site-nav a:not(.button):hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav .nav-cta { display: none; }

/* Collapsed menu, only with JS and only up to 480 px. The header button moves inside the menu. */
@media (max-width: 480px) {
  html.js .menu-toggle { display: inline-flex; align-items: center; }
  html.js .header-cta { display: none; }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: block; margin-top: 6px; padding-block: 6px 12px; border-top: 1px solid var(--grey); }
  html.js .site-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .site-nav.is-open a:not(.button) { width: 100%; min-height: 48px; font-size: 17px; }
  html.js .site-nav.is-open a:not(.button)::after { content: none; }
  html.js .site-nav.is-open .nav-cta { display: block; margin-top: 10px; }
  html.js .site-nav.is-open .button { width: 100%; }
}

/* Hero */
.hero { padding-block: 48px 64px; scroll-margin-top: 80px; }
.hero-grid { display: grid; gap: 40px; }
.hero .lead { margin-top: 1.1em; max-width: var(--measure); }
.hero .facts { margin-top: 1.5em; max-width: var(--measure); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 1.75em;
}
.hero-actions .tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
}

/* Photo areas. Both are off in the HTML for now (PHOTO-OFF comment wrappers): nothing is rendered or requested.
   Removing a wrapper brings the figure back and the matching :has() rule below restores its column. */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate);
  background: var(--grey);
  padding: 24px;
  text-align: center;
}
.photo-portrait { aspect-ratio: 4 / 5; max-width: 320px; }
.photo-room { aspect-ratio: 3 / 2; }
/* Real photo inside the same frame: no padding, the image covers the box, no radius, no shadow */
.photo.has-image { display: block; padding: 0; overflow: hidden; }
.photo.has-image picture, .photo.has-image img { display: block; width: 100%; height: 100%; }
.photo.has-image img { object-fit: cover; object-position: 50% 35%; }
/* Browsers without :has() keep every grid in one column: the office photo then stays at column size */
@supports not selector(:has(*)) {
  .photo-room { max-width: 450px; }
}

/* Two-column about section */
.about-grid { display: grid; gap: 48px; }
.credentials { border-top: 2px solid var(--cyan); }
.credentials dt {
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding-top: 12px;
}
.credentials dd {
  margin-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.credentials dd + dd { margin-top: 0; padding-top: 12px; }

/* Side-heading sections: fees, FAQ */
.side-grid { display: grid; gap: 24px 64px; }
.side-grid > * { margin-top: 0; }
.faq-item + .faq-item { margin-top: 2em; padding-top: 2em; border-top: 1px solid var(--hairline); }

/* Practical band: one reading column; two columns only when the office photo is in the page */
.practical-grid { display: grid; gap: 40px; }
.practical-grid > div { max-width: var(--measure); }
.practical address { font-size: 1.12em; }
.practical dt { font-weight: 600; padding-top: 12px; }
.practical dd { margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
/* Hit area 46 px high: top and bottom padding of an inline link takes no room in the line, nothing moves */
.practical a[href*="google.com/maps"] { padding-block: 11px; }

/* Contact */
.crisis {
  padding: 20px 24px;
  border: 1px solid var(--ink);
}
.crisis h3 { font-size: 18px; }
.crisis p { margin-top: 0.6em; font-size: 16px; }
.contact-lines { margin-top: 2.5em; }
.contact-lines .tel-big {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-underline-offset: 0.14em;
  padding-block: 2px; /* hit area 44.8 px high, the padding is cancelled by the negative margin */
  margin-block: -2px;
}
.contact-lines .mail { font-size: 1.12em; padding-block: 9px; } /* hit area 45 px high, same way as the Maps link */

/* Footer */
.site-footer {
  border-top: 1px solid var(--cyan);
  padding-block: 48px 40px;
  font-size: 15px;
  color: var(--slate);
}
.site-footer a { color: var(--teal); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid p + p { margin-top: 0.8em; }
.footer-id { color: var(--ink); font-weight: 600; }
.site-footer h2 { font-size: 22px; color: var(--ink); }
.legal-block { max-width: var(--measure); margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.legal-block h3 { font-size: 16px; color: var(--ink); }
.legal-block h2 + h3 { margin-top: 1.25em; }
.legal-block p + h3 { margin-top: 1.6em; }
.legal-block h3 + p { margin-top: 0.4em; }
.footer-end { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.footer-end p + p { margin-top: 0.6em; }

/* Hit areas of the small text links: crisis numbers, 112 in the practical list, footer and legal texts.
   Same invisible ::after box as in the header: the text, the lines and the focus ring stay as they are.
   A link never reaches into the line of another link. Where two links can sit on consecutive lines
   (crisis numbers, stacked footer links, phone and e-mail in the legal texts) each one stops halfway.
   Crisis and footer boxes have a fixed height from the top of the first line: a link that wraps
   over two lines must not get a box two lines high. */
.crisis a, .practical dd a, .site-footer a { position: relative; }
.crisis a::after, .practical dd a::after, .site-footer a::after { content: ""; position: absolute; }
.practical dd a::after { inset: -10px; } /* 25 x 24 px of text, 45 x 44 px to click */
.crisis a::after { top: -1px; height: 24px; left: -11px; right: -11px; } /* 46 px wide for "112"; in height the 24 px line and no more */
.site-footer a::after { top: -11.5px; height: 44px; left: 0; right: 0; } /* 21 px of text, 44 px to click */
.site-footer a + br + a::after { top: -0.75px; height: 33.25px; } /* another link on the line above */
.site-footer a:has(+ br + a)::after { height: 33.25px; } /* another link on the line below */
.site-footer a + br + a:has(+ br + a)::after { height: 22.5px; } /* both */

/* Breakpoints */
@media (min-width: 481px) {
  .brand { font-size: 20px; gap: 12px; }
  .lang { font-size: 15px; }
  .lang span[aria-current], .lang a { padding: 10px 10px; }
  .lang a::after { inset: 0 -4px; } /* 37 px wide + 4 + 4 */
  .header-inner { gap: 4px 16px; }
  .header-cta { font-size: 16px; padding: 0 18px; min-height: 44px; }
}
@media (min-width: 481px) and (max-width: 1023px) {
  /* The nav sits on a second header row, so anchors need more clearance */
  .section, .hero, .legal-block { scroll-margin-top: 124px; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .section { padding-block: 88px; }
  .hero { padding-block: 64px 88px; }
  .photo-portrait { max-width: 420px; }
  .practical-grid:has(.photo-room) { grid-template-columns: 7fr 5fr; align-items: start; }
}
@media (min-width: 900px) {
  /* Portrait on: text 7/12, portrait 5/12 */
  .hero-grid:has(.photo-portrait) { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .hero-grid:has(.photo-portrait) .photo-portrait { justify-self: end; width: 100%; }
  /* Portrait off: same 7/12 and 5/12 columns inside the text block, the facts take the second column */
  .hero-grid:not(:has(.photo-portrait)) .hero-text {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 64px;
  }
  .hero-grid:not(:has(.photo-portrait)) .hero-text > * { grid-column: 1; }
  .hero-grid:not(:has(.photo-portrait)) .hero-text > h1 { grid-column: 1 / -1; }
  .hero-grid:not(:has(.photo-portrait)) .hero-text > .facts {
    grid-column: 2;
    grid-row: 2 / -1;
    align-self: start;
    list-style: none;
    padding-left: 0;
    border-top: 2px solid var(--cyan);
  }
  .hero-grid:not(:has(.photo-portrait)) .facts li {
    margin-top: 0;
    padding-block: 12px;
    border-bottom: 1px solid var(--hairline);
  }
  /* Office photo off: the band takes the side-heading layout of the fee and FAQ sections */
  .practical > .container:not(:has(.photo-room)) { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 64px; }
  .practical > .container:not(:has(.photo-room)) > * { margin-top: 0; }
  .about-grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
  .side-grid { grid-template-columns: 4fr 8fr; }
}
@media (min-width: 1024px) {
  h1 { font-size: 60px; }
  .section { padding-block: 96px; }
  .hero { padding-block: 80px 72px; }
  .header-inner { flex-wrap: nowrap; gap: 24px; padding-block: 0; }
  .brand { flex: none; }
  .site-nav { order: 0; flex: 1 1 auto; }
  .site-nav ul { justify-content: flex-end; gap: 0 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) and (max-width: 1063px) {
  /* French page only: its six anchors and its longer button are 39 px too wide for one row here,
     and "FAQ" dropped alone to a second line. Same gaps as under 1024 px until the normal ones fit, at 1064 px. */
  .header-inner:lang(fr) { gap: 16px; }
  .site-nav:lang(fr) ul { gap: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* WordPress
   Rules added for the WordPress build. Everything above this line is the prototype stylesheet, unchanged.
   The practical band is made of core blocks, so that she can edit it: a paragraph of class "address"
   replaces <address>, a group of class "dl" replaces <dl>, and each line is a group of class "pair"
   holding a paragraph of class "dt" and a paragraph of class "dd". Same rendering as the prototype. */
.practical .address { font-size: 1.12em; }
.practical .dl { margin-top: 1.5em; }
.practical .dt { font-weight: 600; padding-top: 12px; }
.practical .dd { margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.practical .dd a { position: relative; }
.practical .dd a::after { content: ""; position: absolute; inset: -10px; } /* same hit area as .practical dd a */
/* Logged-in sessions only: the sticky header stays under the admin bar of WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
