/* ==========================================================================
   Raphaëlle Guibal — Avocate · rguibal-avocat.fr
   ========================================================================== */

/* ---------- Police Open Sans (auto-hébergée) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-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: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans-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: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-italic-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: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-italic-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;
}

/* ---------- Palette & variables ---------- */
:root {
  --bg: #F7F3EC;          /* blanc cassé */
  --bg-alt: #EFE7DA;      /* beige clair */
  --surface: #FCFAF6;
  --navy: #1F2A44;        /* bleu marine */
  --navy-soft: #34405E;
  --navy-deep: #18213A;
  --brown: #7A5534;       /* marron */
  --brown-light: #A67C52;
  --text: #28314A;
  --muted: #565D6F;
  --line: #D9CDBB;
  --on-dark: #F1EADF;
  --on-dark-muted: rgba(241, 234, 223, .72);

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Bilingue : on n'affiche que la langue active ---------- */
html[lang="fr"] body [lang="en"],
html[lang="en"] body [lang="fr"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-decoration-color: var(--brown-light); text-underline-offset: 3px; }
a:hover { color: var(--brown); }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 300; letter-spacing: -.005em; }
h3 { font-size: 1.2rem; font-weight: 600; }

::selection { background: var(--navy); color: var(--bg); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Éléments typographiques ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown);
}

.rule {
  width: 56px;
  height: 1px;
  margin: 26px 0;
  border: 0;
  background: var(--brown);
}
.center .rule, .rule.center { margin-inline: auto; }

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  border: 1px solid var(--navy);
  border-radius: 0;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--brown); border-color: var(--brown); color: var(--bg); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--bg); }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); }
.btn-light:hover { background: transparent; color: var(--on-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* monogramme à gauche, nom + sous-titre empilés à droite */
.brand {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  column-gap: 14px;
  margin-right: auto;
  text-decoration: none;
  line-height: 1.25;
}
.brand-logo {
  grid-row: span 2;
  width: 56px;
  height: 48px;
  fill: currentColor;
  color: var(--navy);
}
.brand-name {
  align-self: end;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--navy);
}
.brand-sub {
  align-self: start;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown);
}

.nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  padding-block: 8px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brown); }

/* Sous-menu « Domaines d'intervention » (survol ou focus clavier) */
.nav .has-sub { position: relative; }
.nav .has-sub > a { display: flex; align-items: center; gap: 8px; }
.nav .caret {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.nav .subnav {
  position: absolute;
  top: calc(50% + var(--header-h) / 2);
  left: -22px;
  display: block;
  min-width: 240px;
  padding: 10px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brown);
  box-shadow: 0 18px 40px -24px rgba(31, 42, 68, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
/* pont invisible entre le lien et le menu, pour que le survol ne se perde pas */
.nav .subnav::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: calc(var(--header-h) / 2);
}
.nav .has-sub:hover > .subnav,
.nav .has-sub:focus-within > .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav .has-sub:hover .caret,
.nav .has-sub:focus-within .caret { transform: translateY(1px) rotate(225deg); }
.nav .subnav a {
  padding: 9px 22px;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--navy);
}
.nav .subnav a::after { display: none; }
.nav .subnav a:hover,
.nav .subnav a:focus-visible { background: var(--bg-alt); color: var(--brown); }
.nav .subnav .sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
@media (min-width: 961px) {
  /* refermé après un clic sur une ancre, jusqu'à ce que la souris quitte le menu */
  .nav .has-sub.is-closed > .subnav { opacity: 0; visibility: hidden; }
}

/* Sélecteur de langue FR | EN */
.lang-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--navy);
  border-radius: 999px;
}
.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--navy);
  transition: transform .3s var(--ease);
}
html[lang="en"] .lang-switch::before { transform: translateX(100%); }
.lang-switch button {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  cursor: pointer;
  transition: color .3s var(--ease);
}
html[lang="fr"] .lang-switch [data-set-lang="fr"],
html[lang="en"] .lang-switch [data-set-lang="en"] { color: var(--bg); }

/* Bouton menu mobile */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Accueil : bandeau illustré ---------- */
.hero {
  padding-top: clamp(28px, 5vw, 56px);
  text-align: center;
}
.hero-art img {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}
.hero-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brown);
}
.hero-caption::before,
.hero-caption::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--brown-light);
}

/* ---------- Accueil : présentation ---------- */
.intro { padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.portrait {
  position: relative;
  max-width: 460px;
  margin-right: 18px;
  margin-bottom: 18px;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brown-light);
}
.portrait picture { display: block; }
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--bg-alt);
}

.domain-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
}
.domain-tags li {
  position: relative;
  padding-left: 26px;
}
.domain-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 14px; height: 1px;
  background: var(--brown-light);
}
.domain-tags small {
  font-size: .92em;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: none;
}

.intro h1 { margin-bottom: 14px; }
.intro .bar-title {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy-soft);
}
.intro .quick-contact {
  margin-top: 28px;
  font-size: .92rem;
  color: var(--muted);
}
.intro .quick-contact a { font-weight: 600; text-decoration: none; }

/* ---------- Cartes domaines ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brown);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(31, 42, 68, .35); }
.card .icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--brown); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { flex: 1; margin: 4px 0 24px; }

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: .96rem;
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .82em;
  width: 10px; height: 1px;
  background: var(--brown);
}

/* ---------- Approche ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.value { padding-top: 24px; border-top: 1px solid var(--line); }
.value-num {
  display: block;
  margin-bottom: 14px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brown);
}
.value p { color: var(--muted); font-size: .98rem; }

/* ---------- Bandeau contact ---------- */
.cta {
  padding-block: clamp(56px, 8vw, 88px);
  background: var(--navy);
  color: var(--on-dark);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { margin-bottom: 8px; color: var(--on-dark); }
.cta p { margin: 0; color: var(--on-dark-muted); }
.cta-phones { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.cta-phones a {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--on-dark);
  text-decoration: none;
}
.cta-phones a:hover { color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 64px 28px;
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(241, 234, 223, .14);
}
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-logo { color: var(--on-dark); }
.site-footer .brand-name { color: var(--on-dark); }
.site-footer .brand-sub { color: var(--brown-light); }
.site-footer h4 {
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown-light);
}
.site-footer p { margin-bottom: .5em; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .8rem;
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(44px, 6vw, 72px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -6px;
  width: min(560px, 48vw);
  aspect-ratio: 1200 / 450;
  background: url("../images/palais.svg") no-repeat right bottom / contain;
  opacity: .14;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 760px; }
.page-hero .lead { max-width: 640px; margin: 0; }

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.about-aside .portrait { max-width: 380px; }
.about-text p { font-size: 1.04rem; }
.about-text .first { font-size: 1.2rem; font-weight: 600; line-height: 1.65; color: var(--navy); }

.facts {
  margin-top: 44px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.facts h2 {
  margin-bottom: 18px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown);
}
.facts dl { margin: 0; }
.facts dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
}
.facts dd {
  margin: 2px 0 16px;
  font-size: .95rem;
  color: var(--navy);
}
.facts dd:last-child { margin-bottom: 0; }

/* ---------- Domaines d'intervention ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  transition: background-color .25s, color .25s;
}
.chips a:hover { background: var(--navy); color: var(--bg); }

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.area-head { position: sticky; top: calc(var(--header-h) + 32px); }
.area-head .icon { width: 48px; height: 48px; margin-bottom: 20px; color: var(--brown); }
.area-head p { color: var(--muted); }
.area-head .item-list { margin-top: 28px; }

.area-body { padding-top: 6px; }
.area-body p { font-size: 1.04rem; }
.area-body p:last-child { margin-bottom: 0; }
.area-body .first { font-size: 1.2rem; font-weight: 300; line-height: 1.65; color: var(--navy); }

.item-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.item-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.item-list .num { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--brown); line-height: 1.9; }
.item-list strong { display: block; color: var(--navy); font-weight: 600; }
.item-list span.desc { color: var(--muted); font-size: .96rem; }

.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.subcard {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.subcard h3 { font-size: 1.08rem; margin-bottom: 12px; }

.callout {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brown);
  font-size: .96rem;
}
.callout svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--brown); }
.callout p { margin: 0; }

.band-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.band-navy h2 { color: var(--on-dark); }
.band-navy .eyebrow { color: var(--brown-light); }
.band-navy p { color: var(--on-dark-muted); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brown);
}
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.info-item {
  display: flex;
  gap: 16px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brown);
}
.info-item svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 3px; color: var(--brown); }
.info-item h2 {
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown);
}
.info-item p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--navy); }
.info-item a { text-decoration: none; font-weight: 600; }
.info-item small { color: var(--muted); font-size: .82rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}
.map-col { display: flex; flex-direction: column; gap: 12px; }
.map-card {
  position: relative;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.35) sepia(.08);
}
.map-col .link-arrow { align-self: flex-start; }

.form-card {
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .req { color: var(--brown); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A5534' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 42, 68, .12);
}
.field input::placeholder,
.field textarea::placeholder { color: #9A9486; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}
.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-actions small { font-size: .8rem; color: var(--muted); }

/* Pot de miel anti-robots : invisible pour les humains */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  border-left: 3px solid var(--navy);
  background: var(--bg);
  font-size: .95rem;
}
.form-status.is-visible { display: block; }
.form-status:focus { outline: none; }
.form-status.is-success { border-color: #3F6B4F; color: #2F5A3F; }
.form-status.is-error { border-color: #9B3B2E; color: #8A2F23; }

/* ---------- Pages légales ---------- */
.legal h2 {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.6em; font-size: 1.05rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .todo { background: #F5E3B8; padding: 0 4px; }

/* ---------- Page 404 ---------- */
.notfound { text-align: center; }
.notfound img { width: min(520px, 100%); margin: 0 auto 32px; opacity: .8; }

/* ---------- Apparition douce au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(31, 42, 68, .4);
  }
  .nav-open .nav { display: block; }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { padding-block: 16px; font-size: .82rem; }
  .nav a::after { display: none; }
  .header-inner { gap: 14px; }
  /* le menu déplié peut dépasser la hauteur d'un petit écran */
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  /* Sous-menu toujours déplié dans le menu mobile */
  .nav .caret { display: none; }
  .nav .subnav {
    position: static;
    min-width: 0;
    padding: 0 0 12px 16px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav .subnav::before { display: none; }
  .nav .subnav li { border-bottom: 0; }
  .nav .subnav a { padding: 8px 0; font-size: .95rem; color: var(--muted); }
  .nav .subnav a:hover { background: none; }
  .nav .subnav .sep { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }

  .intro-grid,
  .about-grid,
  .area-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }

  /* le cadre décalé dépasse de 18px à droite : on réserve la place */
  .portrait { width: calc(100% - 18px); max-width: 400px; margin-inline: auto; }
  .about-aside, .area-head { position: static; }
  .about-aside .portrait { max-width: 340px; margin-inline: 0; }

  .cards, .values, .steps { grid-template-columns: 1fr; }
  .subgrid { grid-template-columns: 1fr; }

  /* Sur mobile : infos → formulaire → carte */
  .form-col { order: 1; }
  .map-col { order: 2; }
  .map-card { min-height: 300px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero::after { width: 70vw; opacity: .09; }

  .hero-art img { height: 230px; object-fit: cover; object-position: 50% 100%; }
}

@media (max-width: 560px) {
  .contact-info { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .brand { column-gap: 10px; }
  .site-header .brand-logo { width: 40px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .16em; }
  .lang-switch button { width: 36px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-caption::before, .hero-caption::after { width: 24px; }
  .hero-caption { letter-spacing: .16em; font-size: .7rem; }
}

@media (max-width: 440px) {
  /* le monogramme remplace le sous-titre dans l'en-tête, faute de place */
  .header-inner { gap: 10px; }
  .site-header .brand-logo { grid-row: auto; }
  .site-header .brand-name { align-self: center; font-size: .95rem; }
  .site-header .brand-sub { display: none; }
}
