/* ==========================================================================
   Cabinet Laurent Cretin — Avocat à Lyon
   Feuille de style principale
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices hébergées sur le site

   Inter et Playfair Display sont sous licence SIL Open Font, qui autorise
   l'hébergement. Les charger depuis fonts.googleapis.com transmettait
   l'adresse IP du visiteur à Google avant tout consentement, et coûtait deux
   connexions de plus. Les fichiers viennent de Google : ce sont exactement
   ceux qui étaient servis auparavant.

   Une seule déclaration par police et par plage de caractères : ce sont des
   polices variables, le même fichier couvre toutes les graisses, d'où la
   notation « font-weight: 400 600 ». En demander une par graisse aurait fait
   télécharger trois fois le même fichier.

   unicode-range laisse le navigateur ne prendre que ce dont la page a besoin :
   en français, latin suffit presque toujours, latin-ext ne descend que pour
   un nom étranger.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-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 {
  --burgundy: #8a3540;
  --burgundy-dark: #6a252e;
  --burgundy-light: #b0737c;
  --sage: #9fb4b0;
  --sage-dark: #6f8a85;
  --sage-pale: #e8efed;
  --cream: #faf8f5;
  --ink: #262523;
  --ink-soft: #55524e;
  --line: #e4e0da;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(38, 37, 35, .06);
  --shadow-md: 0 8px 30px rgba(38, 37, 35, .10);
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .8rem;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: .95rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1.1rem; }

a { color: var(--burgundy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--burgundy-dark); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--burgundy); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Typographic helpers ----- */
.eyebrow, .section-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: .6rem;
}
.eyebrow { color: rgba(255, 255, 255, .85); }
.section-eyebrow.center { text-align: center; }

section > .container > h2.center { margin-bottom: 2.6rem; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
}
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Même vert pâle que l'encadré « Prendre rendez-vous » (--sage-pale), en
     translucide pour que le flou laisse deviner la page qui défile dessous. */
  background: rgba(232, 239, 237, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 102px;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; flex: 0 0 auto; }
/* Le logo est une image : les règles d'un logo en texte ont été retirées. */

/* `> ul` uniquement : les menus déroulants ne doivent pas hériter du flex. */
.main-nav > ul { display: flex; align-items: center; gap: 1.7rem; }
.main-nav > ul > li > a {
  font-size: .87rem; font-weight: 500; color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
  padding: .4rem 0; position: relative;
}
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--burgundy); transition: width .25s ease;
}
.main-nav > ul > li > a:hover::after { width: 100%; }
.main-nav .nav-cta {
  background: var(--burgundy); color: #fff;
  padding: .6rem 1.2rem; border-radius: var(--radius);
}
.main-nav .nav-cta:hover { background: var(--burgundy-dark); color: #fff; }
.main-nav .nav-cta::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  /* Voile assez sombre pour que le texte reste lisible sans rosir la photo,
     qui est un noir et blanc clair. */
  background:
    linear-gradient(115deg, rgba(28, 27, 26, .86) 0%, rgba(84, 30, 37, .74) 52%, rgba(45, 62, 60, .80) 100%),
    url('../images/hero.jpg') center 42% / cover no-repeat,
    var(--ink);
}
.hero-inner { position: relative; max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-lead {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 640px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2.2rem; }
/* Les étiquettes du bandeau sont devenues des liens vers les quatre pages de
   rubrique : même aspect qu'avant, avec un survol qui signale qu'on peut
   cliquer. */
.hero-tags a {
  font-size: .8rem; font-weight: 500;
  color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .45);
  padding: .35rem .9rem; border-radius: 100px;
  transition: background .2s ease, border-color .2s ease;
}
.hero-tags a:hover, .hero-tags a:focus-visible {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar { background: var(--sage-pale); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding-block: 2.4rem;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem; color: var(--burgundy); line-height: 1.1;
}
.trust-item span { font-size: .85rem; color: var(--ink-soft); }

/* ==========================================================================
   SECTIONS COMMUNES
   ========================================================================== */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }


/* ----- Intro ----- */
/* Le surtitre de l'accueil est sorti de la grille à deux colonnes pour se
   centrer sur toute la largeur, et non sur la seule colonne de texte. */
.intro > .container:first-child { margin-bottom: 1.6rem; }

.intro-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.card-icon {
  font-size: 1.6rem; line-height: 1;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-pale);
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.card h3 { color: var(--burgundy); }
.card p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card-link {
  font-size: .88rem; font-weight: 600;
  margin-top: .4rem;
}

.expertises { background: var(--white); border-block: 1px solid var(--line); }

/* ----- Votre avocat ----- */
.avocat-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.domain-list { margin-top: 1.4rem; display: grid; gap: .9rem; }
.domain-list li {
  font-size: .93rem; color: var(--ink-soft);
  padding-left: 1.2rem; position: relative;
}
.domain-list li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy);
}
.domain-list strong { color: var(--ink); }

/* ----- Honoraires ----- */
.honoraires { background: var(--white); border-block: 1px solid var(--line); }

.rdv-panel {
  margin-top: 3rem;
  background: var(--sage-pale);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.rdv-panel h3 { text-align: center; margin-bottom: 1.6rem; }
.rdv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.rdv-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  display: flex; flex-direction: column; gap: .25rem;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.rdv-item:hover { border-color: var(--burgundy-light); }
.rdv-title { font-weight: 600; font-size: .95rem; }
.rdv-detail { font-size: .82rem; color: var(--ink-soft); }
.rdv-price {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--burgundy); margin-top: .3rem;
}
.rdv-note {
  text-align: center; margin: 1.6rem 0 0;
  font-size: .9rem; color: var(--ink-soft);
}

/* ----- Blog ----- */
.blog-card h3 { font-size: 1.08rem; }

/* ----- Contact ----- */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
}
.contact-list { display: grid; gap: 1.2rem; margin: 1.6rem 0 2rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list strong {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--burgundy); margin-bottom: .2rem;
}
.map-placeholder {
  background: var(--sage-pale);
  border: 1px dashed var(--sage-dark);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 1.4rem;
  /* .map-embed impose line-height: 0 pour coller à l'iframe, qui n'a pas de
     ligne de base. L'encadré, lui, contient du texte : sans ce rappel, les
     lignes se replient les unes sur les autres et le bouton passe dessus. */
  line-height: 1.55;
}
.map-placeholder p { margin: 0; max-width: 34ch; }
.map-placeholder .btn { display: inline-block; margin-top: 1rem; }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.contact-form h3 { margin-bottom: 1.4rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field span {
  display: block; font-size: .82rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem;
  background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(138, 53, 64, .12);
}
.field textarea { resize: vertical; }

.civilite {
  border: 0; padding: 0; margin: 0 0 1.2rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center;
}
.civilite legend {
  font-size: .82rem; font-weight: 600; padding: 0; margin-bottom: .4rem;
}
.civilite label { font-size: .9rem; display: flex; align-items: center; gap: .35rem; }

.checkbox {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .84rem; color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.checkbox input { margin-top: .3rem; flex-shrink: 0; }


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  /* Un ton plus foncé que --sage-dark : le blanc sur #6f8a85 ne dépassait
     pas 3,7:1, sous le minimum de 4,5:1 exigé pour un texte courant. */
  background: #627a76;
  color: #fff;
  padding-top: 3.5rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; margin-bottom: .9rem; }
.site-footer p { font-size: .9rem; margin-bottom: .35rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer li { font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-block: 1.2rem;
}
.footer-bottom p { font-size: .82rem; margin: 0; }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--burgundy); color: #fff;
  font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Sortie rapide (page violences conjugales)

   En haut à droite, sous l'en-tête collant. Les trois autres coins sont pris :
   le bouton de retour en haut occupe le bas à droite, l'icône de cookies
   d'Osano le bas à gauche, et le haut à gauche est celui du logo. C'est aussi
   le coin où l'on cherche instinctivement une croix de fermeture.
   -------------------------------------------------------------------------- */
.sortie-rapide {
  position: fixed; right: 22px; top: 118px; z-index: 120;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.05rem;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: .86rem; font-weight: 600; line-height: 1;
  text-decoration: none !important;
  box-shadow: var(--shadow-md);
  transition: background .2s ease, transform .2s ease;
}
.sortie-rapide:hover, .sortie-rapide:focus-visible {
  background: var(--burgundy); color: #fff; transform: translateY(-2px);
}
.sortie-rapide .croix { font-size: 1.05em; line-height: 1; }

@media (max-width: 640px) {
  .sortie-rapide { right: 12px; top: 92px; padding: .62rem .9rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sortie-rapide { transition: none; }
  .sortie-rapide:hover { transform: none; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.reveal, .card, .rdv-item, .trust-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.is-visible { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .rdv-item, .trust-item { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .intro-grid, .avocat-grid, .contact-grid { grid-template-columns: 1fr; }
  .avocat-media { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Menu repliable jusqu'à 1100 px, et non plus 920 : entre les deux, ses
   entrées ne tenaient pas sur une ligne et les dernières, dont le rendez-vous,
   sortaient de l'écran (petits portables, tablettes à l'horizontale). */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 102px 0 auto 0;
    background: var(--sage-pale);   /* prolonge l'en-tête */
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: calc(100vh - 102px); overflow-y: auto; }
  .main-nav > ul {
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 24px 1.6rem;
  }
  .main-nav .nav-cta { text-align: center; }
}

@media (max-width: 920px) {
  .hero { min-height: 70vh; padding: 4rem 0 3.5rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .container { padding-inline: 18px; }
}

/* ==========================================================================
   NAVIGATION À MENUS DÉROULANTS
   ========================================================================== */
.nav-root { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a, .drop-toggle {
  font-size: .82rem; font-weight: 500; color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
  font-family: inherit; background: none; border: 0; cursor: pointer;
  padding: .4rem 0; position: relative; white-space: nowrap;
}
.main-nav a.active { color: var(--burgundy); font-weight: 600; }
.drop-toggle::after {
  content: '▾'; margin-left: .35rem; font-size: .7em; opacity: .65;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -1rem; z-index: 60;
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }

.dropdown-menu li { position: relative; }
.dropdown-menu a {
  display: block; padding: .55rem 1.1rem;
  text-transform: none; letter-spacing: 0; font-size: .88rem;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--sage-pale); color: var(--burgundy); }

.has-sub > a::after {
  content: '›'; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); opacity: .5; display: block;
  width: auto; height: auto; background: none;
}
.submenu {
  position: absolute; top: -.5rem; left: 100%;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; }

/* ==========================================================================
   EN-TÊTE DE PAGE ET FIL D'ARIANE
   ========================================================================== */
.page-head {
  background: var(--sage-pale);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.8rem, 4vw, 3rem);
}
.page-head h1 { max-width: 22ch; margin: 0; text-wrap: balance; }

.breadcrumb { margin-bottom: .9rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--ink-soft);
  list-style: none; margin: 0; padding: 0;
}
.breadcrumb li + li::before { content: '›'; margin-right: .45rem; opacity: .6; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   CORPS D'ARTICLE + COLONNE LATÉRALE
   ========================================================================== */
.page-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.page-body.no-side { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

.article { min-width: 0; }
.article > p, .article > ul, .article > ol { max-width: 68ch; }
.article h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 2.2rem; padding-top: .2rem;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.12rem; margin-top: 1.7rem; color: var(--burgundy); }
.article ul { margin: 0 0 1.1rem; display: grid; gap: .5rem; }
.article li { padding-left: 1.2rem; position: relative; }
.article li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage-dark);
}
.article a { text-decoration: underline; text-underline-offset: 2px; }

.disclaimer {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage-dark);
  padding: .85rem 1.1rem;
  font-size: .88rem; color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-cta {
  margin-top: 3rem;
  background: var(--sage-pale);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.article-cta h2 { margin-top: 0; font-size: 1.3rem; }
.article-cta p { max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }

.btn-outline { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-outline:hover { background: var(--burgundy); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ----- Colonne latérale ----- */
.sidebar { position: sticky; top: 104px; display: grid; gap: 1.5rem; }
.sidebar-title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-body); color: var(--burgundy); margin: 0;
}
.sidebar-title a { color: inherit; }
.sidebar-nav {
  display: grid;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.sidebar-nav li + li { border-top: 1px solid var(--line); }
.sidebar-nav a {
  display: block; padding: .7rem 1rem;
  font-size: .88rem; color: var(--ink);
}
.sidebar-nav a:hover { background: var(--sage-pale); color: var(--burgundy); }
.sidebar-nav a.active {
  background: var(--burgundy); color: #fff; font-weight: 600;
}
.sidebar-cta {
  background: var(--sage-pale); border-radius: var(--radius); padding: 1.3rem;
}
.sidebar-cta p { font-size: .88rem; margin-bottom: .6rem; }
.sidebar-phone {
  display: block; text-align: center; margin-top: .7rem;
  font-weight: 600; font-size: 1.05rem;
}

/* ==========================================================================
   PAGES PÔLES : GRILLE DES SOUS-SUJETS
   ========================================================================== */
.sub-pages { margin-top: 2.5rem; }
.sub-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
}
.sub-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sub-card:hover {
  border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
/* La vignette garde son rapport quelle que soit la largeur de la colonne :
   le cadre est dessiné par aspect-ratio, la photo le remplit en recadrant. */
.sub-media {
  display: block; aspect-ratio: 5 / 3; max-width: 100%;
  background: var(--sage-pale); overflow: hidden;
}
.sub-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.sub-card:hover .sub-media img { transform: scale(1.04); }
.sub-body {
  display: flex; flex-direction: column; gap: .45rem; flex: 1;
  padding: .9rem 1.1rem 1.05rem;
}
/* « Lire la suite » se cale en bas : sur une ligne, les libellés tenant
   sur une ou deux lignes gardent tout de même le même appui. */
.sub-titre { font-weight: 600; color: var(--ink); font-size: .95rem; }
.sub-card em { margin-top: auto; font-style: normal; font-size: .82rem; color: var(--burgundy); }
/* Une carte sans vignette garde la même respiration que les autres. */
.sub-card > .sub-body:first-child { padding-top: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .sub-card, .sub-media img { transition: none; }
  .sub-card:hover { transform: none; }
  .sub-card:hover .sub-media img { transform: none; }
}

/* ==========================================================================
   ICÔNES D'EXPERTISE (SVG en fond, sans requête réseau)
   ========================================================================== */
.card-icon {
  background-color: var(--sage-pale);
  background-repeat: no-repeat; background-position: center;
  background-size: 26px 26px;
}
.icon-famille  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-9a4 4 0 0 1 7-2.6A4 4 0 0 1 19 12c0 4.5-7 9-7 9z'/%3E%3C/svg%3E"); }
.icon-travail  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 12h18'/%3E%3C/svg%3E"); }
.icon-penal    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.3 8.3-8 9-4.7-.7-8-4.5-8-9V6z'/%3E%3C/svg%3E"); }
.icon-mineurs  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0'/%3E%3C/svg%3E"); }
.icon-amiable  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13l3 3 5-6'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); }
.icon-postulation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3540' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V9l7-5 7 5v12M9 21v-6h6v6'/%3E%3C/svg%3E"); }

.card h3 a { color: inherit; }

/* ==========================================================================
   PAGES CONTACT, ACCÈS, PLAN DU SITE
   ========================================================================== */
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-block { margin-bottom: 2rem; }
.form-intro { font-size: .85rem; color: var(--ink-soft); }

/* Réserve sur le conflit d'intérêts : un avertissement, pas un paragraphe
   de plus. Encadré à gauche, comme les autres mises en garde du site. */
.form-avis {
  margin: 0 0 1.4rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--burgundy);
  background: var(--sage-pale);
  font-size: .93rem;
  line-height: 1.5;
}
.contact-teaser { background: var(--white); border-top: 1px solid var(--line); }
.contact-teaser-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.map-placeholder.large { min-height: 380px; margin-bottom: 2rem; }
.acces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.acces-grid h2 { margin-top: 0; }

.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.sitemap-group h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-body); color: var(--burgundy);
  padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem;
}
.sitemap-group ul { display: grid; gap: .45rem; }
.sitemap-group a { font-size: .9rem; }

.site-footer h3 {
  color: #fff; font-size: .82rem; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem;
}
.footer-social-title { margin-top: 1.6rem; }
.footer-hours { font-size: .82rem; margin-top: .6rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .9rem; }

/* ==========================================================================
   RESPONSIVE — COMPLÉMENTS
   ========================================================================== */
/* Juste au-dessus du menu repliable, le menu en ligne se resserre. */
@media (min-width: 1101px) and (max-width: 1280px) {
  /* mêmes sélecteurs que les règles de base, sans quoi elles l'emportent */
  .main-nav > ul, .nav-root { gap: .85rem; }
  .main-nav > ul > li > a, .main-nav .drop-toggle {
    font-size: .74rem; letter-spacing: .04em;
  }
  .logo-svg { height: 66px; }
  /* le menu Expertises s'ouvre un peu plus à gauche, pour que ses
     sous-menus, qui partent vers la droite, restent dans l'écran */
  .dropdown-menu { left: -6rem; }
}

@media (max-width: 980px) {
  .page-body, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  /* Sur une colonne, la colonne latérale passe sous l'article, donc juste après
     l'encart « Besoin d'un avocat… » qui dit déjà la même chose. On garde la
     navigation vers les sujets voisins, on masque l'appel en double. */
  .sidebar-cta { display: none; }
  .contact-teaser-grid, .acces-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav-root { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-root > li { border-bottom: 1px solid var(--line); }
  .nav-root > li:last-child { border: 0; margin-top: 1rem; }
  .main-nav a, .drop-toggle {
    display: block; width: 100%; padding: .9rem 0; text-align: left;
  }
  .dropdown-menu, .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; min-width: 0;
    background: var(--sage-pale);
    border-radius: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .dropdown.open > .dropdown-menu { max-height: 1400px; }
  .has-sub.open > .submenu { max-height: 900px; }
  .dropdown-menu a { padding: .7rem 1rem; }
  .submenu a { padding-left: 2rem; font-size: .84rem; }
  .has-sub > a::after { content: ''; }
  .drop-toggle[aria-expanded="true"]::after { content: '▴'; }
}

/* Bloc de contenu restant à fournir avant mise en ligne */
.todo {
  background: #fdf6e8;
  border-left: 3px solid #b5851f;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
}
.todo p { font-size: .9rem; margin-bottom: .5rem; }
.todo p:last-child { margin-bottom: 0; }

/* ==========================================================================
   IMAGES
   ========================================================================== */
.logo img { height: 78px; width: auto; display: block; }
/* Essai du monogramme : même hauteur que l'ancien logo. */
.logo-svg { height: 78px; width: auto; display: block; }

.article-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage-pale);
}
.article-figure img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
}
/* Le portrait est vertical : pas de recadrage, et une largeur contenue. */
.article-figure.portrait {
  max-width: 340px;
  float: right;
  margin: 0 0 1.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.article-figure.portrait img { aspect-ratio: auto; }

/* Cartes d'expertise avec visuel */
.card-with-media { padding: 0; overflow: hidden; }
.card-with-media .card-body {
  padding: 1.6rem 1.8rem 2rem;
  display: flex; flex-direction: column; flex: 1;
}
.card-media { display: block; overflow: hidden; background: var(--sage-pale); }
.card-media img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .4s ease;
}
.card-with-media:hover .card-media img { transform: scale(1.04); }

/* La vue de la cour d'appel est très panoramique : pas de recadrage 3/2,
   qui amputerait les colonnes et les marches. */
.intro-media img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  aspect-ratio: auto; object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Icônes des réseaux sociaux */
.social-links img {
  width: 28px; height: 28px;
  opacity: .85; transition: opacity .2s ease, transform .2s ease;
}
.social-links a:hover img { opacity: 1; transform: translateY(-2px); }

/* Le monogramme se pose directement sur le vert sombre : la plaque blanche
   qui portait l'ancien bandeau n'a plus lieu d'être. */
.footer-logo {
  width: 230px; height: auto;
  margin-bottom: .9rem;
}

.footer-partners {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 2.5rem;
  padding-block: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.footer-partners img {
  height: 42px; width: auto;
  background: #fff; border-radius: 4px; padding: 5px 8px;
  opacity: .9; transition: opacity .2s ease;
}
.footer-partners a:hover img { opacity: 1; }
.footer-partners a:nth-child(3) img { height: 56px; }

@media (max-width: 640px) {
  .article-figure.portrait {
    float: none; max-width: 280px; margin: 0 auto 1.5rem;
  }
  .footer-partners { gap: 1.5rem; }
  .footer-partners img { height: 34px; }
  .logo img { height: 56px; }
}

/* Domaines d'intervention : libellé + définition */
.domains { display: grid; gap: 0; margin: 0 0 1.5rem; }
.domains dt {
  font-weight: 600; color: var(--burgundy);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  padding-top: 1.1rem; margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.domains dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.domains dd {
  margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; max-width: 68ch;
}

/* ==========================================================================
   OUTILS INTÉGRÉS (carte, fil du blog)
   ========================================================================== */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sage-pale);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-embed.large { margin: 2rem 0; }
.map-embed.large iframe { height: 440px; }
.contact-block .map-embed { margin-top: 1.5rem; }

.blog-feed { background: var(--cream); border-top: 1px solid var(--line); }
.blog-feed .btn { margin-top: 1.5rem; }

@media (max-width: 640px) {
  .map-embed iframe { height: 260px; }
  .map-embed.large iframe { height: 300px; }
  /* Sur un téléphone, un encadré de 380 px pour deux lignes et un bouton fait
     un grand vide à traverser. On le resserre : la carte, elle, garde sa
     hauteur une fois affichée. */
  .map-placeholder { min-height: 190px; }
  .map-placeholder.large { min-height: 220px; }
}

/* Accès en transports en commun */
.transports { display: grid; gap: .9rem; }
.transports li {
  padding-left: 1.2rem; position: relative;
  color: var(--ink-soft); font-size: .95rem;
}
.transports li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy);
}
.transports strong { color: var(--ink); }

/* Formules de rendez-vous cliquables */
a.rdv-item { text-decoration: none; color: inherit; }
a.rdv-item:hover { border-color: var(--burgundy); transform: translateY(-2px); }
.rdv-go {
  font-size: .8rem; font-weight: 600; color: var(--burgundy); margin-top: .5rem;
}

/* Moyens de paiement */
.pay-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem; margin-top: 2rem;
}
.pay-option {
  background: var(--sage-pale);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column;
}
.pay-option h2 { margin-top: 0; font-size: 1.25rem; }
.pay-option p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.pay-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* ==========================================================================
   PAGE CONTACT — coordonnées, rendez-vous, puis formulaire
   ========================================================================== */
.contact-page { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); max-width: 900px; }
.contact-page section { padding-block: 0; }
/* sauf le bloc vert des rendez-vous, qui garde sa marge intérieure : sans elle,
   le cadre blanc du bas touchait le bord et le vert disparaissait dessous */
.contact-page section.rdv-panel { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.contact-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: start;
}
.contact-page h2 { margin-top: 0; }
.form-section { scroll-margin-top: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Piège à robots : retiré du flux sans display:none, que certains automates détectent */
.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 500; color: var(--burgundy); }
.form-status.is-ok {
  color: #1d6b4a;
  background: #e8f4ee; border-left: 3px solid #1d6b4a;
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.form-status.is-erreur {
  color: var(--burgundy-dark);
  background: #fbeeef; border-left: 3px solid var(--burgundy);
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 640px) {
  .contact-cols, .field-row { grid-template-columns: 1fr; }
}

/* Les cartes de rendez-vous s'alignent malgré des titres de hauteurs inégales */
.rdv-item .rdv-price { margin-top: auto; padding-top: .4rem; }
.rdv-item .btn { margin-top: .8rem; }

/* ==========================================================================
   CARROUSEL DE LA PAGE D'ACCUEIL
   Les six vues de Lyon de l'ancien site, en fondu enchaîné. Le texte du
   bandeau reste fixe : seules les photos défilent derrière.
   ========================================================================== */
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 45%;
  opacity: 0;
}

/* Tant que le script n'a pas chargé les vues 2 à 6, la première reste
   affichée, fixe : le bandeau garde une image même sans JavaScript. */
.hero-slideshow:not(.pret) .hero-slide:nth-child(1) { opacity: 1; }

/* Les délais sont déclarés DANS le contexte « pret » : placés à l'extérieur,
   ils seraient écrasés par la règle raccourcie « animation », qui remet le
   délai à zéro — les six vues disparaîtraient alors en même temps. */
.hero-slideshow.pret .hero-slide { animation: heroDefile 42s infinite; }
.hero-slideshow.pret .hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slideshow.pret .hero-slide:nth-child(2) { animation-delay:  7s; }
.hero-slideshow.pret .hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slideshow.pret .hero-slide:nth-child(4) { animation-delay: 21s; }
.hero-slideshow.pret .hero-slide:nth-child(5) { animation-delay: 28s; }
.hero-slideshow.pret .hero-slide:nth-child(6) { animation-delay: 35s; }

/* 6 vues x 7 s = 42 s ; environ 1,5 s de fondu de part et d'autre */
@keyframes heroDefile {
  0%    { opacity: 0; transform: scale(1.06); }
  3.5%  { opacity: 1; }
  14%   { opacity: 1; }
  17.5% { opacity: 0; transform: scale(1); }
  100%  { opacity: 0; transform: scale(1.06); }
}

/* Voile de lecture, au-dessus des photos */
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(28, 27, 26, .86) 0%, rgba(84, 30, 37, .74) 52%, rgba(45, 62, 60, .80) 100%);
}

@media (prefers-reduced-motion: reduce) {
  /* la règle générale fige les animations : sans cela, toutes les vues
     resteraient invisibles et le bandeau apparaîtrait vide */
  .hero-slide { opacity: 0; transform: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}
}

/* Légende de la photo de prestation de serment */
.intro-legende {
  font-size: .8rem; color: var(--ink-soft);
  text-align: center; margin: .7rem 0 0; font-style: italic;
}

/* ==========================================================================
   BOUTONS D'ACTION
   Ressources externes ou documents à télécharger, mis en avant en tête d'article.
   ========================================================================== */
.boutons-action {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin: 0 0 2rem;
}
.bouton-action {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--burgundy); color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bouton-action:hover {
  background: var(--burgundy-dark); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.bouton-libelle { font-weight: 600; font-size: 1rem; }
.bouton-libelle::after { content: ' →'; }
.bouton-detail { font-size: .82rem; opacity: .85; line-height: 1.4; }

/* Liste des domaines, dans le texte d'introduction de l'accueil */
.domaines-liste { display: grid; gap: .6rem; margin: 0 0 1.1rem; }
.domaines-liste li {
  padding-left: 1.2rem; position: relative;
}
.domaines-liste li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy);
}

/* Tableau des cookies, dans la politique de confidentialité */
.tableau-cookies {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem;
  font-size: .9rem;
}
.tableau-cookies th, .tableau-cookies td {
  text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line);
}
.tableau-cookies th {
  background: var(--sage-pale); font-weight: 600;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
.tableau-cookies td:first-child {
  font-family: ui-monospace, monospace; font-size: .85rem;
  /* Les noms de cookies sont d'un seul tenant : sans coupure permise, le
     tableau déborde sur un téléphone et fait dézoomer la page entière. */
  overflow-wrap: anywhere;
}
/* Le tableau des durées porte des libellés, pas des noms techniques. */
.tableau-durees td:first-child,
.tableau-cookies td.libelle { font-family: inherit; font-size: inherit; overflow-wrap: normal; }
@media (max-width: 640px) {
  .tableau-cookies { font-size: .82rem; }
  .tableau-cookies th, .tableau-cookies td { padding: .5rem .45rem; }
  .tableau-cookies th { letter-spacing: .02em; }
}

/* Mention du cabinet, première colonne du pied de page */
.footer-mention {
  font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.4; color: #fff;
  margin: 0;
}

/* Chapô : le résumé qui ouvre les pages pôle. Il n'est pas un titre — le
   niveau de titre suivant est un <h2>, la hiérarchie reste continue. */
.article .chapo {
  font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft);
  border-left: 3px solid var(--sage); padding-left: 1rem;
  margin-bottom: 1.6rem;
}

/* Mentions légales : identité de l'éditeur en deux colonnes sur écran large. */
.identite { margin: 0 0 1.8rem; }
.identite dt {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-top: .9rem;
}
.identite dd { margin: .15rem 0 0; color: var(--ink); }
@media (min-width: 640px) {
  .identite {
    display: grid; grid-template-columns: minmax(0, 15rem) 1fr;
    column-gap: 1.5rem; row-gap: .1rem; align-items: baseline;
  }
  .identite dt { margin-top: .55rem; }
  .identite dd { margin-top: .55rem; }
}

/* ==========================================================================
   PRÉPARER MON RENDEZ-VOUS
   ==========================================================================
   Le questionnaire est long : chaque partie est une carte, les questions à
   choix s'alignent en boutons que l'on touche facilement au doigt. */
/* Le renvoi depuis les formules de rendez-vous (accueil, contact) */
.rdv-preparer {
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  justify-content: center; text-align: left;
  margin: 1.4rem auto 0; max-width: 46rem;
  padding: 1rem 1.2rem;
  background: var(--white); border-radius: var(--radius);
}
.rdv-preparer p { margin: 0; flex: 1 1 18rem; font-size: .9rem; color: var(--ink-soft); }
.rdv-preparer .btn { flex-shrink: 0; }
.honoraires .rdv-preparer + .center { margin-top: 1.4rem; }

/* Les trois étapes : numérotées par un chiffre dans un rond, à la place de la
   puce des listes d'article. */
.article .preparer-etapes {
  list-style: none; counter-reset: etape;
  margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem;
}
.article .preparer-etapes li { counter-increment: etape; padding-left: 2.3rem; }
.article .preparer-etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: .05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--burgundy); color: #fff;
  font-size: .82rem; font-weight: 600; line-height: 1.6rem; text-align: center;
}
.avis-violences { border-left-color: var(--sage-dark); background: var(--cream); }

.preparer-form { margin-top: 2rem; }
.etape {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3.5vw, 2rem);
  margin-bottom: 1.4rem;
}
.etape[hidden] { display: none; }
.article .etape h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.etape-intro { font-size: .92rem; color: var(--ink-soft); margin: -.3rem 0 1.2rem; }

.field small, .choix small {
  display: block; font-size: .8rem; color: var(--ink-soft);
  margin: -.15rem 0 .4rem;
}
.field select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem;
  background: var(--white); color: var(--ink);
}
.field select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(138, 53, 64, .12);
}
.field input[type="date"] { min-height: 2.9rem; }

.choix { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.choix legend { font-size: .82rem; font-weight: 600; padding: 0; margin-bottom: .45rem; }
.choix-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix-options label {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem; line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.choix-options label:hover { border-color: var(--burgundy-light); }
.choix-options label:has(input:checked) { border-color: var(--burgundy); background: #fbf3f4; }
.choix-options input { accent-color: var(--burgundy); margin: 0; flex-shrink: 0; }

.enfant {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto;
  gap: .4rem 1rem; align-items: end;
  padding-bottom: .4rem; margin-bottom: .8rem;
  border-bottom: 1px dashed var(--line);
}
.enfant-titre { grid-column: 1 / -1; font-weight: 600; font-size: .9rem; color: var(--burgundy); }
.enfant .field { margin-bottom: .7rem; }
.enfant-retirer {
  margin-bottom: .7rem; padding: .7rem .6rem;
  background: none; border: 0; color: var(--ink-soft);
  font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer;
}
.enfant-retirer:hover { color: var(--burgundy); }
.enfant-ajouter { margin: .2rem 0 1.6rem; padding: .6rem 1.2rem; font-size: .88rem; }

.pieces { list-style: none; padding: 0; margin: 0; }
.article .pieces li {
  position: relative; padding-left: 1.7rem; margin-bottom: .55rem;
  font-size: .94rem;
}
.article .pieces li::before {
  content: ""; position: absolute; left: 0; top: .22rem;
  width: .95rem; height: .95rem;
  border: 1.5px solid var(--sage-dark); border-radius: 3px;
  background: none;
}
.pieces li[hidden] { display: none; }

.preparer-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.preparer-actions .btn:disabled { opacity: .6; cursor: wait; transform: none; }

@media (max-width: 640px) {
  .enfant { grid-template-columns: 1fr; gap: 0; }
  .enfant-retirer { justify-self: start; padding-left: 0; }
  .preparer-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================================
   IMPRESSION
   ==========================================================================
   Les clients impriment la page Tarifs avant un rendez-vous, les mentions
   légales, un article sur leur procédure. À l'écran la page porte un menu, un
   bandeau photo, des boutons et un pied de page : rien de tout cela n'a de
   sens sur papier, et cela faisait trois feuilles au lieu d'une.
   ========================================================================== */
@page { margin: 15mm; }

@media print {
  /* Ce qui ne sert qu'à l'écran. La photo d'illustration en tête d'article
     est décorative : sur papier elle prend une demi-page pour rien. */
  .site-header, .site-footer, .back-to-top, .skip-link,
  .hero, .page-hero, .trust-bar, .breadcrumb,
  .article-cta, .cta-actions, .btn, .rdv-panel, .sub-pages,
  .side, .sidebar, .map-embed, .blog-feed, .contact-teaser,
  .article > figure, .bouton-action, .carrousel, .pour-aller-plus-loin,
  .osano-cm-window, .osano-cm-dialog, form, iframe {
    display: none !important;
  }

  /* Papier : noir sur blanc, et des largeurs qui ne débordent pas. */
  :root { --ink: #000; --ink-soft: #222; }
  body {
    background: #fff; color: #000;
    font-size: 11pt; line-height: 1.45;
  }
  .container, .page-body, .article { max-width: none; width: auto; margin: 0; padding: 0; }
  .page-body { display: block; }

  /* En-tête ajouté sur la première feuille : le lecteur sait d'où vient le
     document, ce que l'adresse de la page en pied ne dit pas toujours. */
  main::before {
    content: "Cabinet Laurent Cretin — Avocat au Barreau de Lyon — 67 rue Bataille, 69008 Lyon — 06 28 78 83 59 — avocat-laurentcretin.fr";
    display: block;
    font-size: 8.5pt; letter-spacing: .02em;
    border-bottom: 1pt solid #000;
    padding-bottom: 6pt; margin-bottom: 14pt;
  }

  h1 { font-size: 19pt; margin-bottom: 8pt; }
  h2 { font-size: 13.5pt; margin-top: 16pt; }
  h3 { font-size: 11.5pt; }
  /* Un titre ne reste jamais seul en bas de page, un paragraphe ne se coupe
     pas sur une ligne isolée. */
  h1, h2, h3 { break-after: avoid-page; page-break-after: avoid; }
  p, li, dd, tr { break-inside: avoid; page-break-inside: avoid; orphans: 3; widows: 3; }

  /* Sur papier, un lien souligné ne mène nulle part : on écrit son adresse. */
  a { color: #000; text-decoration: none; }
  .article a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }
  .article a[href$=".html"]::after { content: " (avocat-laurentcretin.fr/" attr(href) ")"; font-size: 8.5pt; }

  .chapo { border-left: 0; padding-left: 0; font-style: italic; }
  .maj { border-top: 0; margin-top: 1.5rem; }
  .disclaimer { border: 1pt solid #000; padding: 6pt 8pt; }
  figure, img { max-width: 100%; break-inside: avoid; page-break-inside: avoid; }
  .identite { display: block; }
  .identite dt { margin-top: 7pt; }
  table { width: 100%; border-collapse: collapse; }
  table th, table td { border: .5pt solid #666; padding: 3pt 5pt; font-size: 9.5pt; }
}

/* ==========================================================================
   CARROUSEL DES DERNIERS ARTICLES
   ==========================================================================
   Les cartes défilent dans un conteneur qui garde la place de chacune
   (scroll-snap) : au doigt sur mobile, aux flèches à la souris et au clavier.
   ========================================================================== */
.carrousel {
  position: relative;
  margin: 2rem 0 1.8rem;
}
.carrousel-piste {
  display: flex; gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 .25rem;
  /* place pour l'ombre des cartes, sinon rognée par le débordement */
  padding: .3rem .25rem 1rem;
  scrollbar-width: thin;
}
.carrousel-carte {
  flex: 0 0 clamp(250px, 30%, 320px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.carrousel-carte:hover {
  border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.carrousel-media {
  display: block; aspect-ratio: 16 / 9;
  background: var(--sage-pale); overflow: hidden;
}
.carrousel-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.carrousel-carte:hover .carrousel-media img { transform: scale(1.04); }
.carrousel-corps {
  display: flex; flex-direction: column; gap: .5rem; flex: 1;
  padding: 1rem 1.15rem 1.15rem;
}
.carrousel-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem;
}
.carrousel-etiquette {
  display: inline-block;
  background: var(--sage-pale); color: var(--burgundy-dark);
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px;
}
.carrousel-date {
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.carrousel-titre {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  line-height: 1.3; color: var(--ink);
}
.carrousel-extrait { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.carrousel-carte em {
  margin-top: auto; font-style: normal; font-size: .82rem; color: var(--burgundy);
}

.carrousel-fleche {
  position: absolute; top: 40%; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--burgundy);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, opacity .2s ease;
}
.carrousel-fleche:hover:not(:disabled) { background: var(--sage-pale); }
.carrousel-fleche:disabled { opacity: .3; cursor: default; }
.carrousel-fleche.precedent { left: -14px; }
.carrousel-fleche.suivant { right: -14px; }

/* Au doigt, les flèches n'ont pas d'usage et mangeraient une carte. */
@media (max-width: 720px) {
  .carrousel-fleche { display: none; }
  .carrousel-carte { flex-basis: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .carrousel-carte, .carrousel-media img { transition: none; }
  .carrousel-carte:hover { transform: none; }
  .carrousel-carte:hover .carrousel-media img { transform: none; }
}

/* Date de dernière modification, en pied d'article : discrète pour le lecteur,
   explicite pour les moteurs — une page de droit se périme. */
.maj {
  margin-block: 0 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.maj p {
  margin: 0;
  font-size: .8rem; color: var(--ink-soft);
}

/* Citation mise en exergue — la parole de l'avocat, distinguée du texte
   rédactionnel qui l'entoure. */
.article .citation {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--sage-pale);
  border-left: 3px solid var(--burgundy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article .citation p {
  margin: 0;
  font-family: var(--font-display); font-size: 1.12rem;
  line-height: 1.5; color: var(--ink); font-style: italic;
}

/* Liens du texte d'origine rétablis en fin d'article : le maillage vers le
   blog et les autres pages ne doit pas disparaître avec une réécriture. */
.pour-aller-plus-loin {
  margin: 2.4rem 0 0;
  padding: 1.3rem 1.5rem;
  background: var(--sage-pale);
  border-radius: var(--radius);
}
.pour-aller-plus-loin h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.pour-aller-plus-loin h3 {
  font-family: var(--font-body);
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); margin: 1rem 0 .4rem;
}
.pour-aller-plus-loin ul { margin: 0; display: grid; gap: .35rem; }
.pour-aller-plus-loin li { padding-left: 1.1rem; position: relative; font-size: .92rem; }
.pour-aller-plus-loin li::before {
  content: "→"; position: absolute; left: 0; color: var(--burgundy);
}

/* ----- Accueil : les situations les plus fréquentes -----
   Accès direct aux pages les plus recherchées, en étiquettes cliquables. */
.questions-frequentes { background: var(--cream); border-top: 1px solid var(--line); }
.sujets-frequents {
  list-style: none; margin: 0 auto; padding: 0; max-width: 60rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.sujets-frequents a {
  display: inline-block; padding: .65rem 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: .92rem; font-weight: 500;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.sujets-frequents a:hover, .sujets-frequents a:focus-visible {
  border-color: var(--burgundy); color: var(--burgundy); background: #fbf3f4;
}

/* ----- Calcul de l'indemnité de licenciement -----
   Formulaire repris de « Préparer mon rendez-vous » (.etape, .field, .choix) ;
   le résultat s'affiche dans un encadré vert pâle sous le bouton. */
.calcul-form { margin-top: 1.6rem; }
.calcul-form .choix-options label { align-items: flex-start; }
.calcul-resultat {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  margin: 1.6rem 0;
  scroll-margin-top: 120px;
}
.calcul-resultat[hidden] { display: none; }
.article .calcul-resultat h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.calcul-anciennete { margin-bottom: 1rem; }
.calcul-table { width: 100%; border-collapse: collapse; margin: .4rem 0 .6rem; }
.calcul-table th, .calcul-table td {
  padding: .7rem 0; border-bottom: 1px solid rgba(111, 138, 133, .3);
  text-align: left; vertical-align: top; font-size: .95rem;
}
.calcul-table th { font-weight: 500; padding-right: 1rem; }
.calcul-table th small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }
.calcul-table td { text-align: right; white-space: nowrap; font-weight: 600; color: var(--burgundy); }
.calcul-bareme {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  background: var(--white); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin: .6rem 0 .9rem;
}
.calcul-bareme strong { font-size: 1.2rem; color: var(--burgundy); }
.calcul-alerte {
  background: #fbf3f4; border-left: 3px solid var(--burgundy);
  padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .93rem;
}
.calcul-erreur { margin: 0; color: var(--burgundy); font-weight: 500; }
.calcul-notes { margin: 1rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--ink-soft); }
.calcul-notes li { margin-bottom: .3rem; }
@media print {
  .calcul-form .preparer-actions { display: none; }
}

/* ----- Simulateur de pension alimentaire ----- */
.pension-montant {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 0 0 1rem;
}
.pension-montant span { font-size: .85rem; color: var(--ink-soft); }
.pension-montant strong { font-family: var(--font-display); font-size: 2rem; color: var(--burgundy); line-height: 1.2; }
.bareme-pension { margin: 1rem 0 1.4rem; }
.bareme-pension thead th {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--sage); padding-bottom: .5rem;
}
.bareme-pension td, .bareme-pension thead th:not(:first-child) { text-align: center; }
.bareme-pension td { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .bareme-pension th, .bareme-pension td { font-size: .82rem; padding: .55rem .2rem; }
  .bareme-pension thead th { font-size: .66rem; letter-spacing: 0; }
}

/* ----- Calculateur des délais pour agir ----- */
.delai-titre { font-weight: 600; margin-bottom: .6rem; }
.delai-date {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: 0 0 1rem;
}
.delai-date span { font-size: .88rem; color: var(--ink-soft); }
.delai-date strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--burgundy); line-height: 1.25; }
.delai-depasse strong { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 1px; }
.delais-table td, .delais-table thead th:not(:first-child) { text-align: left; }
.delais-table th[scope="row"] { font-weight: 500; }
.delais-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--burgundy); }
@media (max-width: 560px) {
  .delais-table td:nth-child(2) { white-space: normal; }
  .delais-table th, .delais-table td { font-size: .8rem; padding: .5rem .25rem; }
}
.article .etape + .etape h2 { margin-top: 0; }
.pension-montant strong { word-break: normal; }
@media (max-width: 560px) { .pension-montant strong { font-size: 1.5rem; } }
