/* ==========================================================================
   Étude Notariale - feuille de style
   Aesthetic : école notariale sobre & raffinée - bleu nuit profond + or
   ========================================================================== */

:root {
  --navy-900: #0e1a2b;
  --navy-800: #14253c;
  --navy-700: #1d3350;
  --navy-600: #2b4a6f;
  --gold: #c19a4b;
  --gold-light: #d9b96f;
  --gold-dark: #9d7a33;
  --ink: #22303f;
  --muted: #5c6b7a;
  --cream: #faf7f0;
  --cream-2: #f3eee2;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 50px rgba(14, 26, 43, 0.14);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff;
  padding: 10px 18px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

.section { padding: 96px 0; }

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow.centered { text-align: center; }

.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15; color: var(--navy-900); margin-bottom: 24px;
}
.section-title.centered { text-align: center; }

.centered { text-align: center; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 2px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; transition: var(--transition); cursor: pointer; border: 1px solid transparent;
  font-family: var(--sans);
}
.btn-cta { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(193, 154, 75, 0.35); }
.btn-cta:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(14, 26, 43, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

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

.logo { display: flex; align-items: center; gap: 14px; color: #fff; }
.logo-img { height: 50px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.03em; }
.logo-sub { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); }

.primary-nav ul { display: flex; gap: 30px; list-style: none; }
.primary-nav a {
  font-size: 0.92rem; font-weight: 500; color: #dbe4ee; position: relative; padding: 6px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width var(--transition);
}
.primary-nav a:hover, .primary-nav a:focus { color: #fff; }
.primary-nav a:hover::after, .primary-nav a:focus::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(193, 154, 75, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(15, 26, 42, 0.75) 0%, rgba(21, 38, 61, 0.65) 55%, rgba(26, 46, 70, 0.5) 100%),
    url("../images/reception.jpeg") center / cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
}
.hero-inner { position: relative; z-index: 2; padding: 160px 0 120px; max-width: 780px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05; margin-bottom: 26px;
}
.hero-sub { font-size: 1.18rem; color: #c3cfdd; max-width: 520px; margin-bottom: 40px; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 9px; margin-left: -2px;
  background: var(--gold); border-radius: 4px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Présentation ---------- */
.presentation { background: var(--cream); }
.presentation-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.presentation-text .lead { margin-bottom: 18px; }

.presentation-media { position: relative; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.presentation-media img {
  width: 100%; height: 460px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow);
}
.presentation-media img:nth-child(2) { margin-top: 60px; }

/* ---------- Domaines ---------- */
.domaines { background: var(--navy-900); color: #e6ecf3; }
.domaines .section-title { color: #fff; }
.domaines .eyebrow { color: var(--gold-light); }
.domaines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 50px; }

.domaine-card {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
  overflow: hidden; transition: var(--transition); position: relative;
}
.domaine-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.domaine-number {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--serif); font-size: 5rem; font-weight: 700;
  color: var(--gold); opacity: 0.12; line-height: 1; pointer-events: none;
}
.domaine-body { padding: 40px 30px 36px; border-top: 3px solid var(--gold); position: relative; }
.domaine-body h3 { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 14px; }
.domaine-body p { color: #b8c4d2; font-size: 1rem; line-height: 1.7; }

/* ---------- Services numériques (visioconférence / signature) ---------- */
.services-numeriques {
  margin-top: 56px; padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.services-numeriques-note {
  font-family: var(--sans); font-size: 1rem;
  color: #c3cfdd; letter-spacing: 0.02em;
}
.services-numeriques-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.services-numeriques-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--navy-800);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
}
.services-numeriques-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-light);
}

/* ---------- Onglet actif de navigation ---------- */
.primary-nav a[aria-current="page"]::after { width: 100%; }
.primary-nav a[aria-current="page"] { color: #fff; }

/* ---------- Bannière de page (mentions légales, etc.) ---------- */
.page-hero {
  padding: 160px 0 80px; background: var(--navy-900); color: #e6ecf3;
  text-align: center;
}
.page-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff; line-height: 1.1;
}

/* ---------- Mentions légales ---------- */
.legal { background: var(--cream); }
.legal-container { max-width: 820px; margin-inline: auto; }
.legal-block {
  background: #fff; border: 1px solid #ece4d2; border-radius: 4px;
  padding: 30px 34px; margin-bottom: 26px; border-left: 4px solid var(--gold);
}
.legal-block h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--navy-900); margin-bottom: 14px;
}
.legal-block p { color: var(--muted); line-height: 1.75; }
.legal-block p + p { margin-top: 12px; }
.legal-block ul { margin-top: 8px; display: grid; gap: 8px; list-style: none; color: var(--muted); line-height: 1.6; }
.legal-block a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover { color: var(--gold); }

/* ---------- Photos / Galerie ---------- */
.photos { background: var(--cream); }
.galerie {
  display: flex; flex-direction: column; gap: 22px; margin-top: 50px;
  width: min(900px, 100%); margin-inline: auto;
}
.galerie-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.galerie-item { position: relative; overflow: hidden; border-radius: 4px; height: 340px; cursor: pointer; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.galerie-item:hover img { transform: scale(1.06); }
.galerie-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  background: linear-gradient(transparent, rgba(14,26,43,0.85)); color: #fff;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0; transition: opacity var(--transition);
}
.galerie-item:hover figcaption { opacity: 1; }

/* ---------- Actualités ---------- */
.actualites { background: var(--cream-2); }
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.source-note { color: var(--muted); font-size: 0.85rem; }
.source-note a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid #ece4d2; border-top: 3px solid var(--gold);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 0.75rem; color: var(--gold-dark); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.news-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; color: var(--navy-800); margin-bottom: 10px; }
.news-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.news-link { font-weight: 600; color: var(--gold-dark); font-size: 0.9rem; }
.news-link:hover { color: var(--gold); }

.news-status { margin-top: 26px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.news-skeleton {
  height: 250px; background: linear-gradient(90deg, #eee5d3 25%, #f5efdf 37%, #eee5d3 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 4px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-inner { max-width: 640px; margin-inline: auto; }

.contact-list { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid #efe8d9; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-dark); font-weight: 600; }
.contact-value { font-size: 1.05rem; color: var(--navy-800); }
a.contact-value:hover { color: var(--gold-dark); }

.contact-hours { margin-top: 28px; padding: 22px 24px; background: var(--cream); border-radius: 4px; border-left: 3px solid var(--gold); }
.contact-hours h3 { font-family: var(--serif); color: var(--navy-800); margin-bottom: 12px; }
.contact-hours dl { display: grid; gap: 8px; }
.contact-hours dl > div { display: flex; justify-content: space-between; gap: 12px; }
.contact-hours dt { color: var(--muted); }
.contact-hours dd { font-weight: 600; color: var(--navy-800); text-align: right; }


/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cfdd; padding: 70px 0 46px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-col h4 { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-brand p { margin-bottom: 14px; font-size: 0.92rem; max-width: 320px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-socials { margin-top: 8px; }
.footer-socials h4 { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.footer-socials-row { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-socials-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); color: #c3cfdd;
  transition: var(--transition);
}
.footer-socials-row a:hover, .footer-socials-row a:focus {
  color: #fff; border-color: var(--gold); background: var(--gold);
}

.footer-bottom {
  margin-top: 50px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy { color: #7d8ea0; font-size: 0.8rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .presentation-inner { grid-template-columns: 1fr; gap: 50px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .domaines-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { height: 72px; }
  .primary-nav {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--navy-900);
    padding: 24px 6vw; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: var(--transition); border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .primary-nav.open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .domaines-grid, .galerie-row, .news-grid { grid-template-columns: 1fr; }
  .services-numeriques { margin-top: 40px; padding-top: 26px; }
  .services-numeriques-note { text-align: center; }
  .page-hero { padding: 120px 0 60px; }
  .hero { min-height: 92vh; }
  .media-stack { grid-template-columns: 1fr; }
  .presentation-media img, .presentation-media img:nth-child(2) { height: 320px; margin-top: 0; }
  .section { padding: 70px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-sub { font-size: 1.02rem; }
}
