/* ============================================================
   ALTIORA — Charte graphique unifiée
   Version 2.0 — 27 avril 2026
   Hervé Cazaux · Altiora SASU
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* Couleurs */
  --navy-deep: #0A1F3D;
  --navy-mid:  #122A4E;
  --navy-soft: #1E3A66;
  --gold:      #C9A56C;
  --gold-soft: #D9BC89;
  --cream:     #F4EFE7;
  --cream-alt: #ECE5D8;
  --offwhite:  #FBFAF7;
  --ink:       #0A1F3D;
  --ink-soft:  #4F5B73;
  --line-light: #E5DDD0;
  --line-dark:  rgba(201, 165, 108, 0.25);
  --grey-soft: #A8B0BD;

  /* Typographie */
  --font-display: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espacements */
  --container: 1180px;
  --gutter: 1.5rem;
}

/* ---------- 3. TYPOGRAPHIE ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

em, .italic { font-style: italic; color: var(--gold); font-weight: 400; }

p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

/* ---------- 4. CONTENEURS ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 5. THEMES SECTIONS ---------- */
.bg-navy {
  background: var(--navy-deep);
  color: var(--offwhite);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--offwhite); }
.bg-navy p { color: rgba(251, 250, 247, 0.78); }
.bg-navy .eyebrow { color: var(--gold); }

.bg-cream { background: var(--cream); }
.bg-offwhite { background: var(--offwhite); }

/* ---------- 6. HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 0.35rem;
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
}
/* Footer brand : même structure mais légèrement réduite */
.footer-brand .brand-logo { height: 48px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.78);
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--offwhite); }
.nav-link.is-active {
  color: var(--offwhite);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--offwhite);
  border-color: rgba(251, 250, 247, 0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-dark {
  background: var(--navy-deep);
  color: var(--offwhite);
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Mobile nav toggle */
.nav-toggle { display: none; }

/* ---------- 7. HERO ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--offwhite);
  padding: 7rem 0 6rem;
  position: relative;
}
.hero-inner { max-width: 880px; }
.hero-eyebrow { margin-bottom: 2.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--offwhite);
  margin-bottom: 0;
}
.hero h1 .italic {
  display: block;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  margin-top: 0.4rem;
}
.hero-lead {
  margin-top: 2.5rem;
  font-size: 1.12rem;
  max-width: 60ch;
  color: rgba(251, 250, 247, 0.78);
  line-height: 1.75;
}
.hero-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Subtitle "À propos / Qui je suis" — version simple */
.page-header {
  background: var(--navy-deep);
  color: var(--offwhite);
  padding: 6rem 0 5rem;
}
.page-header h1 { color: var(--offwhite); }
.page-header .lead {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: rgba(251, 250, 247, 0.78);
  max-width: 60ch;
}

/* ---------- 8. SECTIONS ---------- */
section.bloc {
  padding: 6rem 0;
}
section.bloc + section.bloc.bg-cream { border-top: 1px solid var(--line-light); }

.section-head { margin-bottom: 4rem; }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 { max-width: 22ch; margin-bottom: 1.5rem; }
.section-head .lead {
  font-size: 1.08rem;
  max-width: 58ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ---------- 9. GRID & CARDS ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.bg-navy .grid-stages {
  border-color: var(--line-dark);
}

.cell {
  padding: 2.8rem 2rem;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.bg-navy .cell { border-color: var(--line-dark); }

.cell-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.cell h3 { font-size: 1.45rem; margin-bottom: 0.85rem; }
.cell p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.7; }
.bg-navy .cell h3 { color: var(--offwhite); }
.bg-navy .cell p { color: rgba(251, 250, 247, 0.7); }

/* ---------- 10. FORMULAIRES ---------- */
.form-card {
  background: var(--cream);
  color: var(--ink);
  padding: 3.5rem;
  max-width: 720px;
  border: 1px solid var(--line-light);
}
.form-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-light);
}
.form-group { margin-bottom: 2rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.form-field label .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-light);
  background: var(--offwhite);
  color: var(--ink);
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-help {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  font-style: italic;
}
.rgpd-notice {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 1.5rem;
  background: var(--cream-alt);
  margin: 2rem 0;
}

/* ---------- 11. PORTRAIT BLOC ---------- */
.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.portrait-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.portrait-text p:first-of-type {
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
}
.portrait-image {
  position: relative;
  padding: 1rem 0 0 1rem;
}
.portrait-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  background: var(--gold-soft);
}
.portrait-image img {
  position: relative;
  width: 100%;
  filter: grayscale(100%) contrast(1.05);
}

/* ---------- 12. FAQ ACCORDION ---------- */
.faq-list { max-width: 740px; }
.faq-item {
  border-top: 1px solid var(--line-light);
  padding: 2rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-light); }
.faq-item h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.faq-item p { color: var(--ink-soft); line-height: 1.75; }

/* ---------- 13. PROCESSUS — STEPS ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line-light);
}
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.step-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}
.step-content p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 60ch;
}
.step-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- 14. CTA SECTION ---------- */
.cta-band {
  padding: 6rem 0;
  text-align: center;
  background: var(--navy-deep);
  color: var(--offwhite);
}
.cta-band h2 {
  color: var(--offwhite);
  margin: 0 auto 2rem;
  max-width: 22ch;
}
.cta-band .lead {
  color: rgba(251, 250, 247, 0.78);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 250, 247, 0.7);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  max-width: 38ch;
  line-height: 1.7;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--offwhite); }

.footer-legal {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
}
.footer-legal a:hover { color: var(--gold); }

/* ---------- 16. UTILITAIRES ---------- */
.text-gold { color: var(--gold); }
.text-soft { color: var(--ink-soft); }
.divider {
  height: 1px;
  background: var(--line-light);
  border: none;
  margin: 3rem 0;
}
.bg-navy .divider { background: var(--line-dark); }

/* ---------- 17. ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 0.8s ease-out forwards;
}
.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--offwhite);
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid var(--line-dark);
    padding: 1.5rem var(--gutter);
    gap: 1rem;
    align-items: flex-start;
  }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-stages { grid-template-columns: 1fr; }
  .portrait-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 2rem; }
  .step { grid-template-columns: 1fr; gap: 1rem; padding: 2.2rem 0; }
  .step-num { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section.bloc { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .page-header { padding: 4rem 0 3rem; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- 19. PAGES LÉGALES ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.75;
}
.legal-content h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-light);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.legal-content ul {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--ink-soft);
}
.legal-content li {
  margin-bottom: 0.6rem;
  list-style: none;
  padding-left: 1rem;
  position: relative;
}
.legal-content li::before {
  content: '—';
  position: absolute;
  left: -0.5rem;
  color: var(--gold);
}
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.legal-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.legal-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 1rem 1.5rem;
  background: var(--cream-alt);
  border-left: 3px solid var(--gold);
  margin-bottom: 3rem;
}



em, i, .italic {
  font-feature-settings: "calt" 0, "liga" 0, "swsh" 0, "salt" 0,
                         "ss01" 0, "ss02" 0, "ss03" 0, "ss04" 0,
                         "ss05" 0, "ss06" 0, "dlig" 0 !important;
  font-variation-settings: "WONK" 0 !important;
}

/* === EB Garamond — appliqué partout, override h1 .italic === */
h1, h2, h3, h4, h5, h6,
.hero h1, .quote, blockquote {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif !important;
}

em, i, .italic, span.italic,
h1 .italic, h1 span.italic, h2 .italic, h2 span.italic {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* Neutralisation totale des features OpenType résiduelles */
* {
  font-feature-settings: normal !important;
  font-variation-settings: normal !important;
}
