/* ============================================================================
   Cabinet Judith Wolcke — Feuille de style
   Charte graphique reprise de la carte de visite :
     • Fond crème  #F7F3EE
     • Bleu marine #0F2D4A
     • Or / bronze #AC8453
   Aucun appel réseau externe (RGPD : pas de Google Fonts en CDN).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   POLICES — auto-hébergées (aucun appel externe, conforme RGPD)
   Fichiers .woff2 dans  site/assets/fonts/  (extraits des paquets fontsource).
   • Playfair Display  → titres (serif élégant, proche de la carte)
   • Montserrat        → texte courant
   Pour changer de graisse : ajoutez le .woff2 correspondant + un bloc ci-dessous.
---------------------------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-Regular.woff2') format('wof2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/assets/fonts/montserrat-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/montserrat-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/montserrat-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/montserrat-latin-600-normal.woff2') format('woff2');
}

:root {
  --navy: #0F2D4A;
  --navy-soft: rgba(15, 45, 74, 0.78);
  --navy-faint: rgba(15, 45, 74, 0.55);
  --gold: #D6B588;
  --gold-dark: #C49554;
  --cream: #F7F3EE;
  --cream-deep: #efe7dc;
  --white: #FFFFFF;
  --line: rgba(172, 132, 83, 0.30);
  --shadow: 0 18px 50px rgba(15, 45, 74, 0.10);
  --shadow-sm: 0 8px 24px rgba(15, 45, 74, 0.07);
  --radius: 14px;
  --max-wide: 1180px;
  --max-narrow: 940px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  /* Layout en colonne : l'en-tête, le contenu puis le pied de page.
     Le <main> occupe l'espace restant (flex:1) afin que le footer reste
     collé en bas même lorsque la page a peu de contenu. */
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Le contenu principal pousse le pied de page vers le bas */
#main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Léger dégradé chaud pour donner de la profondeur au fond crème */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(172, 132, 83, 0.08), transparent 70%),
    radial-gradient(900px 500px at 100% 100%, rgba(15, 45, 74, 0.05), transparent 65%);
}

a { color: inherit; text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--gold); }

img, svg { max-width: 100%; }

button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }

/* Accessibilité : focus visible cohérent */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement (accessibilité clavier / lecteurs d'écran) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1200;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  transition: top 160ms ease;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* Conteneurs -------------------------------------------------------------- */
.wrap { width: min(var(--max-wide), calc(100% - 44px)); margin-inline: auto; }
.wrap-narrow { width: min(var(--max-narrow), calc(100% - 44px)); margin-inline: auto; }

/* ============================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
  width: min(var(--max-wide), calc(100% - 44px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand:hover { color: inherit; }
.brand-logo { width: 42px; height: 42px; color: var(--gold); flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-name small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.main-nav a { padding: 6px 0; position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 200ms ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 18px !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--white); }

/* Sélecteur de langue dans l'en-tête */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.lang-switch button {
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--navy-faint);
  letter-spacing: 0.14em;
  transition: color 160ms ease, background-color 160ms ease;
}
.lang-switch button:hover { color: var(--gold); }
.lang-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--gold);
}
.lang-switch .sep { color: var(--line); }

/* ============================================================================
   HERO (accueil)
   ========================================================================== */
.hero {
  text-align: center;
  padding: 80px 0 56px;
}
.hero-emblem { width: 84px; height: 84px; color: var(--gold); margin: 0 auto 6px; display: block; }

/* Filet décoratif « — emblème — » comme sur la carte */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  margin: 22px 0;
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: 64px;
  background: currentColor;
  opacity: 0.6;
}
.rule .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  font-weight: 500;
}
.hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero .subtitle {
  margin: 18px 0 0;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
}
.lead {
  max-width: 660px;
  margin: 28px auto 0;
  font-size: 1.08rem;
  color: var(--navy-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-bg { position: relative; isolation: isolate; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to bottom,
      rgba(247,243,238,0.55) 0%, rgba(247,243,238,0.30) 28%,
      rgba(247,243,238,0.30) 55%, rgba(247,243,238,0.42) 100%),
    url('/assets/accueil-abstrait.jpg?v=4');
  background-repeat: no-repeat; background-size: cover; background-position: center 55%;
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 45%,transparent 100%);
          mask-image: linear-gradient(to bottom,#000 0%,#000 45%,transparent 100%);
  pointer-events: none;
}
.hero-bg > .hero { position: relative; z-index: 1; }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-secondary { color: var(--navy); background: var(--white); }
.btn-secondary:hover { color: var(--gold); }
.btn svg { width: 17px; height: 17px; }

/* ============================================================================
   CARTES / SECTIONS DE CONTENU
   ========================================================================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 20px 0 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}
.card .card-icon { color: var(--gold); width: 30px; height: 30px; margin-bottom: 14px; }
.card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
}
.card p { margin: 0; color: var(--navy-soft); }

/* Image d'ambiance (accueil) — bande entre le hero et les cartes */
.showcase { margin: 6px auto 10px; }
.showcase img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  .showcase img { max-height: 280px; }
}

/* Bloc de contact (accueil) ---------------------------------------------- */
.contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px 40px;
  margin: 20px auto 80px;   /* auto = centrage horizontal (ne pas remettre 0) */
  text-align: center;
}
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
}
.contact .place {
  margin: 8px 0 26px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.80rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact-item svg { width: 26px; height: 26px; color: var(--gold); }
.contact-item .label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--navy-faint);
}
.contact-item a, .contact-item span { font-size: 1.02rem; color: var(--navy); }
.contact-item a:hover { color: var(--gold); }
.contact-item address { font-style: normal; line-height: 1.5; }

/* ============================================================================
   PAGE CONTACT — accès (voiture / bus) & plan
   ========================================================================== */
.access { margin: 48px auto 10px; text-align: center; }
.access-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
}
.access-sub {
  margin: 8px 0 28px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.80rem;
}
/* Deux cases façon page d'accueil (réutilise .card) */
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  text-align: left;
}
.access-grid .card { text-align: left; }
.access-grid .card .card-icon { color: var(--gold); width: 30px; height: 30px; margin-bottom: 12px; }
.access-grid .card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.access-grid .card p { margin: 0; color: var(--navy-soft); }

/* Plan d'accès — chargé uniquement après consentement (RGPD) */
.map-section { margin: 36px auto 80px; }
.map-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 48px 26px;
  min-height: 260px;
}
.map-placeholder .map-pin { width: 36px; height: 36px; color: var(--gold); }
.map-placeholder .map-hint { margin: 0; max-width: 500px; color: var(--navy-soft); font-size: 0.94rem; }
.map-placeholder .map-provider { margin: 0; font-size: 0.76rem; color: var(--navy-faint); }
.map-load {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 500;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.map-load:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.map-embed.is-loaded { aspect-ratio: auto; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-actions { margin-top: 16px; text-align: center; }
.map-actions a { color: var(--gold); text-decoration: underline; font-size: 0.9rem; }
.map-actions a:hover { color: var(--gold-dark); }

@media (max-width: 700px) {
  .access-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   PAGES DE CONTENU (Qui suis-je, Mentions légales)
   ========================================================================== */
.page { padding: 66px 0 84px; }
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
}
/* Titre de page compact (page Contact) : même taille que les sous-titres
   « .access-title » (Comment venir), tout en gardant la balise <h1> et la
   police Playfair héritées de .page-head h1. */
.page-head h1.page-title-compact {
  font-size: 2.1rem;
}
.prose { font-size: 1.06rem; color: var(--navy-soft); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Portrait + texte (page « Qui suis-je ») */
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.portrait figcaption { text-align: center; margin-top: 14px; line-height: 1.3; }
.portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.portrait figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 280px; margin-inline: auto; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  margin: 18px 0;
}
.panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
}
.panel p, .panel li { color: var(--navy-soft); }
.panel a { color: var(--gold); }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: 6px; }

/* Encadré « à compléter » (placeholders RGPD) */
.todo {
  color: var(--gold-dark);
  background: rgba(172, 132, 83, 0.10);
  border-radius: 4px;
  padding: 0 5px;
  font-style: italic;
}

/* ============================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
}
.footer-inner {
  width: min(var(--max-wide), calc(100% - 44px));
  margin-inline: auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--navy-faint);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================================
   PORTAIL DE LANGUE (au démarrage)
   ========================================================================== */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(247, 243, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-gate.is-open { display: flex; animation: fade 240ms ease; }
.lang-card {
  width: min(500px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 38px;
  text-align: center;
}
.lang-card .emblem { width: 76px; height: 76px; color: var(--gold); margin: 0 auto 18px; display: block; }
.lang-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}
.lang-card .subtitle-de { margin: 6px 0 0; color: var(--navy-faint); font-size: 1.05rem; }
.lang-card .hint { margin: 18px 0 26px; color: var(--navy-faint); font-size: 0.9rem; }
.lang-choices { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lang-choices button {
  min-width: 150px;
  min-height: 52px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.lang-choices button:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

/* ============================================================================
   BANDEAU COOKIES / RGPD (informatif — stockage strictement nécessaire)
   ========================================================================== */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 900;
  width: min(760px, calc(100% - 32px));
  display: none;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--navy);
  color: #eef2f6;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 45, 74, 0.35);
  font-size: 0.86rem;
}
.cookie-bar.is-open { display: flex; animation: rise 260ms ease; }
.cookie-bar p { margin: 0; line-height: 1.5; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-bar a:hover { color: #d3ab77; }
.cookie-bar .cookie-actions { flex: none; display: flex; gap: 10px; }
.cookie-bar button {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--white);
  background: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  white-space: nowrap;
  transition: background-color 160ms ease;
}
.cookie-bar button:hover { background: var(--gold-dark); }

/* ============================================================================
   PAGE 404
   ========================================================================== */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--gold);
}
.error-page .error-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0.2em 0 0;
}

/* ============================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .site-header { justify-content: center; text-align: center; gap: 16px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cookie-bar { flex-direction: column; text-align: center; }
  .cookie-bar .cookie-actions { width: 100%; justify-content: center; }
}

/* ============================================================================
   IMPRESSION
   ========================================================================== */
@media print {
  .lang-gate, .cookie-bar, .main-nav, .lang-switch, .hero-actions { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
}
