/* ============================================================
   TROLL ME TENDER – Feuille de style principale
   ============================================================ */

/* --- Variables de design ----------------------------------- */
:root {
  --color-primary:    #ff8c00;
  --color-primary-bg: #ff8c0030;
  --color-secondary:  #f2f2f2;
  --color-tertiary:   #b2b2b2;
  --color-foreground: #000000;
  --color-background: #ffffff;
  --color-orange-header: #ff9f30;

  --font-main:  "Tinet", sans-serif;
  --font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --size-sm:   1rem;
  --size-md:   1.125rem;
  --size-lg:   1.75rem;
  --size-xl:   clamp(1.75rem, 3vw, 2.25rem);
  --size-huge: clamp(1.8rem, 6vw, 2.4rem);
  --size-colossal: clamp(3.25rem, 8vw, 5.25rem);

  --lh-tiny:   1.15;
  --lh-small:  1.2;
  --lh-normal: 1.6;

  --max-content: 1300px;
  --max-text:    800px;
  --gap:         1.5rem;
}

/* --- Reset de base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-md);
  line-height: var(--lh-normal);
  color: var(--color-foreground);
  background-color: var(--color-background);
}

@font-face {
  font-family: Tinet;
  font-style: normal;
  font-weight: 200 900;
  font-display: fallback;
  src: url('/fonts/TungusFont_Tinet.woff2') format('woff2');
  font-stretch: normal;
}

img { height: auto; max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }

h1 {
  font-family: var(--font-main);
  font-size: var(--size-colossal);
  font-weight: 500;
  line-height: var(--lh-tiny);
  margin: 0 0 var(--gap);
}
h2 {
  font-family: var(--font-main);
  font-size: var(--size-huge);
  font-weight: 500;
  line-height: var(--lh-small);
  margin: 0 0 var(--gap);
}
h3 {
  font-family: var(--font-main);
  font-size: var(--size-xl);
  font-weight: 500;
  line-height: var(--lh-tiny);
  margin: 0 0 .5rem;
}
p { margin: 0 0 1rem; }
strong { font-weight: 700; }

/* --- Conteneur centré ------------------------------------- */
.container {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}
.container--text {
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  border-radius: 0;
  text-decoration: none;
  font-size: var(--size-md);
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-background);
  border: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-foreground);
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); }

.btn--pill {
  border-radius: 100px;
  padding: 3px 11px;
  font-size: var(--size-sm);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.btns--center { justify-content: center; }

/* --- Header / Nav ----------------------------------------- */
.site-header {
  background-image: url('/images/bg-head.png');
  background-position: 50% 50%;
  background-repeat: repeat;
  background-size: auto;
  position: relative;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #ff9f30;
  opacity: .5;
  z-index: 0;
}
.site-header > * { position: relative; z-index: 1; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: var(--max-content);
  margin: 0 auto;
  gap: 1rem;
}

.nav-logo img { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-foreground);
}
.nav-links a:hover { text-decoration: underline; }

.nav-socials {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-socials a { line-height: 0; }
.nav-socials img { width: 26px; height: 26px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg { display: block; }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.nav-mobile-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: #fff;
  z-index: 100;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.nav-mobile-panel.is-open { transform: translateX(0); }
.nav-mobile-overlay.is-open { display: block; }

.nav-mobile-close {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.nav-mobile-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-mobile-links a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-links, .nav-socials { display: none; }
  .nav-toggle { display: flex; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  padding: 40px 20px 155px;
  text-align: center;
}
.hero h1 { color: var(--color-foreground); }
.hero p { font-size: var(--size-md); }

/* --- Sections generiques ---------------------------------- */
.section {
  padding: 80px 20px;
}
.section--tinted {
  background-color: var(--color-primary-bg);
}

/* --- Media + texte (qui sommes-nous) ---------------------- */
.media-text {
  display: grid;
  grid-template-columns: 33% 1fr;
  gap: 2rem;
  align-items: center;
}
.media-text__img img { width: 100%; border-radius: 4px; }
.media-text__content { padding: 0 1rem; }
.media-text__content h2 { margin-top: 0; }

@media (max-width: 640px) {
  .media-text { grid-template-columns: 1fr; }
  .media-text__img { max-width: 260px; margin: 0 auto; }
}

/* --- Colonnes (contact) ----------------------------------- */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.columns > * { flex: 1 1 260px; }

.contact-block { text-align: center; }
.contact-block img { margin: 0 auto 1rem; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  position: relative;
  padding: 50px 20px;
  text-align: center;
  min-height: 50px;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/bg-footer.png');
  background-repeat: repeat;
  background-position: center;
  background-color: #fff7ef;
  opacity: .6;
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer img { width: 72px; margin: 0 auto; }

/* --- Page intérieure header ------------------------------- */
.page-header {
  padding: 20px 20px 30px;
  text-align: center;
}
.page-header h1 {
  font-size: var(--size-huge);
  padding: 0 var(--size-md);
}

/* --- JDR list --------------------------------------------- */
.jdr-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin: 2.25rem 0 0;
  padding: 0 20px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  padding-top: .75rem;
  padding-bottom: .75rem;
  z-index: 10;
}

.jdr-section {
  padding: 3.38rem 20px;
  max-width: var(--max-text);
  margin: 0 auto;
}

.jdr-section__letter {
  text-align: center;
  background-color: var(--color-secondary);
  padding: .44rem 0;
  margin-bottom: 0;
}

hr.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 2rem;
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

.jdr-entry {
  margin-bottom: 1.5rem;
}
.jdr-entry h3 { font-size: var(--size-xl); }
.jdr-entry .mj { margin-bottom: .4rem; }
.jdr-entry .desc { color: #333; }

.page-intro { text-align: center; margin-bottom: 1rem; }

/* --- Utilitaires ------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
