/* metey.com — feuille de style unique, sans dépendance externe */

:root {
  --bg:        #fbfaf7;
  --bg-alt:    #f2efe9;
  --surface:   #ffffff;
  --ink:       #14202b;
  --muted:     #5c6b7a;
  --line:      #e0dbd2;
  --accent:    #a8522c;
  --accent-ink:#8c4222;
  --shadow:    0 1px 2px rgba(20,32,43,.05), 0 8px 24px -12px rgba(20,32,43,.18);
  --radius:    14px;
  --measure:   34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0e141b;
    --bg-alt:    #131b24;
    --surface:   #17202a;
    --ink:       #e9eef3;
    --muted:     #98a7b6;
    --line:      #26313d;
    --accent:    #e08a5d;
    --accent-ink:#f0a37b;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-ink); }
a:focus-visible, .skip:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: .7rem 1.1rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

/* ---------- En-tête ---------- */

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(2.5rem, 7vw, 4rem);
}

.eyebrow {
  margin: 0 0 .9rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  font-weight: 700;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.125rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.quick a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.quick a:hover { border-bottom-color: var(--accent); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h3 {
  margin: 0 0 .5rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

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

.intro {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- Frise du parcours ---------- */

.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0 0 0 1.75rem;
  border-left: 2px solid var(--line);
}
.timeline > li {
  position: relative;
  padding-bottom: 2.5rem;
  max-width: 42rem;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 6px);
  top: .5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.when {
  margin: 0 0 .3rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline p:not(.when) { color: var(--muted); }

/* Périodes en incise : elles se déroulent à l'intérieur de la période qui les contient.
   Retrait supplémentaire, filet en pointillés et pastilles évidées pour marquer
   qu'il s'agit d'un second niveau et non de la suite de la frise. */

.parallel {
  margin: 1.6rem 0 .2rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.timeline-sub {
  list-style: none;
  margin: .9rem 0 .4rem;
  padding: 0 0 0 1.4rem;
  border-left: 2px dashed var(--line);
}
.timeline-sub > li {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-sub > li:last-child { padding-bottom: 0; }
.timeline-sub > li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 5px);
  top: .45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline-sub h3 { font-size: 1.0625rem; }
.timeline-sub .when { font-size: .75rem; }
.timeline-sub p:not(.when) { font-size: .9375rem; }

/* ---------- Cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: .9875rem; }

/* Une seule carte : on la borne pour qu'elle ne s'étire pas sur toute la largeur */
.cards.single { grid-template-columns: minmax(0, 34rem); }

/* ---------- Encadré Bandolais.fr ---------- */

.feature {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-body { padding: clamp(1.6rem, 4vw, 2.4rem); max-width: 44rem; }

.badge {
  margin: 0 0 .5rem;
  font-size: .78125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.feature h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .8rem; }
.feature p { color: var(--muted); }
.feature .note {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.feature .note strong { color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-block;
  padding: .68rem 1.25rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

/* Mention à venir : même gabarit qu'un bouton, mais ce n'est pas un lien */
.tag {
  display: inline-block;
  padding: .68rem 1.25rem;
  border-radius: 9px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: .9375rem;
}

@media (prefers-color-scheme: dark) {
  .btn { color: #17202a; }
}

/* ---------- Liens réseaux ---------- */

.links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .75rem;
}
.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.links a:hover { border-color: var(--accent); }
.net { font-weight: 600; }
.handle { color: var(--muted); font-size: .875rem; }

/* ---------- Contact ---------- */

.mailto { margin-top: 1.5rem; }
.mailto a {
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  overflow-wrap: anywhere;
}
.mailto a:hover { border-bottom-color: var(--accent); }

/* ---------- Pied de page ---------- */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
}
blockquote {
  margin: 0;
  max-width: 38rem;
}
blockquote p {
  margin: 0 0 .6rem;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.45;
}
cite {
  font-style: normal;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.colophon {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Impression ---------- */

@media print {
  .hero { background: none; }
  .quick, .skip, .actions { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .card, .feature, .links a { box-shadow: none; }
}
