/* ==========================================================================
   TPSG Canada — feuille de style partagée (index.php + don.php)
   ========================================================================== */

:root {
  --bg: #f3f2f2;
  --ink: #201f1d;
  --gold: #b68235;
  --gold-dark: #7d5411;
  --rule: rgba(32, 31, 29, 0.16);
  --accent: #2f5aa0;
  --callout: #ece8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--gold-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: #f15c2a;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.kicker {
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f15c2a;
  margin-bottom: 14px;
}

.rule-t {
  border-top: 1px solid var(--rule);
}

.rule-b {
  border-bottom: 1px solid var(--rule);
}

/* Bannière (haut sur l'accueil, bas sur la page don) */
.banner {
  margin: 0 -32px;
}

.banner--bottom {
  margin: 56px -32px 0;
}

.banner a {
  display: block;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sélecteur de langue */
.langbar {
  position: absolute;
  top: 20px;
  right: 0;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
}

.langbar button {
  border: none;
  background: transparent;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

.langbar button + button {
  border-left: 1px solid var(--rule);
}

.langbar button.active {
  color: var(--accent);
}

.langbar button:hover {
  background: rgba(32, 31, 29, 0.06);
}

/* Bouton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background-color: #f15c2a;
  border: 1px solid #f15c2a;
  border-radius: 10px;
  padding: 12px 28px;
  text-decoration: none;
  transition: all ease 200ms;
}

.btn:hover {
  color: #f15c2a;
  background-color: white;
}

.btn-lg {
  font-size: 17px;
  padding: 14px 34px;
}

.cta-note {
  font-size: 12.5px;
  opacity: 0.6;
  margin-top: 12px;
}

/* Pied de page */
footer {
  width: 100%;
  background: #2d2b2b;
  color: var(--bg);
}

footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 32px;
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Accueil (index.php)
   ========================================================================== */

.hero {
  padding: 64px 0 48px;
  position: relative;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 32px;
  opacity: 0.88;
}

.section {
  padding: 56px 0;
}

/* Jauge */
.gauge-row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.gauge {
  width: 52px;
  height: 220px;
  border: 1px solid rgba(32, 31, 29, 0.25);
  border-radius: 26px;
  position: relative;
  flex: none;
  background: #eae9e9;
  overflow: hidden;
}

.gauge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #f15c2a, #ec5624);
  transition: height 0.4s ease;
}

.gauge-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.gauge-num span {
  opacity: 0.5;
  font-size: 22px;
}

/* Livre */
.book-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.book-cover {
  width: 220px;
  flex: none;
}

.book-cover .frame {
  border: 6px solid #eae9e9;
  outline: 1px solid var(--rule);
}

.book-cover .ph {
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  opacity: 0.5;
  background: #eae9e9;
  filter: sepia(0.15) saturate(0.85) contrast(1.03);
}

.book-cover img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

.book-body {
  flex: 1;
  min-width: 280px;
}

.book-body h2 {
  font-size: 28px;
  margin: 0 0 4px;
}

/* Auteur */
.author-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  background: #eae9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.author-photo span {
  opacity: 0.5;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-body {
  flex: 1;
  min-width: 260px;
}

/* ==========================================================================
   Page don (don.php)
   ========================================================================== */

.head {
  padding: 64px 0 40px;
  position: relative;
}

.head .back {
  position: absolute;
  top: 20px;
  left: 0;
  font-size: 13px;
}

.head-inner {
  max-width: 760px;
}

.head h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.head p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.88;
}

/* Étapes */
.steps {
  margin: 8px 0 40px;
  max-width: 820px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px 0;
}

.step .num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-dark);
}

.step .txt {
  font-size: 17px;
  line-height: 1.55;
  padding-top: 9px;
  opacity: 0.9;
}

/* Encadré */
.callout {
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--callout);
  padding: 28px 32px;
  max-width: 820px;
  margin-bottom: 56px;
}

.callout .lbl {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Appel à l'action */
.cta {
  text-align: center;
  padding: 16px 0;
}

.cta .note {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 18px;
}

[data-page="don"] .btn {
  font-size: 17px;
  padding: 16px 40px;
}

/* ==========================================================================
   Smartphone
   ========================================================================== */

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px 64px;
  }

  .langbar {
    top: 16px;
  }
  .section {
    padding: 20px 0;
  }

  .btn {
    width: 100%;
    margin-top: 1em;
  }

  footer .inner {
    padding: 20px;
  }

  .banner {
    margin: 0 -20px;
  }

  .banner--bottom {
    margin: 40px -20px 0;
  }

  /* Accueil */
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .gauge-row {
    gap: 24px;
  }

  .gauge {
    width: 44px;
    height: 170px;
    margin: 0 auto;
  }

  .gauge-num {
    font-size: 27px;
  }

  .gauge-num span {
    font-size: 18px;
  }

  .book-row {
    gap: 28px;
  }

  .book-cover {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .author-row {
    gap: 20px;
  }

  /* Page don */
  .head {
    padding: 84px 0 32px;
  }

  .head h1 {
    font-size: 32px;
  }

  .head p {
    font-size: 16px;
  }

  .head .back {
    top: 16px;
  }

  .step {
    gap: 16px;
    padding: 14px 0;
  }

  .step .num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .step .txt {
    font-size: 16px;
    padding-top: 7px;
  }

  .callout {
    padding: 22px 20px;
  }
}
