/* ============================================================================
   NotariaPro — Système de design du site public (premium)
   Les couleurs de marque (--brand, --brand-2, --brand-accent) sont injectées
   par base.html depuis le CMS. Tout le reste est dérivé ici.
   ============================================================================ */

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  /* Marque (repli si le CMS n'injecte rien) */
  --brand:        #0f3d3e;   /* primaire */
  --brand-2:      #c9a227;   /* secondaire / or */
  --brand-accent: #1d6f6f;   /* accent */

  /* Dérivés (color-mix : navigateurs récents ; sinon les valeurs de repli) */
  --brand-700: #0b2e2f;
  --brand-600: #0f3d3e;
  --brand-050: #eef4f4;
  --brand-700: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-600: var(--brand);
  --brand-050: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 14%, #fff);
  --accent-050: color-mix(in srgb, var(--brand-accent) 9%, #fff);
  --gold-050:  color-mix(in srgb, var(--brand-2) 14%, #fff);

  /* Neutres */
  --ink:      #14202e;
  --ink-soft: #33465b;
  --muted:    #64748b;
  --line:     #e7ecf1;
  --line-2:   #eef2f6;
  --bg:       #ffffff;
  --bg-soft:  #f7f9fb;
  --bg-tint:  #f2f6f6;
  --white:    #ffffff;

  /* Typo */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;

  /* Rayons / ombres */
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16,32,46,.06), 0 1px 3px rgba(16,32,46,.05);
  --sh-2: 0 6px 20px rgba(16,32,46,.08);
  --sh-3: 0 18px 50px rgba(16,32,46,.14);
  --sh-brand: 0 16px 40px color-mix(in srgb, var(--brand) 22%, transparent);

  /* Rythme */
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --sp-section: clamp(64px, 9vw, 118px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--brand); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
::selection { background: color-mix(in srgb, var(--brand-2) 40%, #fff); color: var(--brand-700); }

/* ---- Accessibilité --------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand);
  color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 55%, #fff); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--brand { background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: #fff; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }

.section-head { max-width: 720px; margin: 0 auto clamp(34px,5vw,56px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700;
  color: var(--brand-accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-2); border-radius: 2px; }
.section-head.center .eyebrow, .center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.section-head .lead { margin-top: .4rem; }

/* ---- Boutons --------------------------------------------------------------- */
.btn {
  --_bg: var(--brand); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: var(--r-pill); font-weight: 600; font-size: .98rem;
  line-height: 1; white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
  background: var(--_bg); color: var(--_fg); position: relative; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--brand); box-shadow: var(--sh-brand); }
.btn--primary:hover { --_bg: var(--brand-700); box-shadow: 0 20px 46px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn--gold { --_bg: var(--brand-2); --_fg: #241c00; box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-2) 34%, transparent); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--ghost { --_bg: transparent; --_fg: var(--brand); border-color: color-mix(in srgb, var(--brand) 26%, #fff); }
.btn--ghost:hover { --_bg: var(--brand); --_fg: #fff; border-color: var(--brand); }
.btn--light { --_bg: #fff; --_fg: var(--brand); box-shadow: var(--sh-2); }
.btn--light:hover { --_fg: var(--brand-700); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn .ico { width: 1.05em; height: 1.05em; }

/* ---- En-tête --------------------------------------------------------------- */
.topbar { background: var(--brand-700); color: color-mix(in srgb, #fff 78%, transparent); font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { color: color-mix(in srgb, #fff 88%, transparent); }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 1.3rem; }
.topbar .sep { opacity: .4; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, #fff 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-2); border-bottom-color: var(--line); background: color-mix(in srgb, #fff 94%, transparent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 0 1 auto; max-width: 48%; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; flex: 0 0 auto; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-accent)); color: var(--brand-2);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; box-shadow: var(--sh-1);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-name strong { font-size: 1.02rem; color: var(--brand); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-name small { font-weight: 500; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: flex; align-items: center; gap: .3rem; flex: 1 1 auto; justify-content: center; }
.main-nav a { position: relative; color: var(--ink-soft); font-weight: 500; font-size: .96rem; padding: .5rem .8rem; border-radius: 8px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: .28rem; width: 0; height: 2px; background: var(--brand-2); border-radius: 2px; transform: translateX(-50%); transition: width .25s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--brand); text-decoration: none; }
.main-nav a:hover::after, .main-nav a.active::after { width: 20px; }
.header-cta { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--brand); padding: .2rem .4rem; }

/* ---- Hero ------------------------------------------------------------------ */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(155deg, var(--brand-700) 0%, var(--brand) 46%, var(--brand-accent) 100%); }
.hero::before { /* motif discret */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(60% 55% at 82% 8%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, #fff 12%, transparent), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 24px 24px; }
.hero .container { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 128px); max-width: 900px; }
.hero h1 { color: #fff; }
.hero .lead, .hero p { color: color-mix(in srgb, #fff 88%, transparent); font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, #fff 12%, transparent); border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 1.4rem; backdrop-filter: blur(4px); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 30%, transparent); }
.hero .btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid color-mix(in srgb, #fff 16%, transparent); }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-trust .t span { color: color-mix(in srgb,#fff 74%,transparent); font-size: .84rem; margin-top: .3rem; }

/* ---- Grilles / cartes ------------------------------------------------------ */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.5vw, 30px);
  box-shadow: var(--sh-1); position: relative; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
a.card { color: inherit; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.card .icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(150deg, var(--brand-050), var(--accent-050)); color: var(--brand); margin-bottom: 18px;
  transition: transform .28s var(--ease);
}
.card:hover .icon { transform: scale(1.06) rotate(-3deg); }
.card h3 { margin-bottom: .45rem; }
.card .more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand-accent); margin-top: .6rem; }
.card .more::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .more::after { transform: translateX(4px); }

/* Feature (atouts) */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .fi { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--brand-050); color: var(--brand); }
.feature h3 { margin: .1rem 0 .3rem; }
.feature p { margin: 0; color: var(--muted); }

/* Étapes (process) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px;
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: #fff; background: linear-gradient(150deg, var(--brand), var(--brand-accent)); box-shadow: var(--sh-1); }

/* Articles */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
a.post { color: inherit; }
.post:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.post .cover { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--brand-050); transition: transform .5s var(--ease); }
.post:hover .cover { transform: scale(1.05); }
.post .cover-wrap { overflow: hidden; }
.post .body { padding: 22px; display: flex; flex-direction: column; gap: .35rem; }
.tag { display: inline-block; align-self: flex-start; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--brand-accent); background: var(--accent-050); padding: 3px 10px; border-radius: var(--r-pill); }
.post h3 { font-size: 1.18rem; margin: .3rem 0; }
.post .date { color: var(--muted); font-size: .84rem; }

/* Témoignages */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-1); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: color-mix(in srgb, var(--brand-2) 32%, #fff); }
.quote p { font-size: 1.02rem; color: var(--ink-soft); }
.quote .who { display: flex; align-items: center; gap: .85rem; margin-top: 1.1rem; }
.quote .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-accent)); }
.stars { color: var(--brand-2); letter-spacing: 3px; font-size: 1rem; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); box-shadow: var(--sh-2); }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--brand); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-2); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 20px; color: var(--ink-soft); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); position: relative; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 14px 12px; color: #fff; font-size: .86rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transform: translateY(8px); transition: .3s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* Formulaires */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3vw,34px); box-shadow: var(--sh-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 1rem;
  color: var(--ink); background: var(--bg-soft); transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: #9aa7b6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 14%, transparent); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: 15px 18px; border-radius: 12px; font-weight: 500; margin-bottom: 20px; display: flex; gap: .6rem; align-items: flex-start; }
.alert--ok { background: #e9f7ef; color: #1a7a44; border: 1px solid #bfe6cf; }
.alert--err { background: #fdecec; color: #b02a2a; border: 1px solid #f5c6c6; }

/* Blocs info / split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .k { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 13px 4px; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: none; }
.hours td:last-child { text-align: right; color: var(--ink-soft); font-weight: 600; }
.badge-closed { color: #b02a2a; font-weight: 600; }

/* En-tête de page interne */
.page-hero { position: relative; background: linear-gradient(160deg, var(--brand-700), var(--brand)); color: #fff; padding-block: clamp(56px, 8vw, 92px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 24px 24px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: color-mix(in srgb,#fff 86%,transparent); }
.breadcrumbs { color: color-mix(in srgb,#fff 74%,transparent); font-size: .86rem; margin-bottom: .7rem; }
.breadcrumbs a { color: color-mix(in srgb,#fff 82%,transparent); }
.breadcrumbs a:hover { color: #fff; }

/* Prose (articles / pages légales) */
.prose { max-width: 760px; color: var(--ink-soft); font-size: 1.06rem; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); margin: 1.4rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose blockquote { margin: 1.4rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid var(--brand-2); color: var(--ink); font-style: italic; }

/* Bande CTA */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--brand-accent), var(--brand)); color: #fff;
  border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px); text-align: center; box-shadow: var(--sh-3); }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 22px 22px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: color-mix(in srgb,#fff 90%,transparent); }
.cta-band .btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }

/* ---- Pied de page ---------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, var(--brand-700), #0a2324); color: color-mix(in srgb,#fff 80%,transparent); padding-block: clamp(52px,7vw,72px) 26px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.site-footer a { color: color-mix(in srgb,#fff 82%,transparent); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.socials { display: flex; gap: .55rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb,#fff 9%,transparent); display: grid; place-items: center; color: #fff; font-weight: 700; transition: transform .2s var(--ease), background .2s var(--ease); }
.socials a:hover { background: var(--brand-2); color: #241c00; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid color-mix(in srgb,#fff 14%,transparent); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: color-mix(in srgb,#fff 66%,transparent); }

/* ---- Retour haut ----------------------------------------------------------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--sh-2); display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-700); transform: translateY(-2px); }

/* ---- Animations d'apparition (progressive enhancement) --------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 992px) {
  .brand { max-width: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: #fff; padding: 16px var(--gutter) 24px; gap: .1rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s; max-height: 78vh; overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line-2); font-size: 1.02rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn--gold { display: none; }
  .nav-cta-mobile { display: block; margin-top: .8rem; }
  .nav-cta-mobile .btn { width: 100%; }
}
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar .tb-left { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-trust { gap: 1.2rem 1.8rem; }
  .to-top { right: 14px; bottom: 14px; }
}
