/* ============================================================
   Anne LAURENT — Candidature Bâtonnat 2027-2028
   Feuille de styles partagée
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --color-red: #b0001d;
  --color-red-dark: #7a0014;
  --color-red-deep: #4d0010;
  --color-red-tint: #f5e8eb;
  --color-cream: #faf7f2;
  --color-cream-warm: #f4ede1;
  --color-ink: #1a1410;
  --color-ink-soft: #3d342d;
  --color-muted: #6b605a;
  --color-line: #e3d9c8;
  --color-gold: #a89070;

  /* Typographie */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-red-dark); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin: 0 0 1.25rem;
  display: inline-block;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-ink-soft);
}

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

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.divider {
  width: 60px;
  height: 2px;
  background: var(--color-red);
  margin: 1.5rem 0 2rem;
  border: none;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 2rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--color-ink);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-top: 2px;
}

.nav { display: flex; gap: 2rem; align-items: center; }
.nav__link {
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--color-red); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--color-red); }

/* Burger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav {
    display: none;
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--color-cream);
    flex-direction: column;
    gap: 0;
    padding: 2rem var(--gutter);
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--color-line);
  }
  .nav.is-open { display: flex; }
  .nav__link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1rem;
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--color-red);
  color: var(--color-cream);
}
.hero .eyebrow {
  color: rgba(250, 247, 242, 0.85);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__text .eyebrow { margin-bottom: 1.5rem; }
.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.02;
  font-weight: 500;
  color: #000;
}
.hero__title em {
  font-style: italic;
  color: #000;
  font-weight: 500;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: rgba(250, 247, 242, 0.92);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 2rem;
  max-width: 520px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.3);
  margin-top: 1.5rem;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
}
.hero__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-top: 2px;
}

/* Photo cliente */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-cream-warm);
  overflow: hidden;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--color-line);
  pointer-events: none;
  z-index: 2;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(176, 0, 29, 0.04));
  pointer-events: none;
  z-index: 1;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-muted);
  background: var(--color-cream-warm);
  text-align: center;
  padding: 2rem;
}
.portrait__placeholder svg { width: 70px; height: 70px; opacity: 0.4; }
.portrait__placeholder-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}

/* décoration noire derrière la photo (écho au titre noir sur fond rouge) */
.portrait-wrap {
  position: relative;
}
.portrait-wrap::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 25px;
  right: -25px;
  bottom: -25px;
  background: #000;
  z-index: -1;
}

@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .portrait-wrap { max-width: 360px; margin: 0 auto; }
  .portrait-wrap::before { top: 15px; left: 15px; right: -15px; bottom: -15px; }
}

/* ---------- Section "Intro / Présentation" ---------- */
.intro {
  background: var(--color-cream-warm);
  position: relative;
}
.intro__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}
.intro__label {
  position: sticky;
  top: 100px;
}
.intro__body p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  margin: 0 0 1.25em;
}
.intro__body p:first-of-type {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
  margin-bottom: 1.5em;
}
.intro__body p:first-of-type::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.15em 0 0;
  font-weight: 700;
  color: var(--color-red);
  font-style: normal;
  font-family: var(--font-body);
}
.intro__body .intro__statement {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--color-red);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-ink);
}
.intro__body .intro__statement strong {
  font-weight: 600;
}
@media (max-width: 880px) {
  .intro__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro__label { position: static; }
}

/* ---------- Section "Piliers" (home) ---------- */
.pillars__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.pillars__header .divider { margin: 1.5rem auto 2rem; }
.pillars__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.pillar-card {
  background: var(--color-cream);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background .25s ease;
  position: relative;
}
.pillar-card:hover {
  background: var(--color-cream-warm);
  color: inherit;
}
.pillar-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-red);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.pillar-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.1rem);
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.pillar-card__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: 0.65em;
  color: var(--color-red);
  margin-top: 4px;
}
.pillar-card__lede {
  margin: 1rem 0 1.5rem;
  color: var(--color-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  flex-grow: 1;
}
.pillar-card__cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.pillar-card__cta::after {
  content: '→';
  transition: transform .2s ease;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.pillar-card:hover .pillar-card__cta::after { transform: translateX(4px); }

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

/* ---------- Pages internes — Pillar Hero ---------- */
.pillar-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--color-red);
  color: var(--color-cream);
}
.pillar-hero__inner { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.pillar-hero__crumb {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pillar-hero__crumb a { color: rgba(250, 247, 242, 0.7); }
.pillar-hero__crumb a:hover { color: var(--color-cream); }
.pillar-hero__number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(250, 247, 242, 0.9);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: block;
  font-style: italic;
}
.pillar-hero__title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin: 0 0 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #000;
}
.pillar-hero__title em {
  font-style: italic;
  color: var(--color-red-deep);
  font-weight: 500;
}
.pillar-hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: rgba(250, 247, 242, 0.92);
  margin: 1.5rem 0 0;
  line-height: 1.5;
  max-width: 680px;
}

/* ---------- Pages internes — Contenu ---------- */
.pillar-content { padding: clamp(3rem, 6vw, 5rem) 0; }
.pillar-content__inner { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.pillar-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  margin: 0 0 1.5em;
}
.pillar-content strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* Liste de points : chaque item devient un bloc avec titre + corps */
.commitments {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.commitment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--color-line);
}
.commitment:last-child { border-bottom: none; }
.commitment__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-red);
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.commitment__body { }
.commitment__lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-red);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.commitment__lead em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-red);
}
.commitment p {
  margin: 0 0 1em;
  font-size: 1.02rem;
  line-height: 1.75;
}
.commitment p:last-child { margin-bottom: 0; }
.commitment ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}
.commitment ul li {
  margin-bottom: 0.5em;
  color: var(--color-ink-soft);
}

@media (max-width: 600px) {
  .commitment {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Page Élection : quote + CTA ---------- */
.election-quote {
  margin: 3.5rem auto;
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--color-red);
  border-bottom: 2px solid var(--color-red);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-red);
  text-align: center;
  max-width: 720px;
}

.election-cta {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.election-cta__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--color-ink);
  margin: 0 0 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.election-cta__text strong {
  color: var(--color-red);
  font-weight: 700;
}
.election-cta__sign {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  margin: 0;
}
.election-cta__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0.4rem 0 0;
  letter-spacing: 0.02em;
}

/* ---------- Navigation entre piliers ---------- */
.pillar-nav {
  border-top: 1px solid var(--color-line);
  background: var(--color-cream-warm);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.pillar-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.pillar-nav__link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  text-decoration: none;
  color: var(--color-ink);
}
.pillar-nav__link--next { text-align: right; align-items: flex-end; }
.pillar-nav__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}
.pillar-nav__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-ink);
  transition: color .2s ease;
}
.pillar-nav__link:hover .pillar-nav__title { color: var(--color-red); }

@media (max-width: 600px) {
  .pillar-nav__inner { grid-template-columns: 1fr; gap: 0; }
  .pillar-nav__link--next { text-align: left; align-items: flex-start; }
}

/* ---------- Closing / CTA Home ---------- */
.closing {
  background: var(--color-red);
  color: var(--color-cream);
  text-align: center;
}
.closing .eyebrow {
  color: rgba(250, 247, 242, 0.85);
}
.closing h2 {
  color: #000;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 760px;
  margin: 0 auto 1.5rem;
}
.closing h2 em {
  font-style: italic;
  color: var(--color-red-deep);
}
.closing__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(250, 247, 242, 0.92);
  margin: 2rem 0 0;
}
.closing__date {
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: 1rem 2rem;
  border: 1px solid rgba(250, 247, 242, 0.45);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.closing__date strong {
  color: var(--color-cream);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-cream-warm);
  border-top: 1px solid var(--color-line);
  padding: 3rem 0 2rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 0.25rem;
}
.footer__role {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}
.footer__contact a {
  display: block;
  color: var(--color-ink-soft);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.footer__contact a:hover { color: var(--color-red); }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__nav a {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}
.footer__nav a:hover { color: var(--color-red); }
.footer__bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--color-line);
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Animations subtiles ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .9s ease forwards;
  }
  .fade-up--delay-1 { animation-delay: 0.1s; }
  .fade-up--delay-2 { animation-delay: 0.2s; }
  .fade-up--delay-3 { animation-delay: 0.3s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Utilitaires ---------- */
.text-red { color: var(--color-red); }
.italic { font-style: normal; }
.font-display { font-family: var(--font-display); }

/* ---------- Pas d'italique (override global) ---------- */
em, i,
.lede,
.hero__subtitle,
.intro__body p:first-of-type,
.pillars__intro,
.pillar-card__number,
.pillar-card__title em,
.pillar-hero__number,
.pillar-hero__title em,
.pillar-hero__sub,
.commitment__lead em,
.closing h2 em,
.closing__signature,
.footer__role {
  font-style: normal;
}
