/* ==========================================================================
   La Maison du Lien — feuille de style principale
   Palette et typographie définies par Alexandra Goffard.
   ========================================================================== */

/* Polices hébergées sur le site (aucune requête vers Google : les données des visiteurs restent en Suisse).
   Cormorant Garamond et Public Sans — licence SIL Open Font License. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans.woff2") format("woff2");
}

:root {
  /* Couleurs */
  --color-bg: #F7F2E6;
  --color-bg-soft: #F1E9D8;
  --color-title: #3D3123;
  --color-text: #6E5E4C;
  --color-accent: #B08968;            /* argile mate — accent principal : boutons d'action, liens importants */
  --color-accent-secondary: #7C8797;  /* bleu-gris mat — accent secondaire : icônes, hover des liens, petits détails */
  --color-accent-tertiary: #8B8D7A;   /* olive doux — badges/étiquettes, éléments ponctuels */
  --color-divider: rgba(147, 130, 110, 0.55); /* taupe rosé (#93826E) — dividers et bordures */
  --color-white: #FFFFFF;

  /* Typographie */
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Public Sans", Arial, sans-serif;

  /* Mise en page */
  --max-width: 1120px;
  --radius: 14px;
  --shadow-soft: 0 8px 24px rgba(61, 49, 35, 0.08);
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--color-accent-secondary); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-title);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
p { margin: 0 0 1.1em; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
/* Lignes courtes, centrées ou de type "étiquette" : on les laisse alignées normalement */
.eyebrow, .hero .role, .zone-line p, .page-hero p, .footer-brand p, .footer-bottom,
.theme-quote, .form-success, .form-error, .band-side p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.page-hero p, .page-hero .eyebrow, .footer-bottom { text-align: center; }
ul { padding-left: 1.2em; }
:focus-visible {
  outline: 3px solid var(--color-accent-secondary);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-title);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ---------- En-tête / navigation ---------- */
/* Bandeau d'identité : grand logo lisible, qui défile avec la page */
.brand-band { padding: 1.1rem 0 0.6rem; }
.band-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand { display: block; justify-self: center; }
.brand img {
  height: 225px;
  width: auto; /* proportions conservées, jamais étiré */
  margin: -14px 0;
}
.brand:hover, .brand:focus-visible { text-decoration: none; }
.band-side { display: flex; flex-direction: column; gap: 0.2rem; }
.band-id { align-items: flex-start; }
.band-name { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--color-title); }
.band-role { font-weight: 600; color: var(--color-accent-secondary); }
.band-place { font-size: 0.92rem; }
.band-contact { align-items: flex-end; gap: 0.7rem; }
.band-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-title);
}
.band-phone svg { color: var(--color-accent-secondary); }
.band-phone:hover, .band-phone:focus-visible { color: var(--color-accent); text-decoration: none; }

/* Barre de navigation : seule partie qui reste fixée en haut */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 242, 230, 0.94);
  backdrop-filter: saturate(150%) blur(6px);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.25s ease;
}
.nav-bar.is-stuck { box-shadow: 0 8px 24px -14px rgba(61, 49, 35, 0.35); }
.nav-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
}
.nav-mini-logo { justify-self: start; transition: opacity 0.25s ease; }
.nav-mini-logo img { height: 46px; width: auto; }
.js .nav-bar:not(.is-stuck) .nav-mini-logo { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-mini-logo { transition: opacity 0.25s ease, visibility 0.25s; }
.nav-list {
  position: relative;
  grid-column: 2;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-title);
  font-weight: 600;
  font-size: clamp(12.4px, calc(0.93vw + 4px), 15.2px);
  padding: 0.9rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}
/* Bouton rendez-vous flottant : apparaît dès que le bandeau a défilé */
.float-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 450;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.2s ease;
}
.js .float-cta:not(.is-visible) { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.1;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover, .btn-primary:focus-visible {
  filter: brightness(0.9);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-title);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(176, 137, 104, 0.12);
  text-decoration: none;
}
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.header-cta { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 4.5rem;
  background: radial-gradient(60% 70% at 78% 40%, rgba(176, 137, 104, 0.13), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.4vw + 1rem, 4.2rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.hero .role {
  font-size: 1.05rem;
  color: var(--color-accent-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 32em;
  color: var(--color-text);
}
.zone-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 32em;
  margin: 1.6rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.zone-line svg { flex-shrink: 0; margin-top: 4px; color: var(--color-accent-secondary); }
.zone-line p { margin: 0; }
.zone-line .zone-main { color: var(--color-title); font-weight: 600; }
.zone-line .zone-list { font-size: 0.95rem; color: var(--color-accent-secondary); margin-top: 0.25rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 600; color: var(--color-title); border-bottom: 1px solid var(--color-accent); padding-bottom: 2px; }
.text-link:hover, .text-link:focus-visible { color: var(--color-accent); text-decoration: none; }

/* Portrait en arche, avec cadre décalé et sceau du logo */
.hero-portrait {
  position: relative;
  margin: 0;
  max-width: 370px;
  justify-self: center;
  width: 100%;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--color-divider);
  border-radius: 999px 999px 28px 28px;
}
.hero-portrait img.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px 24px 24px;
  box-shadow: 0 24px 48px -20px rgba(61, 49, 35, 0.35);
}
.hero-seal {
  position: absolute;
  left: -28px;
  bottom: 28px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: 0 10px 28px -10px rgba(61, 49, 35, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-seal img { height: 78px; width: auto; }

/* Bandeau "en bref" */
.at-a-glance { padding: 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.glance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.glance-list li {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.glance-list li:first-child { border-left: none; padding-left: 0; }
.glance-list strong { font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; color: var(--color-title); }
.glance-list span { font-size: 0.95rem; }

/* ---------- Sections génériques ---------- */
section { padding: 3.2rem 0; }
.section-alt { background: var(--color-bg-soft); }
.section-intro { max-width: 720px; margin-bottom: 2rem; }
.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 0;
}
.page-hero {
  padding: 2.8rem 0 1rem;
  text-align: center;
}
.page-hero .eyebrow { display: block; }

/* ---------- Liste éditoriale des rubriques (accueil) ---------- */
.discover {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
.discover-intro { position: sticky; top: 96px; }
.discover-intro p { max-width: 24em; }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-divider); }
.topic-list li { border-bottom: 1px solid var(--color-divider); }
.topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  align-items: center;
  padding: 1.5rem 0.25rem;
  color: var(--color-text);
}
.topic-row h3 { margin: 0; transition: color 0.2s ease; }
.topic-row p { margin: 0.25rem 0 0; font-size: 0.98rem; grid-column: 1; }
.topic-row .arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--color-accent-secondary);
  transition: transform 0.25s ease, color 0.2s ease;
}
.topic-row:hover, .topic-row:focus-visible { color: var(--color-text); text-decoration: none; }
.topic-row:hover h3, .topic-row:focus-visible h3 { color: var(--color-accent); }
.topic-row:hover .arrow, .topic-row:focus-visible .arrow { transform: translateX(6px); color: var(--color-accent); }

/* ---------- Bandeau de fin de page ---------- */
.closing { background: var(--color-bg-soft); padding: 4rem 0 4.5rem; }
.closing-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
}
.closing-logo { width: 190px; height: auto; }
.closing h2 { margin-bottom: 0.5rem; }
.closing p { max-width: 34em; }

main:has(> .closing:last-child) + .site-footer { margin-top: 0; }

/* ---------- Typographie fine ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- Mouvement discret (respecte prefers-reduced-motion) ---------- */
.btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  .hero-copy > *:nth-child(6) { animation-delay: 0.4s; }
  .hero-portrait { animation: fade 1s ease 0.2s both; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Portrait + texte (qui suis-je) ---------- */
.profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
/* même cadre en arche que sur l'accueil ; reste visible pendant la lecture */
.profile-portrait { position: sticky; top: 96px; margin-right: 18px; }
.profile .name { font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; color: var(--color-title); margin-bottom: 0.1rem; text-align: left; }
.profile .title { color: var(--color-accent-secondary); font-weight: 600; margin-bottom: 1.4rem; text-align: left; }

/* ---------- Thématiques (champs d'intervention) ---------- */
.theme-list { display: flex; flex-direction: column; gap: 1.4rem; }
.theme-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.badge {
  display: inline-block;
  background: rgba(139, 141, 122, 0.16);
  color: var(--color-title);
  border: 1px solid rgba(139, 141, 122, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.theme-card p { margin-bottom: 0.5rem; }
.theme-quote {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--color-accent-secondary);
  font-size: 1.05rem;
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-divider);
}

/* ---------- Blocs "consultation à domicile" ---------- */
.reason-list { display: flex; flex-direction: column; gap: 2rem; }
.reason-item h3 { margin-bottom: 0.5rem; }

/* ---------- Modalités / tableau infos ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: scale(1.02);
  box-shadow: 0 1.2rem 2.2rem -1.2rem rgba(61, 49, 35, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .info-card { transition: none; }
  .info-card:hover { transform: none; }
}
.info-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.info-card p:last-child { margin-bottom: 0; }
/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-methods { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--color-white);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--color-title);
  font-weight: 600;
}
.contact-method:hover, .contact-method:focus-visible { text-decoration: none; background: var(--color-bg-soft); }
.contact-method .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(124, 135, 151, 0.16);
  color: var(--color-accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .icon svg { width: 20px; height: 20px; }

form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-weight: 600; color: var(--color-title); font-size: 0.95rem; }
input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-divider);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
}
input:focus, textarea:focus {
  border-color: var(--color-accent-secondary);
  outline: none;
}
textarea { resize: vertical; min-height: 130px; }
.checkbox-row { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input { width: auto; margin-top: 0.25rem; }
.checkbox-row label { font-weight: 400; font-size: 0.9rem; }
.form-note { font-size: 0.85rem; color: var(--color-accent-secondary); margin-top: -0.3rem; }
.form-success, .form-error {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
}
.form-success { background: rgba(139, 141, 122, 0.18); color: var(--color-title); }
.form-error { background: rgba(176, 96, 96, 0.15); color: #7a3232; }

/* Honeypot anti-spam : champ invisible pour les humains, visible pour les robots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Ateliers ---------- */
.ateliers-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.container.narrow { max-width: 720px; }

/* ---------- Carrousel de cartes "spotlight" (ateliers) ---------- */
.card-carousel { position: relative; }
.card-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.75rem 0.5rem 1.75rem;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.card-track::-webkit-scrollbar { display: none; }

.glow-card {
  --glow-rgb: 176, 137, 104;
  --mx: -999px;
  --my: -999px;
  position: relative;
  flex: 0 0 272px;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: 18px;
  box-shadow: 0 1rem 2rem -1.4rem rgba(61, 49, 35, 0.55);
  overflow: hidden;
  isolation: isolate;
}
.glow-card.tone-argile { --glow-rgb: 176, 137, 104; }
.glow-card.tone-bleu   { --glow-rgb: 124, 135, 151; }
.glow-card.tone-olive  { --glow-rgb: 139, 141, 122; }
.glow-card.tone-taupe  { --glow-rgb: 147, 130, 110; }

/* halo doux sous le curseur + liseré lumineux sur la bordure */
.glow-card::before,
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-card::before {
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(var(--glow-rgb), 0.2), transparent 70%);
}
.glow-card::after {
  z-index: 3;
  padding: 2px;
  background: radial-gradient(200px circle at var(--mx) var(--my), rgba(var(--glow-rgb), 0.95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card-track:hover .glow-card::before,
.card-track:hover .glow-card::after,
.glow-card:focus-within::before,
.glow-card:focus-within::after { opacity: 1; }

.card-art {
  position: relative;
  z-index: 1;
  aspect-ratio: 280 / 170;
  background: linear-gradient(180deg, rgba(var(--glow-rgb), 0.16), rgba(var(--glow-rgb), 0.05));
  border-bottom: 1px solid var(--color-divider);
}
.card-art svg { display: block; width: 100%; height: 100%; }
.card-body { position: relative; z-index: 1; padding: 1.2rem 1.3rem 0.4rem; }
.card-body h3 { font-size: 1.4rem; margin: 0.55rem 0 0; line-height: 1.15; }
.card-foot { position: relative; z-index: 1; padding: 0.6rem 1.3rem 1.3rem; }
.card-foot .text-link { background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 2px; }

/* Zones de survol gauche/droite : le carrousel défile tant que la souris y reste */
.edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 110px;
  display: none;
  align-items: center;
  border: 0;
  cursor: pointer;
  color: var(--color-title);
  transition: opacity 0.3s ease;
}
.edge-left  { left: 0;  justify-content: flex-start; padding-left: 0.6rem; background: linear-gradient(90deg, var(--color-bg) 25%, rgba(247, 242, 230, 0)); }
.edge-right { right: 0; justify-content: flex-end;   padding-right: 0.6rem; background: linear-gradient(270deg, var(--color-bg) 25%, rgba(247, 242, 230, 0)); }
.edge span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: filter 0.2s ease;
}
.edge:hover span, .edge:focus-visible span { filter: brightness(0.9); }
.edge[hidden] { display: none !important; }
.card-carousel.has-overflow .edge { display: flex; }
.card-carousel.has-overflow .edge[hidden] { display: none; }

@media (max-width: 880px) {
  .glow-card { flex-basis: 78vw; max-width: 300px; }
  .edge { width: 64px; }
  .edge span { width: 40px; height: 40px; }
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 49, 35, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--color-bg);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-title);
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--color-title);
  color: #E6DFCF;
  padding: 2.4rem 0 1.6rem;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { font-family: var(--font-title); font-size: 1.2rem; color: var(--color-white); }
.footer-brand p { color: #C9BFA9; font-size: 0.9rem; margin: 0.3rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { color: #E6DFCF; font-size: 0.9rem; }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(230, 223, 207, 0.2);
  font-size: 0.82rem;
  color: #A99C82;
  text-align: center;
}

/* ---------- Page 404 ---------- */
.notfound { padding: 4.5rem 0 5rem; }
.notfound p { text-align: center; max-width: 34em; margin-left: auto; margin-right: auto; }
.notfound-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Inscription ateliers (en attendant le formulaire Infomaniak) ---------- */
.newsletter-fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.newsletter-fallback p { margin: 0; }
.modal p, p.no-justify { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
/* Sur téléphone, les colonnes sont trop étroites pour justifier sans créer de grands trous entre les mots */
@media (max-width: 600px) {
  p { text-align: left; }
}

/* ---------- Pages légales ---------- */
.legal-date { margin-top: 2.5rem; font-size: 0.9rem; font-style: italic; }
.legal h2 { margin-top: 2rem; }
.legal p { max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { max-width: 320px; justify-self: start; margin-left: 18px; }
  .hero-seal { left: -18px; width: 88px; height: 88px; }
  .hero-seal img { height: 64px; }
  .glance-list { grid-template-columns: 1fr; }
  .glance-list li, .glance-list li:first-child { border-left: none; padding: 1.1rem 0; border-top: 1px solid var(--color-divider); }
  .glance-list li:first-child { border-top: none; }
  .discover { grid-template-columns: 1fr; gap: 2rem; }
  .discover-intro { position: static; }
  .closing-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .closing-logo { width: 130px; }
  .profile { grid-template-columns: 1fr; gap: 3rem; }
  .profile-portrait { position: relative; top: auto; max-width: 320px; margin: 0 0 0 18px; justify-self: start; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-band { padding: 0.8rem 0 0.9rem; }
  .band-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0.7rem; }
  .brand { order: 1; }
  .brand img { height: 175px; margin: -10px 0; }
  .band-id { order: 2; align-items: center; }
  .band-name { font-size: 1.45rem; }
  .band-place { display: none; }
  .band-contact { order: 3; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.9rem 1.4rem; }
  .site-footer { padding-bottom: 5.5rem; }
}

/* Petits écrans : les onglets restent sur UNE ligne, que l'on fait glisser */
@media (max-width: 900px) {
  .nav-bar-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.5rem; }
  .nav-list {
    grid-column: 2;
    overflow-x: auto;
    gap: 1.4rem;
    scrollbar-width: none;
    padding-right: 1.5rem;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list a { font-size: 0.98rem; }
}

@media (max-width: 520px) {
  .brand img { height: 155px; }
  h1 { font-size: 2rem; }
}
