/* ============================================
   NASCH SECRÉTARIAT — Refonte 2026
   Identité chaleureuse & humaine
   ============================================ */

:root {
  /* Couleurs — palette validée par Nadine : ivoire rosé + terracotta + corail */
  --cream: #F8F1E8;            /* ivoire un peu rosé */
  --cream-deep: #F0E5D5;
  --beige: #E5CDB3;            /* sable rosé — illustrations */
  --terracotta: #C97B5C;       /* boutons */
  --terracotta-dark: #A8624A;
  --sage: #E8856B;             /* corail — icônes */
  --sage-dark: #D86F55;
  --ink: #1A1A1A;              /* titres en noir */
  --ink-soft: #6B6B6B;         /* texte courant en gris */
  --muted: #9B9B9B;
  --line: #ECE0CF;
  --white: #FFFFFF;

  /* Typo */
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow: 0 6px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 26, 0.12);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

/* ===== Typographie ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 400; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); }
p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* ===== Layout ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
@media (max-width: 720px) { section { padding: 3.5rem 0; } }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1160px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-serif);
  font-size: 1.4rem; color: var(--ink); font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}
.brand img {
  height: 64px; width: auto;
  transition: transform .3s;
}
.brand:hover img { transform: translateY(-1px); }
@media (max-width: 880px) {
  .brand img { height: 52px; }
}

/* Hero à deux colonnes : empilé sur mobile */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hero-grid img { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Logo XL responsive dans le hero d'accueil */
@media (max-width: 980px) {
  .fade-in img[alt^="NASCH"] {
    height: 260px !important;
  }
}
@media (max-width: 720px) {
  .fade-in img[alt^="NASCH"] {
    height: 200px !important;
  }
}
@media (max-width: 480px) {
  .fade-in img[alt^="NASCH"] {
    height: 160px !important;
  }
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: white; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem;
}
.brand small { display: block; font-family: var(--font-sans); font-size: .7rem; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 500;
  position: relative; padding: .3rem 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--terracotta); border-radius: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.1rem;
  background: var(--ink); color: white !important;
  border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--ink); }

@media (max-width: 880px) {
  .nav { flex-wrap: wrap; position: relative; }
  .mobile-toggle { display: block; order: 3; }
  .nav-cta { order: 2; }

  /* Menu fermé par défaut */
  .nav-links {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
  }
  /* Menu ouvert (classe ajoutée par le JS au clic) */
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; width: 100%; }
  .nav-links a.active::after { display: none; }
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.98rem;
  border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--terracotta); color: white !important;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary {
  background: transparent; color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: white !important; }
.btn-ghost {
  background: var(--cream-deep); color: var(--ink) !important;
}
.btn-ghost:hover { background: var(--beige); }

/* ===== Hero générique ===== */
.page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  text-align: center;
}
.page-hero .eyebrow { color: var(--sage-dark); }
.page-hero h1 { max-width: 760px; margin: 0 auto .8rem; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--cream-deep); color: var(--terracotta-dark);
}
.card-icon svg { width: 24px; height: 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Bandeau CTA ===== */
.cta-band {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201, 123, 92, 0.25), transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.75); margin: .5rem 0 1.8rem; }
.cta-band .btn-primary { background: white; color: var(--ink) !important; }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h4 { color: white; margin-bottom: 1rem; font-family: var(--font-sans); font-size: 0.95rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: .25rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer .brand { color: white; }
.site-footer .brand small { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: rgba(255,255,255,0.5);
}

/* ===== Badge / Pill ===== */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem;
  background: var(--cream-deep);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-soft); font-weight: 500;
}
.pill-sage { background: rgba(232, 133, 107, 0.15); color: var(--sage-dark); }
.pill-terracotta { background: rgba(201, 123, 92, 0.15); color: var(--terracotta-dark); }

/* ===== Utilitaires ===== */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.flex-center { justify-content: center; }

/* ===== Page transitions / motion ===== */
.fade-in {
  animation: fadeUp .8s ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ===== Print / accessibility ===== */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
