/* =========================================
   FAFARD PRO - STATIC SITE
   Remplace WordPress/Elementor par du HTML/CSS pur
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background-color: #0d0e29;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --- COULEURS & TOKENS --- */
:root {
  --color-accent: #FECD3F;
  --color-dark: #0D0E29;
  --color-overlay: rgba(13, 14, 41, 0.54);
  --font-heading: "Jost", "Century Gothic", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --container-max: 1140px;
  --radius: 10px;
}

/* --- PAGE WRAPPER AVEC BACKGROUND --- */
.page {
  min-height: 100vh;
  background-image: url("../img/cover-catalogue.jpg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 4% 4% 1%;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
}

/* --- HEADER (logo + langue) --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.site-header .logo img {
  width: 250px;
  max-width: 100%;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 12px 20px;
  border-radius: 60px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}
.lang-switch:hover,
.lang-switch:focus {
  background-color: var(--color-accent);
  transform: scale(1.06);
}

/* --- MAIN GRID (content + embed) --- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 5%;
  border-radius: var(--radius);
  /* Le background-image est sur .page, ici on garde transparent */
}

/* --- CONTENT PANEL (glassmorphism) --- */
.content-panel {
  background-color: var(--color-overlay);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border-radius: var(--radius);
  padding: 8%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-panel h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.01em;
}
.content-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

/* --- DOWNLOAD LINK (desktop) --- */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
  margin-top: 8px;
}
.download-link:hover,
.download-link:focus {
  color: #ffffff;
  text-decoration: underline;
}
.download-link svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  fill: currentColor;
}

/* --- DOWNLOAD BUTTON (mobile uniquement) --- */
.download-heading {
  font-family: var(--font-body);
  font-weight: 500;
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}
.download-btn {
  display: none; /* masqué en desktop, activé en mobile plus bas */
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: var(--color-accent);
  color: #000000;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  align-self: center;
}
.download-btn:hover,
.download-btn:focus {
  background-color: #ffffff;
}
.download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- ISSUU EMBED --- */
.embed-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.issuu-wrap {
  position: relative;
  padding-top: max(60%, 326px);
  height: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.issuu-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: 40px;
  padding: 20px 4%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
}
.site-footer .footer-main {
  font-size: 13px;
}
.site-footer .footer-legal {
  font-size: 0.65rem;
  line-height: 1.3;
}
.site-footer a {
  color: #000000 !important;
  text-decoration: underline;
}

/* --- VISIBILITÉ DESKTOP vs MOBILE --- */
.show-desktop { display: inline-flex; }
.show-mobile  { display: none; }

/* ========================================= */
/* TABLET (max 1024px)                       */
/* ========================================= */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .content-panel {
    padding: 8%;
  }
  .content-panel h1 {
    text-align: center;
  }
  .download-heading {
    text-align: center;
  }
  /* Le lien desktop est caché, le bouton mobile devient visible */
  .show-desktop { display: none; }
  .show-mobile  { display: inline-flex; }
  .download-btn { display: inline-flex; }
  /* Footer centré */
  .site-footer { text-align: center; align-items: center; }
}

/* ========================================= */
/* MOBILE (max 767px)                        */
/* ========================================= */
@media (max-width: 767px) {
  .page {
    padding: 2%;
    background-attachment: scroll; /* plus performant sur mobile */
  }
  .main-grid {
    padding: 8% 4%;
    gap: 20px;
  }
  .site-header {
    margin-bottom: 20px;
    align-items: center;
  }
  .site-header .logo img {
    width: 180px;
  }
  .lang-switch {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .content-panel {
    padding: 8% 6%;
  }
  .content-panel p {
    font-size: 0.95rem;
  }
  .site-footer .footer-main { font-size: 0.8rem; }
  .site-footer .footer-legal { font-size: 0.65rem; }
}

/* Accessibilité: focus visible */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
