/* ============================================================
   AMSA AVOCATS - Design System
   Palette : rouge #931D2D · gris anthracite #2D2D2D · blanc
   ============================================================ */

/* ---------- Polices (hébergées sur le site, jeu latin) ----------
   Inter (variable, graisses 100 à 900) et Lato 400/700/900 : SIL Open Font License 1.1,
   voir assets/fonts/LICENCES.txt. Mêmes fichiers que ceux servis auparavant par Google Fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-variable.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: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lato-latin-400.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: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/lato-latin-700.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: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/lato-latin-900.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;
}

/* ---------- Variables ---------- */
:root {
  --red:        #931D2D;
  --red-dark:   #771626;
  --red-light:  #B5253A;
  --marine:     #162640;
  --marine-dark:#0D1A2E;
  --anthracite: #2D2D2D;
  --grey-700:   #4A4A4A;
  --grey-500:   #7A7A7A;
  --grey-300:   #C8C8C8;
  --grey-100:   #F4F4F2;
  --white:      #FFFFFF;

  --font-serif: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius:     4px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.12);

  --transition: 220ms ease;
  --max-width:  1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }
p  { color: var(--grey-700); }

/* ---------- Layout ---------- */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

section { padding: 80px 0; }
section:nth-child(even):not(.page-hero):not(.hero):not(.cta-band) { background: var(--grey-100); }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro { max-width: 640px; color: var(--grey-500); margin-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}
.btn-outline-dark {
  border-color: var(--red);
  color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--anthracite);
}
.logo-text small {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-list a {
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover,
.nav-list a.active { color: var(--red); background: rgba(192,57,43,.06); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: .45rem 1.1rem !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Sous-menu « Domaines d'intervention » */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  display: inline-grid; place-items: center;
  width: 22px; height: 28px; margin-left: -.4rem;
  background: none; border: 0; border-radius: 6px;
  color: var(--grey-700); font-size: .7rem; cursor: pointer;
  transition: color var(--transition);
}
.nav-sub-toggle:hover, .nav-sub-toggle:focus-visible { color: var(--red); }
.nav-sub-toggle span { display: inline-block; transition: transform var(--transition); }
.has-sub.open .nav-sub-toggle span { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 110;
  min-width: 280px; margin-top: .5rem; padding: .5rem;
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--white);
  border: 1px solid var(--grey-300); border-top: 3px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  /* léger délai avant fermeture, pour laisser le temps à la souris */
  transition: opacity 180ms ease 150ms, transform 180ms ease 150ms, visibility 0s linear 330ms;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
.has-sub:hover .nav-sub,
.has-sub:focus-within:not(.dismissed) .nav-sub,
.has-sub.open .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-list .nav-sub a { display: block; padding: .55rem .8rem; font-size: .88rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(13,26,46,.92) 0%, rgba(22,38,64,.87) 55%, rgba(100,18,30,.88) 100%), url('../assets/images/cabinet-avocats-toulouse-signature-document.webp') center/cover no-repeat;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C0392B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red-light);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 2.5rem;
  backdrop-filter: blur(4px);
}
.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-values {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.hero-value {
  display: flex;
  align-items: center;
  gap: .875rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.hero-value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Domaines cards ---------- */
.domaines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.domaine-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}
.domaine-card-body {
  padding: 1.5rem;
}
.domaine-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--red);
  transform: translateY(-3px);
}
.domaine-icon {
  width: 48px;
  height: 48px;
  background: rgba(147,29,45,.06);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.domaine-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.domaine-card h3 { margin-bottom: .5rem; color: var(--anthracite); }
.domaine-card p  { font-size: .9rem; color: var(--grey-500); }
.domaine-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
}

/* ---------- Valeurs strip ---------- */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.valeur-item { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.valeur-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(192,57,43,.08);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.valeur-item strong { font-size: .95rem; color: var(--anthracite); }

.valeur-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 300ms ease;
}
.valeur-item:hover .valeur-icon-img {
  transform: translateY(-4px) scale(1.06);
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--red);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .5rem; }
.cta-band p  { color: rgba(255,255,255,.8); }

/* ---------- Actualités cards ---------- */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.actu-card {
  color: inherit;
  text-decoration: none;
  display: block;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.actu-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.actu-card-body { padding: 1.5rem; }
.actu-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.actu-card h2, .actu-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.actu-card p { font-size: .875rem; color: var(--grey-500); }
.actu-date { font-size: .75rem; color: var(--grey-300); margin-top: 1rem; }

/* ---------- Pastille d'icône (page contact) ---------- */
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #0D1A2E 0%, #162640 55%, #64121E 100%);
  color: rgba(255,255,255,.65);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { margin-top: .75rem; font-size: .875rem; max-width: 300px; color: #D9D9D9; }
.footer-grid > .footer-col:last-child { justify-self: end; }
.footer-col h4, .footer-col-title { color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal a { transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }
.footer-credit { margin-top: 1.25rem; text-align: center; font-size: .78rem; color: #D9D9D9; }
.footer-credit a { color: var(--white); font-weight: 700; letter-spacing: .05em; }
.footer-credit a:hover { color: var(--red-light); }
.footer-heart { color: #E0566B; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0D1A2E 0%, #162640 55%, #64121E 100%);
  padding: 40px 0 72px;
  border-bottom: 3px solid var(--red);
}
.page-hero .section-label { color: var(--red-light); }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.65); max-width: 640px; }
/* Fil d'Ariane (toutes les pages intérieures) */
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Formulaire Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--anthracite);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--anthracite);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group [aria-invalid="true"] { border-color: var(--red); }
/* Champ piège : hors écran plutôt que display:none, que certains robots détectent */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-captcha:not(:empty) { margin-bottom: 1.25rem; }
.form-legal { font-size: .75rem; color: var(--grey-700); margin-bottom: 1.25rem; }
.form-legal a { color: var(--red); }
.form-submit { width: 100%; justify-content: center; }
.form-submit[disabled] { opacity: .7; cursor: wait; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; }
.form-status--ok { background: #EAF6EE; color: #1E5B34; border: 1px solid #B9DEC5; }
.form-status--error { background: #FBEDEE; color: #8A1C2B; border: 1px solid #EBC3C8; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Infos cabinet (Le Cabinet) ---------- */
.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cabinet-photo {
  background: var(--grey-100);
  border-radius: 8px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-300);
  overflow: hidden;
}
.cabinet-photo-placeholder {
  font-size: 4rem;
  opacity: .25;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 20px;
  background: rgba(192,57,43,.08);
  color: var(--red);
  border: 1px solid rgba(192,57,43,.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cabinet-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-list { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--grey-300); padding: 1rem; box-shadow: var(--shadow-md); }
  .nav-list.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-item.has-sub { flex-direction: column; }
  .nav-sub-toggle { display: none; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none; transition: none;
    min-width: 0; margin: 0 0 .5rem; padding: 0;
    align-items: center; border: 0; box-shadow: none; background: none;
  }
  .nav-sub::before { display: none; }
  .nav-list > li > a { font-weight: 700; }
  .nav-list .nav-sub a { padding: .35rem .9rem; font-size: .82rem; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > .footer-col:last-child { justify-self: start; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Domaine page detail ---------- */
.domaine-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.sous-domaine-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sous-domaine-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.sous-domaine-item p { font-size: .875rem; margin-top: .2rem; }

/* ---------- Postulation ---------- */
.postulation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.postulation-box {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Responsive : Domaines & Postulation ---------- */
@media (max-width: 900px) {
  .domaine-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .postulation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .postulation-box { padding: 1.5rem; }
}

/* ---------- Page hero avec vague (toutes les pages sauf index) ---------- */
.page-hero--wave {
  padding-bottom: 0;
  border-bottom: none;
}
.page-hero-wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 48px;
  transform: translateY(1px); /* recouvre l'interstice sub-pixel sur écrans haute densité */
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero-wave--grey { color: var(--grey-100); }
@media (max-width: 640px) {
  .page-hero { padding-top: 28px; }
  .breadcrumb { margin-bottom: 1.1rem; }
  .page-hero-wave { height: 24px; margin-top: 32px; }
}

/* ---------- En bref (en tête des articles) ---------- */
.en-bref {
  border-left: 3px solid var(--red);
  background: var(--grey-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}
.en-bref-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .5rem;
}
.en-bref ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .35rem; }
.en-bref li { color: var(--grey-700); line-height: 1.6; }

/* ---------- Pour aller plus loin (pages domaines) ---------- */
.further { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-300); }
.further-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .75rem;
}
.further ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.further li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.further a { color: var(--marine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.further a:hover { color: var(--red); }
.further span { font-size: .8rem; color: var(--grey-500); }

/* ---------- Domaines : liens vers les dossiers hors pôles ---------- */
.dm-other-link { margin-top: .75rem; font-size: .9rem; }
.dm-other-link a, .dm-other-read a { color: var(--red); font-weight: 600; }
.dm-other-read { text-align: center; margin: 2rem 0 0; color: var(--grey-700); }

/* ---------- Accueil : sur-titre intégré au H1 ---------- */
.hero h1 .hero-eyebrow { font-family: var(--font-sans); line-height: 1.4; }

/* ---------- Postulation : juridictions et FAQ ---------- */
.pg-courts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.pg-court { border-top: 2px solid var(--red); padding-top: 1.1rem; }
.pg-court h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pg-court p { font-size: .93rem; }
.pg-narrow { max-width: 780px; }
.pg-faq { display: flex; flex-direction: column; margin-top: 1.5rem; }
.pg-faq details { border-bottom: 1px solid var(--grey-300); }
.pg-faq details:first-child { border-top: 1px solid var(--grey-300); }
.pg-faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; color: var(--anthracite); position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--red); transition: transform var(--transition); }
.pg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pg-faq details p { padding-bottom: 1.3rem; font-size: .93rem; }
@media (max-width: 700px) { .pg-courts { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Page 404 ---------- */
.nf-links { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem 2rem; }
.nf-links a { color: var(--red); font-weight: 600; }

/* ---------- Images (chantier images du 25/09/2026) ---------- */
/* <picture> ne doit pas modifier la mise en page de l'image qu'il contient */
picture { display: contents; }
picture > source { display: none; }
/* Cartes Domaines de l'accueil : ancien fond CSS devenu <img> */
img.domaine-card-img { height: 160px; object-fit: cover; object-position: center; }
/* Hero de l'accueil : ancien fond CSS devenu <img> prioritaire */
.hero--img { background: var(--marine, #162640); }
.hero--img .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero--img .hero-media-img { width: 100%; height: 100%; object-fit: cover; }
.hero--img .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,26,46,.92) 0%, rgba(22,38,64,.87) 55%, rgba(100,18,30,.88) 100%); }
.hero--img::before { z-index: 1; }
.hero--img > .container, .hero--img > svg { position: relative; z-index: 2; }
